Best MCP servers for coding agents (Claude Code, Cursor, Codex)

Short answer
For a coding agent, add four and stop: filesystem (let it read/write your repo), GitHub (issues/PRs), a docs-context server like Context7 (kills hallucinated APIs), and Playwright only if you actually test UIs. That's ~35 tools — right at Cursor's limit. Everything past that makes the agent pick worse, not better.
The mistake everyone makes is treating MCP servers like a collection to maximize. With a coding agent it's the opposite: every server you add competes for the model's attention, and past ~40 tools Cursor's selection visibly degrades. So the question isn't 'what can I add' — it's 'what earns its slot'. My take after wiring up a lot of these: four servers cover 95% of real coding work, and the famous 'context' problem is better solved by a docs server than by piling on more tools.
The picks
Non-negotiable. The agent can't help with code it can't read. Scope it to your project directory and it's both essential and safe.
Config & setupThe official one. Issues, PRs, code search — first-party, OAuth done right, and it tracks the API. Don't use a third-party GitHub wrapper when this exists.
Config & setupThe quiet MVP. It injects up-to-date, version-specific library docs into the agent, which is what actually stops hallucinated APIs — more than any 'memory' server will.
Config & setupAdd it only if you test or scrape UIs. Microsoft's official, accessibility-tree based (no vision model needed). 12 tools, so budget for it.
Config & setupCheap insurance for hard, multi-step refactors. One tool, low budget cost, occasionally a real difference on planning-heavy tasks.
Config & setupWhat to skip
Skip stacking three different 'memory' servers — they overlap and burn budget. Skip a second browser server if you already run Playwright. And resist adding a database server 'just in case' — add it in the project that actually needs it, via a per-project config, not globally.
FAQ
How many MCP servers should I run in Cursor for coding?
About four. Cursor degrades past ~40 active tools, and a sensible coding set (filesystem + GitHub + Context7 + Playwright) already lands near there. More servers usually means worse tool selection, not more capability.
What's the single most useful MCP server for Claude Code?
The filesystem server — the agent can't meaningfully help with code it can't read or write. Pair it with a docs-context server like Context7 to stop hallucinated APIs.