MCP Directory

Best MCP Servers for GitHub Copilot (2026)

Six MCP servers that pull their weight in Copilot Agent mode — and the ones that just burn your tool budget.

Hua·June 30, 2026·6 min read
Detailed close-up of HTML code on a computer monitor, showcasing web development.
Photo by Pixabay on Pexels

The best MCP servers for GitHub Copilot are the ones that give the model real context — your repos, your dependencies, your docs — without flooding its tool list. In practice that means starting with the GitHub MCP Server, adding one code-research server, and stopping before you hit Copilot's roughly 40-tool budget. Everything below is a server I've actually wired into Copilot Agent mode, with the config path and the trade-offs.

One thing to get straight first: MCP tools only appear in Copilot's Agent mode. In Ask or Edit mode they're invisible, so if you added a server and see nothing, that's almost always the reason before you go troubleshooting anything deeper.

How Copilot loads MCP servers (and the tool budget)

GitHub Copilot in VS Code reads MCP servers from a .vscode/mcp.json file in your workspace, or from your user config via MCP: Open User Configuration in the Command Palette. The root key is "servers" — not "mcpServers" like Claude Desktop or Cursor use — which trips up almost everyone porting a config over.

A minimal entry looks like this:

{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp"
    }
  }
}

Here's the constraint that shapes every recommendation below: Copilot works best under a ~40-tool budget. Each server you add contributes its whole tool list to the model's context, and past ~40 tools the model gets slower and picks wrong. The tool-limit math that bites Cursor users applies here too. So the game isn't "add every server" — it's picking servers whose tools you'll actually call.

Most of these run locally over stdio (≈90% of MCP servers do), which keeps latency low and your tokens on your machine. A couple are remote HTTP, noted below.

The GitHub MCP Server: start here

GitHub MCP Server is the one server nearly every Copilot user should install first. It's GitHub's official server, and it turns "read this repo," "open a PR," "triage these issues," and "check that failing Actions run" into things Copilot can do without you leaving the editor.

You have two ways to run it. The hosted remote endpoint (https://api.githubcopilot.com/mcp, shown above) needs zero local setup and authenticates through your Copilot session. Or run it locally in Docker if you want to scope a Personal Access Token yourself — better for enterprise or when you're nervous about what the model can reach.

The catch: it exposes a lot of tools. Use its toolset filtering to enable only the groups you need (say, repos and pull_requests) so it doesn't eat your whole budget alone. Full toolsets on, it's easily 40+ tools by itself.

Cut hallucinations: GitMCP and Package Registry

The fastest quality win in Copilot is grounding it in real docs and real package data, and two small servers do exactly that. Copilot's model is confident about library APIs that changed six months ago; these servers hand it the current truth.

GitMCP is a free remote server that turns any GitHub repo into a live documentation source. Point it at a library's repo and Copilot reads the actual README, docs, and code instead of guessing an API from memory. It's remote HTTP, so there's nothing to install — just add the URL.

Package Registry MCP Server searches NPM, PyPI, crates.io, NuGet, and Go registries plus GitHub Security Advisories, so Copilot suggests versions that exist and flags ones with known CVEs. If you've ever had it invent a package name, this is the fix.

Both are lightweight — a handful of tools each — so they're cheap to keep installed permanently.

Deeper code research: Octocode and Anyquery

When you need Copilot to reason across whole codebases or your own data, two servers go further than the basics. These are heavier, so add them per-project rather than globally.

Octocode wires GitHub search, your local filesystem, and LSP intelligence into the assistant so it can research code the way a staff engineer does — trace a symbol, find real usage examples across public repos, then apply the pattern. It's the server I reach for when "how do other people actually use this?" matters.

Anyquery runs SQL over files, databases, and 40+ apps (GitHub, Notion, Chrome history, Todoist) and exposes them to Copilot via MCP. It's overkill for pure coding, but if your work spans app data — "which of my open issues touch the billing module?" — it's the one tool that answers with a query instead of a guess.

ServerBest forTransportWeight
GitHub MCP ServerRepos, PRs, issues, ActionsLocal Docker or remote HTTPHeavy (filter it)
GitMCPLive repo docs, anti-hallucinationRemote HTTPLight
Package Registry MCPPackage/version/CVE lookupsLocal stdioLight
OctocodeCross-repo code research + LSPLocal stdioMedium
AnyquerySQL over apps, files, DBsLocal stdioMedium
GraphlitRAG over Slack, Drive, Jira, LinearRemote HTTPMedium

Team knowledge: Graphlit, and what to skip

If your context lives outside code — Slack threads, Google Drive, Jira, Linear — Graphlit MCP Server ingests it and gives Copilot RAG-style search over the lot. That's genuinely useful on a team where the "why" of a decision is in a Slack channel, not the commit message. Solo on a hobby repo, skip it; it's setup you won't repay.

What else to skip: don't install every trending server at once. The instinct to add a browser server, a database server, a filesystem server, and three integrations on day one is how you blow past 40 tools and make Copilot worse than stock. Add one, use it for a week, then decide.

My default stack: GitHub MCP Server (filtered) + Package Registry + GitMCP, then Octocode or Anyquery per project. If you want the config written for you, the config generator outputs correct mcp.json for any of these, and the best MCP servers list covers picks beyond Copilot.

FAQ

Are these MCP servers free and safe to use with Copilot?

Most are free and open source — GitMCP and Package Registry MCP cost nothing, and the GitHub MCP Server is free and official. Safety comes down to trust: an MCP server runs with the permissions you give it, so prefer official or well-starred community servers, review what a server can reach, and use scoped tokens (a limited-scope PAT for the local GitHub server) rather than broad ones. Graphlit and some remotes have their own accounts and pricing, so check those before wiring them in.

Why don't my MCP tools show up in GitHub Copilot?

MCP tools only appear in Copilot's Agent mode — switch the Copilot Chat mode dropdown to "Agent," because Ask and Edit modes hide them entirely. Also confirm your config uses the "servers" root key (not "mcpServers") in .vscode/mcp.json, and that you approved the trust prompt VS Code shows the first time a server starts.

How many MCP servers can I add to GitHub Copilot?

There's no hard cap, but keep the total under roughly 40 tools across all servers. Past that, Copilot's model slows down and starts picking the wrong tool. Since one full-featured server (like GitHub's) can contribute 40+ tools alone, use toolset filtering and add servers deliberately rather than all at once.

What's the difference between the local and remote GitHub MCP Server?

The remote endpoint (https://api.githubcopilot.com/mcp) needs no install and authenticates through your Copilot session — fastest to start. The local Docker version lets you supply your own scoped Personal Access Token, which is the better choice for enterprise setups or when you want tight control over what the model can access.

Do MCP servers work in GitHub Copilot outside VS Code?

Yes, but the config differs by client. VS Code and Visual Studio read mcp.json with a "servers" key, while Copilot CLI and Copilot on github.com have their own configuration paths. The servers themselves are the same — most run locally over stdio (≈90% of MCP servers do) — but always check the client-specific setup docs before copying a config across.

Put this into practice

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

More essays