跳到主要内容
Supermarket
返回能力市场
MCP Server
programming
Apache-2.0

git-mcp

Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project

idosalidosal
85/ 100

公开评测 · 综合采用结论

证据充分,整体质量与安全表现优秀

查看评测依据 评测我的项目基于公开项目证据,非安全认证或安装推荐
8.4kstars
750forks
最近更新 4个月前
评测生成时间(北京时间)
本报告引擎
v3.10.0
当前引擎
v3.16.0

本报告与当前引擎使用不同规则;原分数不会自动更新,不同版本的分数不宜直接对比。

重新评测此项目

进入后确认来源与额度,提交才会创建任务。

Evaluation report

综合采用结论

85
A
满分 100
值得推荐低风险
决策摘要

证据充分,整体质量与安全表现优秀

96%
高置信度
100
文档
100
安全
81
质量
52
活跃
67
采用
  • 基础评测完成+25/25确定性评分与静态安全扫描已完成
  • README 有效证据+25/2513,709 个去重后的有效字符
  • 独立证据来源+16/204 类非重复证据,重复文件不叠加
  • 仓库元数据+10/10已取得仓库状态与采用数据
  • 活跃记录+5/5已取得最近提交时间
  • AI 复核+15/15已完成结构化 AI 证据复核
How it works · 时序图

GitMCP 工作流程

README 的 How It Works 描述了用户、AI、GitMCP 之间的请求响应流程,适合用序列图展示。

AI 提取 · 证据约束

左右滑动查看完整图示

GitMCP 工作流程README 的 How It Works 描述了用户、AI、GitMCP 之间的请求响应流程,适合用序列图展示。用户发起者AI助手请求方GitMCP服务端GitHub数据源提问调用工具获取文档返回内容返回数据回答
图示依据
  • • How It Works 章节步骤 1-5
  • • Tools 章节描述工具调用
  • • Privacy 章节说明访问 GitHub 内容
五维表现
GitMCP 提供远程 MCP 服务,解决 AI 访问 GitHub 文档的幻觉问题,价值明确。文档清晰,多客户端配置示例丰富,但设计细节如错误处理、安全边界证据不足。
质量证据
  • README 中 'Getting Started' 提供多种客户端配置
  • Tools 章节列出 fetch_<repo-name>_documentation 等工具
  • FAQ 说明兼容任何支持 MCP 的 AI 助手
  • Privacy 章节声明不存储查询,遵循 robots.txt
  • License 章节为 Apache 2.0
采用建议
优势
  • 问题与用途描述
  • 有效 README
  • 安装或接入步骤
  • 可执行示例
  • 未发现已知高风险模式
关注点
  • 错误处理与排障信息缺失
  • 工具参数细节未说明
  • 动态端点安全性依赖 AI 判断
  • 自托管部署细节有限
适合

使用 Cursor 等 IDE 的开发者、需要访问最新 GitHub 文档的 AI 集成、希望零配置接入 MCP 的用户、需要快速获取库文档的场景

不建议直接用于

需要离线或私有代码访问的场景、对数据隐私要求极高的企业环境、需要深度定制工具行为的用户

也有自己的公开项目?先看完证据,再用当前规则生成独立报告。

评测我的项目 →
文档证据
100/100
问题与用途描述10 分
有效 README12 分
安装或接入步骤14 分
可执行示例16 分
输入、参数或工具说明11 分
输出或结果说明9 分
限制、权限或边界12 分
错误处理或排障8 分
许可证信息5 分
结构化章节3 分
安全证据
低风险
未发现已知高风险模式

静态扫描不是安全保证,生产接入前仍应人工复核权限和数据边界。

方法、证据与局限展开
数据来源

GitHub Repository API

扫描范围

4 个文件 · 19,708 字符

评测引擎

v3.10.0 · AI 复核已启用(deepseek-chat)

局限
  • 静态评测不会安装或执行项目代码
  • 安全扫描基于高信号文件与已知模式,不能替代人工审计
  • 流行度只反映采用程度,不代表安全或工程质量

30 天热度趋势

README

GitMCP

image

What is GitMCP • Features • Getting Started • How It Works • Badge • Examples • FAQ • Privacy • Contributing • License

GitMCP Twitter Follow Twitter Follow

Pulse MCP Badge

🤔 What is GitMCP?

Stop vibe-hallucinating and start vibe-coding!

GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms any GitHub project (repositories or GitHub pages) into a documentation hub. It enables AI tools like Cursor to access up-to-date documentation and code, even if the LLM has never encountered them, thereby eliminating code hallucinations seamlessly.

GitMCP supports two flavors -

  • Specific Repository (gitmcp.io/{owner}/{repo} or {owner}.gitmcp.io/{repo}): Use these when you primarily work with a select number of libraries. This ensures your AI assistant always targets the correct project, enhancing security and relevance by preventing access to unintended repositories.
  • Generic Server (gitmcp.io/docs): Use this for maximum flexibility when you need to switch between different repositories frequently. The AI assistant will prompt you (or decide based on context) which repository to access for each request. Be mindful that this relies on correctly identifying the target repository each time.

