Git MCP Server

GitHub repositories and documentation accessed directly by AI models.

Data last scanned last week · Reviewed last month

427 tools8,303TypeScriptApache-2.0

Overview

GitMCP transforms any GitHub repository or documentation site into a real-time data source for AI tools like Cursor. By acting as an MCP server, it allows LLMs to query live code and documentation, ensuring they stay current with the latest project developments rather than relying on stale training data. It offers specific configuration modes, allowing users to target single libraries for improved focus or use a generic server for broad, flexible repository access across multiple projects. This setup is designed to provide AI assistants with accurate API usage and concrete code examples, reducing the likelihood of hallucinations in coding tasks.

Our verdict

GitMCP carries a high risk level with a security score of 48/100. Key concerns include the lack of an editorial review, unverified OAuth and authentication methods, and the fact that it is a community-maintained project rather than an official vendor release. Users should proceed with caution, especially in environments where strict supply-chain or access control policies are required, as critical components like read-only mode and authentication mechanisms have not been independently vetted.

  • Supports specific repository targeting for tighter scope control
  • Reduces AI hallucinations via live source code access
  • Licensed under the permissive Apache-2.0 license
  • Supported by a diverse group of 16 contributors
  • Community-maintained rather than official vendor software
  • Authentication methods have not yet been reviewed
  • Read-only mode and OAuth support lack verification
  • No editorial review of the implementation

Setup

Claude Desktop
{
  "mcpServers": {
    "git-mcp": {
      "args": [
        "-y",
        "git-mcp"
      ],
      "command": "npx"
    }
  }
}

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.

  • No read-only mode — running this grants full read/write access.
  • No built-in authentication — anyone with access to this config can invoke every tool it exposes.

Tools

ToolDescriptionRisk
fetch_<repo-name>_documentationThis tool gets the primary documentation from a GitHub repository.low
search_<repo-name>_documentationThis tool lets the AI search through a repository's documentation by providing a specific search query.low
fetch_url_contentThis tool helps the AI get information from links mentioned in the documentation.low
search_<repo-name>_codeThis tool searches through the actual code in the repository using GitHub's code search.low
fetch_generic_documentationFetches documentation when using the dynamic endpoint.low
search_generic_codeSearches code when using the dynamic endpoint.low
search_generic_documentationSearches documentation when using the dynamic endpoint.low

Compatibility

ClientLocalDockerRemoteRead-only
ChatGPT
Claude Desktop
Cursor
VS Code
Windsurf

Frequently asked questions

What is the difference between the specific repository and generic server modes?

Specific repository mode targets one project for increased relevance and security. The generic server mode at gitmcp.io/docs allows you to switch between different repositories dynamically.

Do I need to install or download anything to use GitMCP?

No, GitMCP runs in the cloud and requires no local installations, downloads, or signups. You simply add the appropriate GitMCP URL to your IDE's MCP configuration.

Does GitMCP store my personal information or search queries?

No, GitMCP does not collect personal information or store your queries.

Can I host GitMCP myself?

Yes, GitMCP is open-source and supports self-hosting.

Does GitMCP support GitHub Pages?

Yes, you can connect to GitHub Pages sites using the {owner}.gitmcp.io/{repo} URL format.

Badge

Git MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.