GitMCP
A remote MCP server that gives the agent docs and code of any public GitHub repository with nothing to install
Install
{
"mcpServers": {
"gitmcp": {
"url": "https://gitmcp.io/{owner}/{repo}"
}
}
}File ~/.cursor/mcp.json. Fill in owner and repo or use https://gitmcp.io/docs.
This is third-party code. Review the repository files before installing.
What it does
GitMCP turns a public repository or a GitHub Pages site into an MCP server at an address like gitmcp.io/owner/repo. The agent gets tools to fetch the docs, search them, search the code through GitHub and read links referenced in the docs. The server prefers llms.txt, then an AI-oriented docs version, then the README. A generic gitmcp.io/docs endpoint lets the agent pick the repository per request.
Who it is for. For developers working with new or niche libraries the model knows little about.
Good fit when
- The agent gets the API of a new or obscure library wrong
- You want a project's docs connected without any local install
- You need an implementation example from someone else's repository
Not a fit when
- The repository is private
- Code and queries must not go to an external service
Example request
Check the langgraph docs through GitMCP and add memory to my agentLimitations
Works only with public GitHub repositories. The service is cloud hosted, so it depends on gitmcp.io being reachable; you can self-host it. With the generic endpoint the agent may pick the wrong repository.
How to disable. Remove the gitmcp block from your client's MCP configuration.
MCP
- Transport
- sse, http
- Authentication
- not required
Security check
- Agent queries go to an external cloud service
- The agent reads third-party pages linked from documentation
README in short
The README covers two modes: a server per repository and a generic server for any project. It gives configs for Cursor, Claude Desktop via mcp-remote, Windsurf, VS Code, Cline and other clients. It lists the four tools and the order in which documentation sources are picked. It also covers the README badge, privacy and local development. Apache 2.0 licensed.
FAQ
Do I need an account?
No. The service is free and needs no authentication; the authors say queries are not stored.
Where do the docs come from?
From llms.txt when present, otherwise from an AI-oriented docs version or the README.
Related
A skills library that gives coding agents a development process: brainstorming, planning, TDD, subagents and code review
Skills for real engineers by Matt Pocock
Skills For Real Engineers
Small composable skills for engineering with agents: plan grilling, TDD, bug diagnosis, code review and architecture
Reference MCP servers
Model Context Protocol servers
Official reference MCP servers: Filesystem, Fetch, Git, Memory, Sequential Thinking, Time and Everything
Up-to-date, version-specific library docs and code examples in your agent's context, via MCP or a CLI plus skill