You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP server is using around 89 MB of RAM per process #63
I was looking into the MCP server’s memory usage and found that it creates validation schemas for all 524 tools during startup, even when most of them are never called.
I tried a minimal fix that delays that work until each tool is actually used.
I couldn’t get the TypeScript version much lower without replacing or modifying the MCP SDK. Node uses around 15 MB by itself, and loading the SDK brings that to around 35 MB before Dokploy’s tools are included.
The minimal version keeps Node, TypeScript, the official SDK, every transport, and all 524 tools. I also made the native version to see how low it could go, but that one is obviously a much bigger change with more packaging and maintenance involved.
Numbers are median Linux memory usage after initialization and loading the full tool list.
Activity
kdcokenny commentedon Jul 30, 2026
@Siumauricio Would appreciate it a ton if you went over this! Makes a HUGE difference for my RAM limited machine.
perf: build tool schemas on demand instead of registering all up front
perf: build tool schemas on demand instead of registering all up front