With GitMCP:

  • AI assistants access the latest documentation and code directly from the source.
  • Get accurate API usage and reliable code examples.
  • Work effectively even with niche, new, or rapidly changing libraries.
  • Significantly reduced hallucinations and improved code correctness.

For example, this side-by-side comparison shows the result for the same one-shot prompt in Cursor when creating a three.js scene -

https://github.com/user-attachments/assets/fbf1b4a7-f9f0-4c0e-831c-4d64faae2c45

✨ Features

  • 😎 Latest Documentation on ANY GitHub Project: Grant your AI assistant seamless access to the GitHub project's documentation and code. The built-in smart search capabilities help find exactly what the AI needs without using too many tokens!
  • 🧠 No More Hallucinations: With GitMCP, your AI assistant can provide accurate and relevant answers to your questions.
  • ☁️ Zero Setup: GitMCP runs in the cloud. Simply add the chosen GitMCP URL as an MCP server in your IDE — no downloads, installations, signups, or changes are required.
  • 💬 Embedded Chat: Start quickly by chatting directly with the repository's documentation through our in-browser chat!
  • ✅ Open, Free, and Private: GitMCP is open-source and completely free to use. It doesn't collect personal information or store queries. You can even self-host it!

🚀 Getting Started

Using GitMCP is easy! Simply follow these steps:

Step 1: Choose the type of server you want

Choose one of these URL formats depending on what you want to connect to:

  • For GitHub repositories: gitmcp.io/{owner}/{repo}
  • For GitHub Pages sites: {owner}.gitmcp.io/{repo}
  • For a generic tool that supports any repository (dynamic): gitmcp.io/docs

Replace {owner} with the GitHub username or organization name, and {repo} with the repository name.

For your convenience, you can also use the conversion tool on the landing page to format the GitHub URL into an MCP URL!

Step 2: Connect your AI assistant

Select your AI assistant from the options below and follow the configuration instructions:

Connecting Cursor

Update your Cursor configuration file at ~/.cursor/mcp.json:

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

Connecting Claude Desktop

  1. In Claude Desktop, go to Settings > Developer > Edit Config
  2. Replace the configuration with:
    {
      "mcpServers": {
        "gitmcp": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "https://gitmcp.io/{owner}/{repo}"
          ]
        }
      }
    }
    

Connecting Windsurf

Update your Windsurf configuration file at ~/.codeium/windsurf/mcp_config.json:

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

Connecting VSCode

Update your VSCode configuration file at .vscode/mcp.json:

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

Connecting Cline

Update your Cline configuration file at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json:

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

Connecting Highlight AI

  1. Open Highlight AI and click the plugins icon (@ symbol) in the sidebar
  2. Click Installed Plugins at the top of the sidebar
  3. Select Custom Plugin
  4. Click Add a plugin using a custom SSE URL

Plugin name: gitmcp SSE URL: https://gitmcp.io/{owner}/{repo}

For more details on adding custom MCP servers to HighlightAI, refer to the documentation.

Connecting Augment Code

  1. Open Augment Code settings
  2. Navigate to the MCP section
  3. Add a new MCP server with the following details:

Name the MCP server: git-mcp Docs

Use this command:

npx mcp-remote https://gitmcp.io/{owner}/{repo}

Or use the following configuration:

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

Connecting Msty AI

  1. Open Msty Studio
  2. Go to Tools > Import Tools from JSON Clipboard
  3. Paste the following configuration:
{
  "mcpServers": {
    "git-mcp Docs": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://gitmcp.io/{owner}/{repo}"
      ]
    }
  }
}

For more details on configuring MCP servers in Augment Code, visit the Augment Code documentation.

Note: Remember to replace {owner} and {repo} with the actual GitHub username/organization and repository name. You can also use the dynamic endpoint https://gitmcp.io/docs to allow your AI to access any repository on demand.

⚙ How It Works

GitMCP connects your AI assistant to GitHub repositories using the Model Context Protocol (MCP), a standard that lets AI tools request additional information from external sources.

What happens when you use GitMCP:

  1. You provide the GitMCP URL to your AI assistant (e.g., gitmcp.io/microsoft/typescript). GitMCP exposes tools like documentation fetching, smart search, code search, etc.
  2. Prompt the AI assistant on documentation/code-related questions.
  3. Your AI sends requests to GitMCP to use its tools (with your approval).
  4. GitMCP executes the AI's request and returns the requested data.
  5. Your AI receives the information and generates a more accurate, grounded response without hallucinations.

Supported Documentation

GitMCP currently supports the following documents (in order of priority):

  1. llms.txt
  2. AI-optimized version of the project's documentation
  3. README.md/root

💡 Examples

Here are some examples of how to use GitMCP with different AI assistants and repositories:

Example 1: Using Windsurf with a specific repository

