MCP Directory

GitMCP

Free remote MCP that turns any GitHub repo into a live documentation source to cut hallucinations.

Verified
SSE (remote)
No auth
TypeScript

Add to your client

Copy the config for your MCP client and paste it into its config file.

Install / run
Connect client to https://gitmcp.io/{owner}/{repo} (or https://gitmcp.io/docs)

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "gitmcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://gitmcp.io/docs"
      ]
    }
  }
}

Claude Desktop connects to remote servers through the `mcp-remote` proxy (installed on first run via npx). Restart Claude Desktop after saving.

Before you start

  • An MCP-capable client (Cursor, Claude Desktop, Claude Code, Windsurf, VS Code, Cline, Highlight AI, Augment Code, Msty, etc.)
  • A public GitHub repository or GitHub Pages site to point at (private repos are not supported)
  • No account, API key, or token required — the service is free and unauthenticated

About GitMCP

GitMCP is a free, open-source remote MCP server that turns any public GitHub repository (or GitHub Pages site) into a live documentation and code source for your AI coding assistant. Instead of relying on the model's training data, the assistant fetches the project's real, current docs and code on demand, which sharply reduces hallucinated APIs and outdated answers.

It runs entirely in the cloud over SSE, so there is nothing to install. You point your client at a URL: a repo-specific endpoint like https://gitmcp.io/{owner}/{repo}, a GitHub Pages endpoint like https://{owner}.gitmcp.io/{repo}, or the generic https://gitmcp.io/docs endpoint that lets the model work against any repo you name during the conversation.

GitMCP prioritizes an llms.txt file if the repo ships one, falling back to README.md and other docs. It does not store queries or PII and respects robots.txt. Because it only reads public GitHub content on demand, no authentication or token is required.

Tools & capabilities (7)

fetch_<repo>_documentation

Retrieves the primary documentation (llms.txt, then README/docs) for a specific repo endpoint.

search_<repo>_documentation

Semantic/keyword search across a repo's documentation for a given query.

search_<repo>_code

Searches the repository's actual source code via GitHub code search.

fetch_url_content

Fetches the content of a URL/link referenced inside the documentation.

fetch_generic_documentation

Generic-endpoint variant (gitmcp.io/docs) that fetches docs for a repo named at query time.

search_generic_documentation

Generic-endpoint variant that searches docs for any specified owner/repo.

search_generic_code

Generic-endpoint variant that searches code for any specified owner/repo.

When to use it

  • Use it when an LLM keeps inventing API methods for a library and you want answers grounded in the real repo docs.
  • Use it when you're working against a fast-moving or niche library whose docs postdate the model's training cutoff.
  • Use it when you want zero local setup — a single SSE URL added to your client.
  • Use it when you want the assistant to grep a project's actual source code, not just its prose docs.
  • Use it via the generic gitmcp.io/docs endpoint when you want one server that can target any repo you mention mid-chat.

Quick setup

  1. 1Pick your endpoint: repo-specific `https://gitmcp.io/{owner}/{repo}`, GitHub Pages `https://{owner}.gitmcp.io/{repo}`, or generic `https://gitmcp.io/docs`.
  2. 2Open your MCP client's config and add a new remote/SSE server pointing at that URL.
  3. 3Save and restart (or reload) the client so it discovers the GitMCP tools.
  4. 4Confirm the `fetch_*_documentation` / `search_*` tools appear in the client's tool list.
  5. 5Ask a question about the target repo and verify the assistant cites the fetched docs.

Security notes

This is a third-party hosted service that fetches public GitHub content on your behalf; it should only be pointed at repositories whose docs you trust. No credentials are sent, so private repos are not supported.

GitMCP FAQ

Does GitMCP require an API key or GitHub token?

No. It is free and unauthenticated, reading only public GitHub content on demand. Private repositories are not supported.

What's the difference between the repo URL and the gitmcp.io/docs endpoint?

A repo URL (gitmcp.io/owner/repo) is locked to one project and is slightly more secure; gitmcp.io/docs is a dynamic endpoint where the model chooses the repo at query time, which is more flexible.

How does it decide what documentation to serve?

It prioritizes an `llms.txt` file if the repository provides one, then falls back to README.md and other documentation in the repo.

Is it local or remote?

Remote only. It runs in the cloud over SSE, so there is no package to install — you just add the URL to your client.

Does it store my queries?

Per its docs, GitMCP does not store queries or personally identifiable information and respects robots.txt directives.

Alternatives to GitMCP

Microsoft's official browser-automation MCP using Playwright's accessibility tree (no vision model).

Featured
Verified
stdio (local)
No auth
TypeScript
12 tools
Updated 9 days agoRepo

Up-to-date, version-specific library documentation injected into your coding agent.

Verified
stdio (local)
API key
TypeScript
2 tools
Updated 13 days agoRepo

LSP-powered coding agent toolkit: semantic symbol search, references and structural edits.

Verified
stdio (local)
No auth
Python
11 tools
Updated 11 days agoRepo