GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Convert any GitHub repo to MCP server - automatic tool generation API wrap
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
作者没有在注册中心列出安装信息。请查看下方作者的 README。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 nirholas 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.0)于10个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
GitHub to MCP
Convert any GitHub repository into an MCP server in seconds
Give Claude, ChatGPT, Cursor, Windsurf, Cline, and any AI assistant instant access to any codebase.
🌐 Web App • 🚀 Quick Start • ✨ Features • 📖 Docs
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 Model Context Protocol (MCP) is an open standard developed by Anthropic that defines how AI assistants communicate with external tools and data sources. MCP servers expose "tools" that AI models can invoke, along with "resources" that provide context and "prompts" that guide interactions.
When you connect an MCP server to an AI assistant like Claude Desktop, the assistant gains the ability to call the tools defined by that server. For example, a GitHub MCP server might expose tools like read_file, search_code, or list_pull_requests, which the AI can invoke to gather information needed to answer questions or complete tasks.
This project generates MCP servers from GitHub repositories, automatically creating tools based on the repository's contents, APIs, and documentation.
Visit [github-to-mcp.modelcontextprotocol.name](https://github-to-mcp.modelcontextprotocol.name) — Paste any GitHub URL, click Generate, download your MCP server.
npx @nirholas/github-to-mcp https://github.com/stripe/stripe-node
import { generateFromGithub } from '@nirholas/github-to-mcp';
const result = await generateFromGithub('https://github.com/stripe/stripe-node'); console.log(Generated ${result.tools.length} tools); await result.save('./my-mcp-server');
Input repositories:
Output MCP servers:
@mcp.tool are preservedClone the repository and install dependencies:
git clone https://github.com/nirholas/github-to-mcp.git
cd github-to-mcp pnpm install pnpm build
The web application is deployed at [github-to-mcp.modelcontextprotocol.name](https://github-to-mcp.modelcontextprotocol.name). Use the browser-based interface without any local installation.
The web interface provides the simplest way to convert repositories:
https://github.com/owner/repo)The web interface also provides an interactive playground where you can test generated tools before downloading.
After building the project locally, you can use the CLI:
# Basic usage
node packages/core/dist/cli.mjs https://github.com/owner/repo
node packages/core/dist/cli.mjs https://github.com/owner/repo --output ./my-mcp-server
node packages/core/dist/cli.mjs https://github.com/owner/repo --language python
node packages/core/dist/cli.mjs https://github.com/owner/repo --sources openapi,readme
GITHUB_TOKEN=ghp_xxx node packages/core/dist/cli.mjs https://github.com/owner/repo
Import the generator in your own TypeScript or JavaScript code:
import { GithubToMcpGenerator } from '@nirholas/github-to-mcp';
const generator = new GithubToMcpGenerator({ githubToken: process.env.GITHUB_TOKEN, sources: ['openapi', 'readme', 'code'], outputLanguage: 'typescript' });
const result = await generator.generate('https://github.com/owner/repo');
console.log(Repository: ${result.name}); console.log(Classification: ${result.classification.type}); console.log(Generated ${result.tools.length} tools);
// Access the generated code console.log(result.code);
// Save to disk await result.save('./output-directory');
📋 Generator Options Interface
interface GithubToMcpOptions {
// GitHub personal access token for API authentication githubToken?: string;
// Which sources to extract tools from // Default: ['openapi', 'readme', 'code', 'graphql', 'mcp'] sources?: Array<'openapi' | 'readme' | 'code' | 'graphql' | 'grpc' | 'mcp'>;
// Output language for generated server // Default: 'typescript' outputLanguage?: 'typescript' | 'python' | 'go';
// Include universal tools (read_file, list_files, etc.) // Default: true includeUniversalTools?: boolean;
// Maximum number of tools to generate // Default: 100 maxTools?: number;
// Specific branch to analyze // Default: repository's default branch branch?: string; }
The conversion process follows these stages:
The generator first analyzes the repository to determine its type and structure:
| Classification | Description |
|---|---|
mcp-server | An existing MCP server implementation |
api-sdk | A client library for an API |
cli-tool | A command-line application |
library | A general-purpose code library |
documentation | Primarily documentation content |
data | Data files or datasets |
unknown | Unclassified repository |
Classification influences which extraction strategies are prioritized and how tools are named.
Tools are extracted from multiple sources within the repository:
📄 OpenAPI/Swagger Extraction
When an OpenAPI specification is found:
🔷 GraphQL Extraction
When GraphQL schemas are found:
📖 README Extraction
The README is analyzed for:
Extracted examples become tools with inferred parameter schemas.
💻 Source Code Extraction
For supported languages, the source code is analyzed:
@mcp.tool, @server.tool, or similar@GetMapping, @PostMapping, etc.只显示了开头部分;其余内容请在仓库中阅读