GitMCP for Cursor: Setup & Config
GitMCP turns public GitHub repositories and GitHub Pages projects into documentation sources for Cursor.
What you can do with GitMCP in Cursor
Ground coding questions in public GitHub documentation and code without repository-side setup.
- Ask an assistant how to use a public GitHub library.
- Switch between repository documentation sources through the dynamic endpoint.
- Follow external references mentioned in project documentation.
Before you start: GitMCP in Cursor
- An MCP-compatible client
- A public GitHub repository or GitHub Pages project
- npx when using the documented local bridge
Replace {owner} and {repo} with the desired public project's identifiers. This command is the README's bridge configuration, not a locally hosted GitMCP server. Direct SSE clients can use the URL; https://gitmcp.io/docs is the documented dynamic alternative. Tool names for repository-specific access are reproduced as shown in the supplied README.
GitMCP Cursor configuration
Choose Cursor configuration scope
For GitMCP, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.
Add GitMCP to Cursor
Use the git-mcp entry below in mcpServers. Keep GitMCP's documented sse connection fields and your other Cursor entries.
Check GitMCP in Cursor
GitMCP: Enable in Cursor’s MCP settings; inspect tools.
Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
{
"mcpServers": {
"git-mcp": {
"url": "https://gitmcp.io/%7Bowner%7D/%7Brepo%7D"
}
}
}GitMCP tools available to Cursor
GitMCP's stored tool list documents 7 tools; compare it with Cursor's connected tool list, because the stored list is not a live check.
- fetch__documentation
Find fetch__documentation under GitMCP in Cursor's MCP settings; inspect its arguments when the agent requests a call.
Retrieve the repository's primary documentation, prioritizing sources such as llms.txt.
- search__documentation
Find search__documentation under GitMCP in Cursor's MCP settings; inspect its arguments when the agent requests a call.
- fetch_url_content
Find fetch_url_content under GitMCP in Cursor's MCP settings; inspect its arguments when the agent requests a call.
- search__code
Find search__code under GitMCP in Cursor's MCP settings; inspect its arguments when the agent requests a call.
- fetch_generic_documentation
Find fetch_generic_documentation under GitMCP in Cursor's MCP settings; inspect its arguments when the agent requests a call.
Fetch documentation for a specified repository through the dynamic endpoint.
- search_generic_code
Find search_generic_code under GitMCP in Cursor's MCP settings; inspect its arguments when the agent requests a call.
Search a specified repository's code through the dynamic endpoint.
- search_generic_documentation
Find search_generic_documentation under GitMCP in Cursor's MCP settings; inspect its arguments when the agent requests a call.
Search documentation for a selected repository through the generic server.
Troubleshooting GitMCP in Cursor
- Enable GitMCP in Cursor's MCP settings and inspect its tools. For gitmcp.io, check reachability, transport, and credential expiry if authentication fails.
- GitMCP: check sse connectivity to gitmcp.io from Cursor; a stdio command is not a replacement for this endpoint.
- Transport mismatch: GitMCP's catalog lists stdio; the displayed Cursor configuration uses sse.
- Known limitation: Access is limited to publicly available content.
- Known limitation: The generic endpoint depends on choosing the intended repository correctly.
- Known limitation: GitHub Pages retrieval follows robots.txt restrictions.
- General Cursor troubleshooting lives in the /clients/cursor guide.
GitMCP — details. Cursor guide