MCP Directory

Best MCP Servers for Roo Code (2026)

Six MCP servers worth their tool budget in Roo Code — plus the config path and the arithmetic that decides how many you can run.

Hua·June 30, 2026·6 min read
A close-up of a laptop displaying code in a dimly lit room with a coffee mug nearby.
Photo by Daniil Komov on Pexels

The best MCP servers for Roo Code are the few that earn their tool budget: an official GitHub server, a docs/context server that cuts hallucinations, and one data server for whatever you actually query. Everything else is a liability, because tool selection degrades past roughly 40 active tools and the average server ships around 12. So the real question isn't "which servers exist" — it's which three or four are worth the slots.

Roo Code has one advantage here that Cursor doesn't: you can flip a server's disabled flag and Roo strips its tools out of the system prompt entirely, cutting token usage. That makes an over-loaded config cheaper to recover from — but it doesn't excuse installing servers you won't use. This is the opinionated shortlist, with Roo's config path, honest trade-offs, and what to skip.

Where Roo Code reads MCP config (do this first)

Roo Code reads MCP servers from two places: a global mcp_settings.json (open it via the MCP pane's settings icon → Edit Global MCP) and a per-project .roo/mcp.json in your repo root. Project config wins when a name collides, so commit .roo/mcp.json to share a team setup and keep secrets in the global file.

Both files use the same mcpServers object, and Roo supports STDIO for local servers plus Streamable HTTP and SSE for remote ones. A minimal entry:

{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/github/github-mcp-server"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..." },
      "disabled": false
    }
  }
}

Save and Roo reloads automatically — check the MCP pane for a green status dot. Use alwaysAllow: ["tool_name"] to skip approval prompts for tools you trust, and disabled: true to park a server without deleting it. Full walkthrough in how to add an MCP server.

The tool budget: why three servers, not thirty

Assistants like Roo Code work best under about 40 active MCP tools, and the average server exposes roughly 12. That means you hit the wall around four servers, not fifty. Past the budget, the model faces too many near-identical tools and starts calling the wrong one — which reads like the model got dumber but is really a config problem.

Treat slots as scarce. Every server below does one job the others don't, and most run locally over STDIO (as ≈90% of MCP servers do), which keeps latency low and your code off someone else's logs. Roo's disabled toggle helps you stay under the ceiling: keep a rarely-used server installed but off, and enable it only for the session that needs it. The arithmetic is the same one I ran in the tool-limit math post.

The shortlist: MCP servers worth adding to Roo Code

Start with a code server, a context server, and one data server. Add a fourth only if you'll use it weekly.

ServerBest forTransportAdd it if
GitHub MCP ServerRepos, issues, PRs, ActionsSTDIO (Docker) or remoteYou do PR/issue work from Roo
GitMCPLive docs for any repoRemote, freeYou want fewer hallucinated APIs
OctocodeDeep code research (FS + LSP)STDIOYou investigate large codebases
Package Registry MCPNPM/PyPI/crates versions + advisoriesSTDIOYou get burned by stale package data
AnyquerySQL over files, DBs, 40+ appsSTDIOYou query structured data often
Graphlit MCP ServerRAG over Slack/Drive/Jira/LinearRemoteYour context lives across SaaS tools

The one everyone should have: GitHub

The GitHub MCP Server is GitHub's official server, and "official" earns its place — it tracks the API and won't quietly rot the way abandoned community forks do. It covers repos, issues, PRs, and Actions, running locally in Docker or via GitHub's hosted remote. Trade-off: it's tool-heavy, so it eats a real chunk of your budget. If you only read issues, scope the token tightly and lean on Roo's alwaysAllow for the two or three tools you use, not all of them.

Cut hallucinations: GitMCP

GitMCP turns any GitHub repo into a live documentation source — the cheapest fix for the model inventing method signatures. It's a free remote server, so there's no install; add the Streamable HTTP URL and go. I reach for this over pasting a whole SDK into context: it grounds Roo on the actual repo docs instead of the model's stale memory. Skip it only if you already run a broader RAG server.

