GitHub to MCP Converter
What it does
Convert any GitHub repo to MCP server - automatic tool generation API wrap
- Connects –
- Account or key No key needed
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
Claude 暂时无法连接 GitHub to MCP Converter
开发者尚未在 MCP 注册表中填写安装方式
ChatGPT 暂时无法连接 GitHub to MCP Converter
开发者尚未在 MCP 注册表中填写安装方式
你可以改用这些方式
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
Claude Code 暂时无法连接 GitHub to MCP Converter
开发者尚未在 MCP 注册表中填写安装方式
Cursor 暂时无法连接 GitHub to MCP Converter
开发者尚未在 MCP 注册表中填写安装方式
VS Code 暂时无法连接 GitHub to MCP Converter
开发者尚未在 MCP 注册表中填写安装方式
一览
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 nirholas 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于昨天
- ! 注意
有许可证
GitHub 无法识别许可证类型;请打开文件自行查看
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5785 个服务器的 95%
- 发布到注册中心的时间比此分类中其他 5785 个服务器的 2% 更新
- 基础检查结果等于或优于此分类中其他 5785 个服务器的 36%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
GitHub to MCP Converter 安全吗?
它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于昨天,最新版本(1.0.0)于10个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。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
📋 Table of Contents
- Introduction
- What is MCP
- Quick Start
- Features
- Installation
- Usage
- How It Works
- Generated Tools
- Configuration
- Integrating with AI Assistants
- Interactive Playground
- Project Structure
- Development
- Architecture Overview
- Supported Input Formats
- Output Formats
- Limitations
- Troubleshooting
- Contributing
- License
📖 Introduction
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 │ └─────────────────────────────────────────────────────────────┘
🔌 What is MCP
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.
🚀 Quick Start
🌐 Web UI (Easiest)
Visit [github-to-mcp.modelcontextprotocol.name](https://github-to-mcp.modelcontextprotocol.name) — Paste any GitHub URL, click Generate, download your MCP server.
💻 CLI (One Command)
npx @nirholas/github-to-mcp https://github.com/stripe/stripe-node
📦 Programmatic (For Automation)
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');
✨ Features
🔬 Repository Analysis
- Automatic repository type classification (API, library, CLI tool, MCP server, documentation)
- Detection and parsing of OpenAPI/Swagger specifications
- GraphQL schema extraction and query/mutation tool generation
- gRPC/Protobuf service definition parsing
- AsyncAPI specification support for event-driven APIs
- Source code analysis for function extraction
🌍 Multi-Language Support
Input repositories:
- TypeScript and JavaScript
- Python
- Go
- Java and Kotlin
- Rust
- Ruby
- C# and F#
Output MCP servers:
- TypeScript (using the official MCP SDK)
- Python (using the MCP Python SDK)
- Go (using community MCP libraries)
🔧 Tool Extraction
- OpenAPI endpoints become callable tools with typed parameters
- GraphQL queries and mutations become tools with input validation
- Python functions decorated with
@mcp.toolare preserved - CLI commands documented in READMEs become executable tools
- HTTP route handlers from popular frameworks are detected
⚡ Code Generation
- Complete, runnable MCP server code with all dependencies
- Configuration files for Claude Desktop, Cursor, and other clients
- Docker deployment templates
- TypeScript type definitions for all generated tools
📥 Installation
From Source
Clone the repository and install dependencies:
git clone https://github.com/nirholas/github-to-mcp.git
cd github-to-mcp pnpm install pnpm build
Using the Web Interface
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.
📖 Usage
🌐 Web Interface
The web interface provides the simplest way to convert repositories:
- Navigate to the web application
- Enter a GitHub repository URL (e.g.,
https://github.com/owner/repo) - Optionally configure extraction options
- Click "Generate" to analyze the repository
- Review the generated tools and code
- Download the MCP server package or copy the configuration
The web interface also provides an interactive playground where you can test generated tools before downloading.
💻 Command Line Interface
After building the project locally, you can use the CLI:
# Basic usage
node packages/core/dist/cli.mjs https://github.com/owner/repo
Specify output directory
node packages/core/dist/cli.mjs https://github.com/owner/repo --output ./my-mcp-server
Generate Python instead of TypeScript
node packages/core/dist/cli.mjs https://github.com/owner/repo --language python
Include only specific extraction sources
node packages/core/dist/cli.mjs https://github.com/owner/repo --sources openapi,readme
Use a GitHub token for private repos or higher rate limits
GITHUB_TOKEN=ghp_xxx node packages/core/dist/cli.mjs https://github.com/owner/repo
📦 Programmatic API
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; }
⚙️ How It Works
The conversion process follows these stages:
🏷️ Repository Classification
The generator first analyzes the repository to determine its type and structure:
- Fetch repository metadata from the GitHub API
- Download and parse the README file
- Examine package.json, setup.py, go.mod, or other manifest files
- Scan for API specification files (openapi.json, schema.graphql, etc.)
- Classify the repository as one of:
| 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.
🔍 Tool Extraction
Tools are extracted from multiple sources within the repository:
📄 OpenAPI/Swagger Extraction
When an OpenAPI specification is found:
- Parse the specification (JSON or YAML, v2 or v3)
- Extract each endpoint as a potential tool
- Convert path parameters, query parameters, and request bodies to tool input schemas
- Generate descriptions from operation summaries and descriptions
- Map HTTP methods to appropriate tool semantics
🔷 GraphQL Extraction
When GraphQL schemas are found:
- Parse .graphql or .gql schema files
- Extract Query type fields as read-only tools
- Extract Mutation type fields as write tools
- Convert GraphQL input types to JSON Schema for tool inputs
- Handle nested types and custom scalars
📖 README Extraction
The README is analyzed for:
- Code blocks showing CLI usage patterns
- API endpoint examples with curl or fetch
- Function call examples with parameters
- Installation and usage instructions
Extracted examples become tools with inferred parameter schemas.
💻 Source Code Extraction
For supported languages, the source code is analyzed:
- Python: Functions decorated with
@mcp.tool,@server.tool, or similar - TypeScript: Exported functions with JSDoc annotations
- Go: HTTP handlers from Gin, Echo, Chi, Fiber, or Gorilla Mux
- Java/Kotlin: Methods annotated with
@GetMapping,@PostMapping, etc. - Rust: Route handl