GitMCP MCP server
AI 클라이언트가 GitHub 저장소의 최신 문서와 코드를 가져오고 검색할 수 있게 하여 코드 환각 현상을 줄여줍니다.
다른 이름 idosal/git-mcp
- 스타
- 8,515
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 5월 8일
- 라이선스
- Apache-2.0
GitMCP MCP란?
GitMCP은(는) MCP server입니다. AI 클라이언트가 GitHub 저장소의 최신 문서와 코드를 가져오고 검색할 수 있게 하여 코드 환각 현상을 줄여줍니다.
프로젝트 README에서 생성된 요약
GitMCP MCP server 정보
git-mcp는 AI 클라이언트 내부에서 모든 GitHub 프로젝트의 정확한 문서와 코드를 가져오는 기능을 수행합니다. 이 서비스는 원격 MCP server로 작동하여 Cursor, Claude Desktop, Windsurf, VSCode, Cline, Highlight AI, Augment Code 또는 Msty AI를 저장소의 최신 문서 및 소스 코드와 연결합니다. 이를 통해 모델이 추측하는 대신 근거 있는 정보로 답변할 수 있습니다. 니치한 라이브러리, 신규 라이브러리 또는 변경이 빠른 라이브러리를 사용하는 개발자가 API 환각과 잘못된 예시를 줄이기 위해 사용합니다.
특정 저장소에 대한 서버 URL을 선택하거나 범용 엔드포인트를 사용하여 어시스턴트가 요청에 따라 저장소를 선택하도록 할 수 있습니다. 설정 방법은 클라이언트의 MCP 설정에 해당 URL을 추가하는 것뿐이며, 다운로드, 회원가입 또는 API 키가 필요하지 않습니다. fetch_<repo-name>_documentation, search_<repo-name>_documentation, fetch_url_content, search_<repo-name>_code와 같은 도구는 주요 문서를 가져오고, 모든 내용을 로드하지 않고도 관련 섹션을 검색하며, 참조된 링크에서 콘텐츠를 가져오고, GitHub 코드 검색을 통해 코드를 쿼리합니다.
범용 엔드포인트는 매번 저장소를 지정해야 하는 fetch_generic_documentation, search_generic_code, search_generic_documentation을 제공합니다. 문서 우선순위는 llms.txt, 프로젝트 문서의 AI 최적화 버전, README.md 또는 루트 순서로 진행됩니다. 브라우저 내 채팅과 README 배지도 제공되며, 이 서비스는 무료이며 오픈 소스이고, 개인 데이터나 쿼리를 수집하지 않으며, 셀프 호스팅이 가능합니다.
활용 사례
- 1Playwright MCP 사용법 조회AI 어시스턴트에게 Playwright MCP 패키지 사용법을 물어보면, 답변하기 전에 해당 저장소에서 관련 문서를 가져옵니다.
- 2LangGraph 에이전트에 메모리 추가Cursor가 LangGraph 문서와 코드를 가져오게 하여 에이전트 메모리 기능을 정확하게 구현하도록 합니다.
- 3OpenAI Whisper 학습범용 엔드포인트를 사용하여 어시스턴트가 Whisper 저장소를 선택하고 음성 인식 모델에 대해 설명하도록 합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능idosal/git-mcp is public and reachablegithub.com/idosal/git-mcp ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-05-08github.com/idosal/git-mcp ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기GitMCP
🤔 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
- In Claude Desktop, go to Settings > Developer > Edit Config
- 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
- Open Highlight AI and click the plugins icon (@ symbol) in the sidebar
- Click Installed Plugins at the top of the sidebar
- Select Custom Plugin
- 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
- Open Augment Code settings
- Navigate to the MCP section
- 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
- Open Msty Studio
- Go to Tools > Import Tools from JSON Clipboard
- 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 endpointhttps://gitmcp.io/docsto 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:
- 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. - Prompt the AI assistant on documentation/code-related questions.
- Your AI sends requests to GitMCP to use its tools (with your approval).
- GitMCP executes the AI's request and returns the requested data.
- 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):
- llms.txt
- AI-optimized version of the project's documentation
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, andsearch_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.
Adding the Badge to Your Repository
Add the following to your README.md:
[](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:
| Parameter | Description | Default | Example |
|---|---|---|---|
color |
Color for the badge value | aquamarine |
?color=green |
label |
Badge label | GitMCP |
Documentation |
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
-
Clone the repository
git clone https://github.com/idosal/git-mcp.git cd git-mcp -
Install dependencies
pnpm install -
Run locally for development
npm run dev # or pnpm dev
Using MCP Inspector for Testing
-
Install the MCP Inspector tool:
npx @modelcontextprotocol/inspector -
In the inspector interface:
- Set Transport Type to
SSE - Enter your GitMCP URL (e.g.,
http://localhost:5173/docs) - Click "Connect"
- Set Transport Type to
📄 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
GitMCP MCP 질문
GitMCP를 사용하려면 무언가를 설치해야 하나요?
아니요. GitMCP는 클라우드에서 실행되므로 IDE에 URL을 MCP server로 추가하기만 하면 됩니다. 다운로드, 설치 또는 회원가입이 필요하지 않습니다.
GitMCP는 어떤 URL 형식을 지원하나요?
저장소의 경우 gitmcp.io/{owner}/{repo}, GitHub Pages 사이트의 경우 {owner}.gitmcp.io/{repo}, 모든 저장소를 지원하는 범용 서버의 경우 gitmcp.io/docs를 사용할 수 있습니다.
GitMCP는 AI 어시스턴트에게 어떤 도구를 제공하나요?
저장소 문서 가져오기, 문서 검색, 연결된 URL의 콘텐츠 가져오기, 저장소 코드 검색 도구를 제공합니다.
GitMCP가 제 데이터를 수집하나요?
GitMCP는 오픈 소스이며 무료로 제공됩니다. 개인 정보를 수집하거나 쿼리를 저장하지 않습니다. 직접 셀프 호스팅할 수도 있습니다.