For the GitHub repository https://github.com/microsoft/playwright-mcp, add https://gitmcp.io/microsoft/playwright-mcp as an MCP server to Windsurf.

Prompt to Claude:

"How do I use the Playwright MCP"

Windsurf will pull the relevant documentation from GitMCP to implement the memory feature correctly.

Example 2: Using Cursor with a GitHub Pages site

For the GitHub Pages site langchain-ai.github.io/langgraph, add https://langchain-ai.gitmcp.io/langgraph as an MCP server to Cursor.

Prompt to Cursor:

"Add memory to my LangGraph agent"

Cursor will pull the relevant documentation and code from GitMCP to correctly implement the memory feature.

Example 3: Using Claude Desktop with the dynamic endpoint

You don't have to pick specific repositories. The generic gitmcp.io/docs endpoint allows AI to pick the GitHub project on the fly!

Prompt to any AI assistant:

"I want to learn about the OpenAI Whisper speech recognition model. Explain how it works."

Claude will pull the data from GitMCP and answer the question.

🛠️ Tools

GitMCP provides AI assistants with several valuable tools to help them access, understand, and query GitHub repositories.

fetch_<repo-name>_documentation

This tool gets the primary documentation from a GitHub repository. It works by retrieving relevant documentation (e.g., llms.txt). This gives the AI a good overview of what the project is about

When it's useful: For general questions about a project's purpose, features, or how to get started

search_<repo-name>_documentation

This tool lets the AI search through a repository's documentation by providing a specific search query. Instead of loading all the documentation (which could be very large), it uses intelligent search to find just the relevant parts.

When it's useful: For specific questions about particular features, functions, or concepts within a project

fetch_url_content

This tool helps the AI get information from links mentioned in the documentation. It retrieves the content from those links and converts it to a format the AI can easily read.

When it's useful: When documentation references external information that would help answer your question

search_<repo-name>_code

This tool searches through the actual code in the repository using GitHub's code search. It helps AI find specific code examples or implementation details.

When it's useful: When you want examples of how something is implemented or need technical details not covered in documentation

Note: When using the dynamic endpoint (gitmcp.io/docs), these tools are named slightly differently (fetch_generic_documentation, search_generic_code, and search_generic_documentation) and need additional information about which repository to access.

📊 Badge

GitMCP has a badge for your repository's README. It allows users to quickly access your documentation through their IDE or browser (using the embedded chat). It also showcases how many times your documentation has been accessed through GitMCP.

Example (idosal/git-mcp): GitMCP

Adding the Badge to Your Repository

Add the following to your README.md:

[![GitMCP](https://img.shields.io/endpoint?url=https://gitmcp.io/badge/OWNER/REPO)](https://gitmcp.io/OWNER/REPO)

Replace OWNER with your GitHub username or organization, and REPO with your repository name.

How We Count Views

Increment for each tool call on the specific repository.

Customizing the Badge

You can customize the badge's appearance with parameters:

ParameterDescriptionDefaultExample
colorColor for the badge valueaquamarine?color=green
labelBadge labelGitMCPDocumentation

Please reach out if you need help!

❓ FAQ

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. It prioritizes the llms.txt file and falls back to README.md or other pages if the former is unavailable. Future updates aim to support additional documentation methods and even generate content dynamically.

Does GitMCP cost money?

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

🔒 Privacy

GitMCP is deeply committed to its users' privacy. The service doesn't have access to or store any personally identifiable information as it doesn't require authentication. In addition, it doesn't store any queries sent by the agents. Moreover, as GitMCP is an open-source project, it can be deployed independently in your environment.

GitMCP only accesses content that is already publicly available and only when queried by a user. GitMCP does not automatically scrape repositories. Before accessing any GitHub Pages site, the code checks for robots.txt rules and follows the directives set by site owners, allowing them to opt out. Please note that GitMCP doesn't permanently store data regarding the GitHub projects or their content.

👥 Contributing

We welcome contributions, feedback, and ideas! Please review our contribution guidelines.

Local Development Setup

  1. Clone the repository

    git clone https://github.com/idosal/git-mcp.git
    cd git-mcp
    
  2. Install dependencies

    pnpm install
    
  3. Run locally for development

    npm run dev
    # or
    pnpm dev
    

Using MCP Inspector for Testing

  1. Install the MCP Inspector tool:

    npx @modelcontextprotocol/inspector
    
  2. In the inspector interface:

    • Set Transport Type to SSE
    • Enter your GitMCP URL (e.g., http://localhost:5173/docs)
    • Click "Connect"

📄 License

This project is licensed under the Apache License 2.0.

Disclaimer

GitMCP is provided "as is" without warranty of any kind. While we strive to ensure the reliability and security of our service, we are not responsible for any damages or issues that may arise from its use. GitHub projects accessed through GitMCP are subject to their respective owners' terms and conditions. GitMCP is not affiliated with GitHub or any of the mentioned AI tools.

Star History

Star History Chart