Go deep on code: Octocode

Octocode is the pick when "search" isn't enough and you need to trace how code actually works. It wires GitHub, the local filesystem, and LSP intelligence into Roo, so the assistant follows definitions and references like a staff engineer reading unfamiliar code. It overlaps with the GitHub server, so run both only if you do heavy investigation — otherwise this replaces it.

Stop trusting stale package data: Package Registry

The Package Registry MCP Server searches NPM, PyPI, crates.io, NuGet, and Go registries — plus GitHub Security Advisories — for current versions. The model's training data is months old; this makes "what's the latest, and is it vulnerable" a live lookup instead of a guess. It's small and cheap on tools, so it's an easy fourth slot.

One data server, chosen by your workflow

Pick exactly one. Anyquery runs SQL over files, databases, and 40+ apps (GitHub, Notion, Chrome, Todoist) and exposes them to Roo over MCP — reach for it if you think in queries. Graphlit MCP Server is the RAG option: ingest and search across Slack, Discord, Google Drive, Jira, and Linear when your real context is scattered across SaaS tools. Running both is how you blow the budget.

What to skip

Skip the maximalist bundles. Kitchen-sink servers that expose 30+ tools each will consume your entire budget in two installs and tank tool selection — the exact failure the tool-limit math predicts.

Skip duplicate coverage. Running GitHub, Octocode, and a third code server means three overlapping tool sets competing for the same call. Pick the one that matches how you work, and disabled: true the rest.

Skip community forks of things that ship an official server. When an official option exists, the maintenance and security story is simply better — check the official-vs-community badge before you add anything. For deeper comparisons, the best MCP servers list and best servers for coding agents rank options by category.

My default Roo Code stack

For most engineers: GitHub (official) + GitMCP (docs) + Package Registry (versions) + one data server. That's four servers, comfortably under the ~40-tool ceiling, each doing a distinct job. Swap Octocode in for the GitHub server if your day is code archaeology rather than PR management. Add nothing else until you feel a real gap — and because Roo lets you disabled-toggle servers per project, keep the extras installed but off rather than piling them all into one bloated global config.

FAQ

Are these MCP servers for Roo Code free and safe to use?

Most are free: GitMCP is a free hosted remote, and the GitHub, Octocode, Package Registry, and Anyquery servers are open and run locally on your machine. Safety comes down to two habits — prefer official servers over community forks, and scope any access token (like a GitHub PAT) to the minimum permissions. Because ≈90% of MCP servers run locally over STDIO, your prompts and code usually stay on your machine rather than a third party's.

How many MCP servers can I run in Roo Code at once?

Practically three to four. Tool selection degrades past roughly 40 active tools, and the average server exposes about 12, so four servers is the ceiling before quality drops. Roo Code helps here: set a server's disabled flag to true and Roo strips its tools from the system prompt, so you can keep extras installed but off until you need them.

Where does Roo Code store MCP server configuration?

Roo Code reads from a global mcp_settings.json (open it via the MCP pane's settings icon, Edit Global MCP) and a per-project .roo/mcp.json in your repo root. Both use the same mcpServers object, and project config wins when a server name collides. Commit .roo/mcp.json to share a team setup and keep secrets in the global file.

Does Roo Code support remote MCP servers or only local ones?

Both. Roo Code supports STDIO for local servers plus Streamable HTTP and SSE for remote ones, so you can mix Docker-based and hosted servers in the same config. Default to local STDIO for lower latency and data privacy, and use remote servers like GitMCP or Graphlit when there's nothing to install or the data lives in a hosted service.

Which single MCP server should I add to Roo Code first?

The official GitHub MCP Server, if you touch repos at all. It's maintained by GitHub so it tracks the API, and it covers issues, PRs, and Actions from inside Roo Code. Add GitMCP next to ground the model on real docs and cut hallucinated API calls.

Put this into practice

Browse MCP servers by capability, or check your own setup's tool budget and security.

More essays