Best MCP Servers for Up-to-Date Docs and Code Context

Coding assistants are trained on old data, so they confidently use deprecated APIs or invent functions that do not exist. A documentation MCP server fixes this by fetching current docs or source at the moment you ask.

A second family of tools tackles the opposite problem: too much context. They index your repository so the agent retrieves only the functions it needs, or compress tool output before it reaches the model.

AgentIndex · Updated 2026-10-14

Where the context comes from

Public docs, private docs and your own code need different tools.

  1. Public library docs

    Up-to-date docs for libraries and repos.

  2. Private docs

    A version-aware index of your own docs.

  3. Your own code

    Retrieve exact symbols or a code graph.

  4. Spend fewer tokens

    Compress output before it reaches the model.

Quick picks

  • Context7 — up-to-date library documentation for your AI coding assistant; the most widely used option here.
  • git-mcp — turns any GitHub repo or Pages site into a docs hub with a remote MCP URL and no install.
  • docs-mcp-server — private, version-aware documentation index; pick it for internal docs or a specific library version.
  • ref-tools-mcp — documentation search that returns only the relevant tokens, through a hosted Ref service that needs an API key.
  • jcodemunch-mcp — indexes your code with tree-sitter so agents fetch exact symbols; free for non-commercial use only.
  • codebase-memory-mcp — indexes a codebase into a persistent knowledge graph to cut the tokens agents spend exploring it.

Side-by-side comparison

ToolWhat it isStarsLicenseLast pushMaintenanceReleases, 90 daysCommits, 12 weeksInstall
Context7Up-to-date library docs for your AI coding assistant64.3kMIT2026-11-06Active30Commits, 12 weeks: 8, 10, 11, 13, 6, 12, 10, 33, 23, 39, 30, 10npx ctx7 setup
git-mcpFree remote MCP server that turns any GitHub repo or Pages site into a docs hub for your AI assistant, with no install8.5kApache-2.02026-05-08Slowing0Commits, 12 weeks: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0npx mcp-remote https://gitmcp.io/{owner}/{repo}
docs-mcp-serverPrivate, version-aware documentation index for AI coding assistants1.9kMIT2026-11-01Active9Commits, 12 weeks: 7, 3, 1, 0, 25, 37, 22, 9, 82, 206, 5, 0npx @arabold/docs-mcp-server@latest
ref-tools-mcpMIT MCP server for documentation search that returns only the relevant tokens, via a hosted Ref service with an API key1.2kMIT2026-11-06Active0Commits, 12 weeks: 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0npx ref-tools-mcp@latest
jcodemunch-mcpMCP server that indexes code with tree-sitter so agents fetch exact symbols instead of whole files; free for non-commercial use only2.8kn/a2026-11-07Active30Commits, 12 weeks: 78, 101, 179, 89, 52, 53, 65, 42, 110, 73, 29, 46pip install jcodemunch-mcp
codebase-memory-mcpCode knowledge graph that cuts agent token use on codebases48.3kMIT2026-11-07Active12Commits, 12 weeks: 92, 153, 91, 86, 56, 139, 265, 218, 160, 163, 61, 34curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/mai…
HeadroomLocal context compression with lossless verification and original retrieval79.1kApache-2.02026-11-07Active14Commits, 12 weeks: 77, 32, 30, 46, 24, 134, 141, 180, 54, 59, 61, 90python -m pip install --only-binary=:all: "headroom-ai[mcp]==0.43.1"
pg-aiguidePostgreSQL docs and best-practice skills for AI coding assistants1.9kApache-2.02026-11-06Active2Commits, 12 weeks: 0, 0, 14, 2, 1, 7, 0, 1, 0, 3, 0, 10claude plugin marketplace add timescale/pg-aiguide

Tools in this list with an in-depth AgentIndex review: 8/8

How to choose

  • Decide whether you need public library docs (Context7, GitMCP), private or internal docs (a docs index), or your own code (code retrieval).
  • Check where the work happens. Hosted services are convenient but send queries to a third party; local indexes keep code on your machine.
  • Check licences: one code-retrieval tool here is free only for non-commercial use.
  • Look at version awareness. Docs for the version you actually use beat docs for the latest release.
  • Measure the token savings yourself; the percentages in READMEs are the projects' own figures.

FAQ

Why does my coding assistant use outdated APIs?

Models learn from data that stops at a cutoff date, so they may not know about newer versions of a library. A documentation MCP server fetches current docs when you ask, which reduces outdated or invented calls.

Context7 or GitMCP?

Context7 serves curated library documentation. GitMCP turns any public GitHub repository or Pages site into an MCP endpoint, preferring llms.txt and falling back to the README. If a library is not covered by one, the other may be.

Can I use these with private code or internal docs?

Use a local or self-hosted option for that: a documentation index you run yourself, or a local code index. Hosted services receive your queries, so check their privacy terms first.

How we compiled this list

Tools are chosen by hand from the projects in our index, favouring those we have reviewed in depth. Stars, licence, last-push date and install command come from each repository and are refreshed with the site data. The maintenance column comes from the GitHub API (archived flag, last commit, releases in the last 90 days) and is refreshed daily. We read each project's README and docs; we have not run every tool ourselves, so test before you depend on one.

More lists