IG

idosal/git-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

8495 stars 760 forks 品質 86 トレンド 38Apache-2.0

コードの幻覚を終わらせましょう!GitMCPは、あらゆるGitHubプロジェクト向けの無料オープンソースリモートMCPサーバーです

概要

GitMCPとは何か • 機能 • 入門方法 • 仕組み • バッジ • 例 • FAQ • プライバシー • 貢献 • ライセンス GitMCPは、GitHubプロジェクト(リポジトリやGitHubページ)をドキュメントハブに変換する、無料のオープンソースリモートモデルコンテキストプロトコル(MCP)サーバーです。CursorのようなAIツールが、LLMが一度も遭遇したことがなくても最新のドキュメントやコードにアクセスでき、コードの幻覚をシームレスに排除します。 * 主に選ばれたライブラリを扱う場合にこれらを活用してください。これにより、AIアシスタントは常に正しいプロジェクトをターゲットにし、意図しないリポジトリへのアクセスを防ぎ、セキュリティと関連性を高めます。* 頻繁に異なるリポジトリを切り替える必要がある場合に最大限の柔軟性を持たせるためにこの方法を活用してください。AIアシスタントは各リクエストごとにアクセスすべきリポジトリをプロンプト(または状況に応じて決定)してくれます。ただし、これは毎回ターゲットリポジトリを正しく特定することが前提であることに注意してください。

概要(AI 翻訳)

GitMCPとは何か • 特徴 • はじめ • 仕組み • バッジ • 例 • FAQ• プライバシー • 貢献 • 免許

🤔 GitMCPとは何ですか?

バイブ・ファルルーシングはやめて、バイブコーディングを始めろ!

GitMCPは、無料のオープンソースリモートモデルコンテキストプロトコル(MCP)サーバーで、あらゆるGitHubプロジェクト(リポジトリやGitHubページ)をドキュメントハブに変換します。CursorのようなAIツールが、LLMが一度も遭遇したことがなくても最新のドキュメントやコードにアクセスでき、コードの幻覚をシームレスに排除します。

GitMCPは2つのフレーバーをサポートしています。

  • 特定のリポジトリ([gitmcp.io/{owner}/{repo} または {owner}.gitmcp.io/{repo}): 主に選ばれたライブラリを扱う場合はこれらを活用してください。これにより、AIアシスタントは常に正しいプロジェクトをターゲットにし、意図しないリポジトリへのアクセスを防ぎ、セキュリティと関連性を高めます。
  • 汎用サーバー(gitmcp.io/docs): 頻繁に異なるリポジトリを切り替える必要がある場合、最大限の柔軟性のためにこの機能を活用してください。AIアシスタントは、各リクエストごとにどのリポジトリにアクセスするかをプロンプト(またはコンテキストに応じて決定)してくれます。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

GitMCP

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

🤔 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

GitHub で README 全文を見る

インストール

npx mcp-remote https://gitmcp.io/{owner}/{repo}
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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