git-mcp

git-mcp

4.7

GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.

GitMCP is a versatile tool designed to enhance AI assistants by providing them with direct access to the latest documentation and code from GitHub repositories. It eliminates the issue of code hallucinations by ensuring that AI tools like Cursor can access accurate and relevant information, even for niche or rapidly changing libraries. GitMCP supports two main configurations: specific repository access for targeted use and a generic server for flexible access across multiple repositories. This tool is particularly beneficial for developers who frequently switch between different projects or work with specialized libraries. GitMCP is cloud-based, requiring no setup, and is open-source, free, and private, ensuring user data is not collected or stored. It supports various AI assistants, including Cursor, Claude Desktop, Windsurf, VSCode, Cline, Highlight AI, and Augment Code, making it a versatile addition to any developer's toolkit.

Features

  • Latest Documentation on ANY GitHub Project: Provides seamless access to project documentation and code with smart search capabilities.
  • No More Hallucinations: Ensures AI assistants provide accurate and relevant answers.
  • Zero Setup: Cloud-based service requiring no downloads or installations.
  • Embedded Chat: Allows direct interaction with repository documentation through an in-browser chat.
  • Open, Free, and Private: Open-source and free to use, with no personal data collection.

MCP Tools

  • {'fetch__documentation': 'Retrieves primary documentation from a GitHub repository.'}
  • {'search__documentation': "Allows AI to search through a repository's documentation with a specific query."}
  • {'fetch_url_content': 'Retrieves content from links mentioned in the documentation.'}
  • {'search__code': "Searches through the actual code in the repository using GitHub's code search."}

Usage with Different Platforms

Cursor


{
  "mcpServers": {
    "gitmcp": {
      "url": "https://gitmcp.io/{owner}/{repo}"
    }
  }
}

Claude Desktop


{
  "mcpServers": {
    "gitmcp": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://gitmcp.io/{owner}/{repo}"
      ]
    }
  }
}

Windsurf


{
  "mcpServers": {
    "gitmcp": {
      "serverUrl": "https://gitmcp.io/{owner}/{repo}"
    }
  }
}

VSCode


{
  "servers": {
    "gitmcp": {
      "type": "sse",
      "url": "https://gitmcp.io/{owner}/{repo}"
    }
  }
}

Cline


{
  "mcpServers": {
    "gitmcp": {
      "url": "https://gitmcp.io/{owner}/{repo}",
      "disabled": false,
      "autoApprove": []
    }
  }
}

Frequently Asked Questions

What is the Model Context Protocol?

The Model Context Protocol is a standard that allows AI assistants to request and receive additional context from external sources in a structured manner, enhancing their understanding and performance.

Does GitMCP work with any AI assistant?

Yes, GitMCP is compatible with any AI assistant supporting the Model Context Protocol, including tools like Cursor, VSCode, Claude, etc.

Is GitMCP compatible with all GitHub projects?

Absolutely! GitMCP works with any public GitHub repository without requiring any modifications.

Does GitMCP cost money?

No, GitMCP is a free service to the community with no associated costs.