Data as of

GitMCP for Claude Code: Setup & Config

GitMCP turns public GitHub repositories and GitHub Pages projects into documentation sources for Claude Code.

GitMCP Claude Code configuration

  1. Choose Claude Code configuration scope

    For GitMCP, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.

  2. Add GitMCP to Claude Code

    Use the git-mcp entry below in mcpServers. Keep GitMCP's documented sse connection fields and your other Claude Code entries.

  3. Check GitMCP in Claude Code

    GitMCP: Inspect claude mcp list and /mcp status.

Config file · Project scope: .mcp.json at the repository root

JSON
{
  "mcpServers": {
    "git-mcp": {
      "type": "sse",
      "url": "https://gitmcp.io/%7Bowner%7D/%7Brepo%7D"
    }
  }
}

CLI (POSIX shell)
claude mcp add-json --scope project 'git-mcp' '{"type":"sse","url":"https://gitmcp.io/%7Bowner%7D/%7Brepo%7D"}'

GitMCP in Claude Code: sse checks

  • Inspect claude mcp list, then GitMCP's connection to gitmcp.io in /mcp. Complete Claude Code authentication only for a trusted service.
  • GitMCP: check sse connectivity to gitmcp.io from Claude Code; a stdio command is not a replacement for this endpoint.
Catalog transports
stdio
Tools
fetch__documentation, search__documentation, fetch_url_content

GitMCP — details. Claude Code guide

Frequently asked questions

Register GitMCP with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.

Claude Code's git-mcp example uses sse. The GitMCP catalog lists stdio; these instructions follow the stored configuration instead.

Claude Code connects GitMCP to gitmcp.io using url.

GitMCP's stored list contains 7 tools, including fetch__documentation, search__documentation, fetch_url_content. Compare those names with Claude Code's connected tool list; the stored list is not a live check.