经 AI Skill Hub 精选评估,GitHub到MCP工具 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
GitHub到MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
GitHub到MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/nirholas/github-to-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"github-mcp--": {
"command": "npx",
"args": ["-y", "github-to-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 GitHub到MCP工具 执行以下任务... Claude: [自动调用 GitHub到MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"github_mcp__": {
"command": "npx",
"args": ["-y", "github-to-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="apps/web/public/logo.svg" alt="GitHub to MCP" width="120" height="120" /> </p>
<p align="center"> <strong>Convert any GitHub repository into an MCP server in seconds</strong> </p>
<p align="center"> Give Claude, ChatGPT, Cursor, Windsurf, Cline, and any AI assistant instant access to any codebase. </p>
<p align="center"> <a href="https://opensource.org/licenses/Apache-2.0"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License" /></a> <a href="https://www.npmjs.com/package/@nirholas/github-to-mcp"><img src="https://img.shields.io/npm/v/@nirholas/github-to-mcp.svg" alt="npm version" /></a> <a href="https://github.com/nirholas/github-to-mcp/stargazers"><img src="https://img.shields.io/github/stars/nirholas/github-to-mcp.svg?style=social" alt="GitHub Stars" /></a> </p>
<p align="center"> <a href="https://github-to-mcp.vercel.app">🌐 Web App</a> • <a href="#-quick-start">🚀 Quick Start</a> • <a href="#-features">✨ Features</a> • <a href="https://docs-github-to-mcp.vercel.app">📖 Docs</a> </p>
---
GitHub to MCP bridges the gap between code repositories and AI assistants. Instead of manually describing APIs or copying code snippets into chat windows, this tool generates a standardized interface that allows AI systems to programmatically explore, read, and interact with any GitHub repository.
The generated MCP servers provide tools that AI assistants can invoke to read files, search code, list directory structures, and call API endpoints discovered within the repository. This enables AI assistants to have deep, structured access to codebases without requiring manual context management.
┌─────────────────────────────────────────────────────────────┐
│ GitHub Repository │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ 1. Fetch & Classify → Detect repo type (API/CLI/Lib) │
│ 2. Extract Tools → OpenAPI, GraphQL, Code, README │
│ 3. Generate Server → TypeScript or Python MCP server │
│ 4. Bundle Output → Complete package with dependencies │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ Ready-to-use MCP Server + Config │
└─────────────────────────────────────────────────────────────┘
---
The system follows a pipeline architecture:
Input (GitHub URL)
│
▼
┌──────────────────┐
│ GitHub Client │ Fetches repository metadata, files, and README
└──────────────────┘
│
▼
┌──────────────────┐
│ Classifier │ Determines repository type and structure
└──────────────────┘
│
▼
┌──────────────────┐
│ Extractors │ Multiple extractors run in parallel:
│ ├─ OpenAPI │ • Parse API specifications
│ ├─ GraphQL │ • Parse GraphQL schemas
│ ├─ README │ • Extract examples from documentation
│ ├─ Code │ • Analyze source code
│ └─ MCP │ • Detect existing MCP tools
└──────────────────┘
│
▼
┌──────────────────┐
│ Deduplicator │ Removes duplicate tools, merges similar ones
└──────────────────┘
│
▼
┌──────────────────┐
│ Validator │ Validates tool schemas, adds confidence scores
└──────────────────┘
│
▼
┌──────────────────┐
│ Generator │ Produces output code in target language
└──────────────────┘
│
▼
Output (MCP Server Code + Configuration)
Each extractor produces a list of ExtractedTool objects with a standardized schema. The deduplicator and validator ensure consistency before the generator produces the final output.
---
Prerequisites
Install dependenciespnpm install 📥 InstallationLocal Setup```bash Build all packagespnpm build Building```bash Build all packagespnpm build Build specific packagepnpm --filter @nirholas/github-to-mcp build pnpm --filter @github-to-mcp/openapi-parser build pnpm --filter web build ``` 🚀 Quick Start📖 UsageBasic usagenode packages/core/dist/cli.mjs https://github.com/owner/repo Use Cases & Applications Keywordstrading bot, DeFi agent, yield optimizer, data oracle, price feed, analytics agent, research agent, coding agent, development agent, automation agent, task agent, workflow agent, portfolio management, asset management, supply chain, service agent, API service, chatbot, AI assistant, virtual assistant, personal agent, enterprise agent, B2B agent, agent-as-a-service, AaaS, SaaS agent, AI SaaS, delegated agent, proxy agent, helper agent, worker agent, coordinator agent, orchestrator agent, validator agent, auditor agent, insurance agent, scoring agent, ranking agent ⚙️ Configuration🔐 Environment Variables
GitHub TokenWithout a token, GitHub API requests are limited to 60 per hour. With a token, the limit increases to 5,000 per hour. For private repositories, a token with appropriate access is required. Create a token at: https://github.com/settings/tokens Required scopes: - 🎛️ Generator OptionsWhen using the programmatic API, you can configure:
--- Configuration FilesEach generated server includes:
--- 💻 CLI (One Command)
Using the Web InterfaceThe web application is deployed at github-to-mcp.vercel.app. Use the browser-based interface without any local installation. --- 🌐 Web InterfaceThe web interface provides the simplest way to convert repositories:
The web interface also provides an interactive playground where you can test generated tools before downloading. 💻 Command Line InterfaceAfter building the project locally, you can use the CLI: ```bash 📦 Programmatic APIImport the generator in your own TypeScript or JavaScript code:
<details> <summary><strong>📋 Generator Options Interface</strong></summary>
</details> --- API Specifications
Endpoints & Integration Keywordsendpoint, agent endpoint, service endpoint, API endpoint, MCP endpoint, A2A endpoint, web endpoint, HTTPS endpoint, HTTP endpoint, DID, decentralized identifier, ENS, Ethereum Name Service, ENS name, agent.eth, vitalik.eth, email endpoint, OASF, Open Agent Specification Format, endpoint verification, domain verification, endpoint ownership, .well-known, well-known, agent-registration.json, endpoint domain, endpoint URL, endpoint URI, base64 data URI, on-chain metadata, off-chain metadata, metadata storage, JSON metadata, agent JSON, registration JSON SDK & Developer Tools KeywordsSDK, Agent0 SDK, Agent0, ChaosChain SDK, ChaosChain, Lucid Agents, Daydreams AI, create-8004-agent, npm, TypeScript SDK, Python SDK, JavaScript, Solidity, smart contract, ABI, contract ABI, deployed contracts, contract addresses, Hardhat, development tools, developer tools, dev tools, API, REST API, GraphQL, subgraph, The Graph, indexer, blockchain explorer, Etherscan, contract verification, open source, MIT license, CC0, public domain, GitHub, repository, code repository, documentation, docs, best practices, reference implementation 💻 VS Code with ContinueIf using the Continue extension for VS Code:
Competitor & Alternative Keywordsagent framework, agent platform, AI platform, centralized agents, closed agents, proprietary agents, gatekeeper, intermediary, platform lock-in, vendor lock-in, data silos, walled garden, open alternative, decentralized alternative, permissionless alternative, trustless alternative 🔧 Troubleshooting<details> <summary><strong>❌ "Rate limit exceeded" errors</strong></summary> Provide a GitHub token:
</details> <details> <summary><strong>❌ "Repository not found" errors</strong></summary>
</details> <details> <summary><strong>❌ "No tools extracted" results</strong></summary>
</details> <details> <summary><strong>❌ Generated server fails to start</strong></summary>
</details> <details> <summary><strong>❌ Claude Desktop does not show the server</strong></summary>
</details> ---
🇨🇳 中文文档镜像
AI 翻译
2026-07-09
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介
GitHub to MCP 是一个强大的转换工具,能够将任何 GitHub 仓库在数秒内转换为标准的 MCP server。它旨在打破代码库与 AI 助手之间的隔阂,让 Claude、ChatGPT、Cursor、Windsurf 和 Cline 等 AI 工具能够直接、程序化地访问、读取并交互任何 GitHub 代码库,无需再手动复制粘贴代码片段或描述 API。 ⚡ 功能介绍
该工具支持通过多种方式提取仓库信息,包括 OpenAPI、README、源��码、GraphQL、gRPC 以及 MCP 协议。它能自动生成标准化的工具集,使 AI 助手具备读取文件、搜索代码和列出目录的能力,实现对代码库的深度理解与智能交互。 📋 环境依赖
在使用本项目之前,请确保您的开发环境已安装以下依赖:Node.js 版本需在 22.x 或更高;包管理工具 pnpm 版本需在 10.x 或更高;此外,系统中还需安装 Git 2.x 或更高版本以确保正常运行。 🛠 安装步骤(Docker/pip/源码)
您可以选择通过源码进行本地安装。首先,通过 `pnpm install` 安装所有必要的依赖项,随后运行 `pnpm build` 构建所有相关的 packages,即可完成本地开发环境的搭建。 🚀 使用教程
项目提供了极简的使用方式。对于快速测试,您可以使用 CLI 工具直接运行命令:`node packages/core/dist/cli.mjs <仓库URL>`。此外,您也可以通过 Web 界面进行操作,只需输入 GitHub 仓库地址并点击 Generate 即可完成转换。 ⚙️ 配置说明(含 MCP / env)
可以通过环境变量进行配置。建议设置 `GITHUB_TOKEN` 以避免 GitHub API 每小时 60 次的频率限制。对于企业级用户,可配置 `GITHUB_API_URL`。若通过程序化 API 调用,还可以在 `GithubToMcpGenerator` 中自定义提取源(如 'openapi', 'code' 等)及输出语言(如 'typescript', 'python', 'go')。 🔌 API 说明
开发者可以通过 npx 直接运行 CLI 命令,例如 `npx @nirholas/github-to-mcp <仓库URL>`。同时,项目提供了一个 Web 界面(github-to-mcp.vercel.app),用户无需本地安装,直接在浏览器中输入仓库 URL 并配置提取选项即可生成工具。 ❓ FAQ 摘要
针对常见问题,如果遇到 "Rate limit exceeded" 错误,请通过 `export GITHUB_TOKEN=your_token` 配置 GitHub 令牌以提升 API 调用频率。如果遇到 "Repository not found" 错误,请检查 URL 是否正确,并确保对于私有仓库已配置相应的访问权限。
🎯 aiskill88 AI 点评
A 级
2026-07-06
该工具提供了一种自动化GitHub仓库到MCP服务器的转换方式,提高了开发效率和工具利用率,但需要注意的是,工具的准确性和稳定性需要进一步优化。 📚 实用指南(长尾问题)
适合谁
最佳实践
常见错误
部署方案
⚡ 核心功能
👥 适合谁
⭐ 最佳实践
⚠️ 常见错误
👥 适合人群🎯 使用场景
⚖️ 优点与不足✅ 优点
⚠️ 不足
⚠️ 使用须知
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。 建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。 📄 License 说明
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。 📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合
❓ 常见问题 FAQ请参考工具文档中的配置指南。
💡 AI Skill Hub 点评
AI Skill Hub 点评:GitHub到MCP工具 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。 🌐 原始信息
🔗 原始来源
🐙 GitHub 仓库 https://github.com/nirholas/github-to-mcp
🌐 官方网站 https://github-to-mcp.vercel.app
收录时间:2026-07-06 · 更新时间:2026-07-06 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。 🤖 交给 Agent 安装 · GitHub到MCP工具选择 Agent 类型,复制安装指令后粘贴到对应客户端 claude skill install https://github.com/nirholas/github-to-mcp
|