# 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. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use Replace `github.com` with `gitmcp.io` in any repo URL: ```json { "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](https://github.com/idosal). Licensed under MIT. > [idosal/git-mcp](https://github.com/idosal/git-mcp) — 7,800+ GitHub stars --- Source: https://tokrepo.com/en/workflows/32ef0d9f-3202-4411-9f4a-f24fed4801eb Author: MCP Hub