Schema Tokens / Turn~3,890 tokInjected into every turn
15-Turn Loop Context Tax58.4K tokKeep ≤40 tools per session
Credential SecurityEnv-Safe.cursor/mcp.json
Generated .cursor/mcp.json
Production MCP Engineering Best Practices
Why does enabling too many MCP servers degrade agent accuracy and inflate token bills?
Every active MCP server serializes its full list of tool names, descriptions, and JSON parameter schemas into the LLM context prefix on every turn. Enabling 8+ heavy servers routinely injects 10,000–18,000 schema tokens before the user types a single word—diluting tool-selection precision and multiplying multi-turn costs. Audit your multi-step impact in our Agent Token Snowball Simulator.
Why do npx-based MCP servers fail with spawn ENOENT on Windows?
On Windows, npx is a .cmd batch shim rather than an executable ELF/Mach-O binary, so Node/Electron child processes spawning npx without a shell throw ENOENT. Wrapping the invocation with "command": "cmd", "args": ["/c", "npx", "-y", ...] resolves the issue cleanly.