MCP ConfigsMar 31, 2026·2 min read

GitMCP — Remote MCP Server for Any GitHub Repo

Free remote MCP server that gives AI agents context from any GitHub project. Eliminates code hallucinations by providing real README, docs, and code. Zero setup. 7.8K+ stars.

TO
TokRepo精选 · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

Replace github.com with gitmcp.io in any repo URL:

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

That's it — your AI agent now has full context of the React repository.


Intro

GitMCP is a free, open-source remote MCP server that gives AI coding agents context from any GitHub project. Simply replace github.com with gitmcp.io in any repo URL, and your AI tool gets access to the project's README, documentation, and code structure. Eliminates code hallucinations by grounding agents in real project documentation. Zero setup, works instantly. 7,800+ GitHub stars.

Best for: Developers who want AI agents to understand any GitHub project accurately Works with: Claude Code, Cursor, Windsurf, Gemini CLI, any MCP client


How It Works

URL Pattern

GitHub URL GitMCP URL
github.com/owner/repo gitmcp.io/owner/repo
github.com/facebook/react gitmcp.io/facebook/react
github.com/vercel/next.js gitmcp.io/vercel/next.js

What It Provides

  • README content — Full project README as context
  • Documentation — Parsed docs from /docs, wiki, etc.
  • Code structure — File tree and key source files
  • llms.txt — Structured project summary optimized for LLMs

Key Benefits

  • Zero config — No API keys, no setup, just change the URL
  • Free — No cost, no rate limits for normal usage
  • Real-time — Always fetches latest content from GitHub
  • Eliminates hallucinations — Agent responses grounded in actual docs

FAQ

Q: What is GitMCP? A: A free remote MCP server that provides AI agents with documentation and code context from any GitHub repository. Replace github.com with gitmcp.io in any URL. 7.8K+ stars.

Q: Does GitMCP require an API key? A: No, it's completely free with zero setup. Just use the gitmcp.io URL pattern.


🙏

Source & Thanks

Created by Ido Salomon. Licensed under MIT. idosal/git-mcp — 7,800+ GitHub stars

Related Assets