原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

GitHub to MCP Converter

作者:nirholas版本 1.0.0i★ –i–
注册名称io.github.nirholas/github-to-mcp

安装

概览

作者提供的说明(英文原文)

Convert any GitHub repo to MCP server - automatic tool generation API wrap

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: –
  • 传输方式:
  • 分类: 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

作者没有在注册中心列出安装信息。请查看下方作者的 README。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 nirholas 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 1387 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1387 个服务器的 3% 更新
  • 基础检查结果等于或优于此分类中其他 1387 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

GitHub to MCP Converter 安全吗?

它在 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

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT3天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT15天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 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.tool are 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:

  1. Navigate to the web application
  2. Enter a GitHub repository URL (e.g., https://github.com/owner/repo)
  3. Optionally configure extraction options
  4. Click "Generate" to analyze the repository
  5. Review the generated tools and code
  6. 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:

  1. Fetch repository metadata from the GitHub API
  2. Download and parse the README file
  3. Examine package.json, setup.py, go.mod, or other manifest files
  4. Scan for API specification files (openapi.json, schema.graphql, etc.)
  5. Classify the repository as one of:
ClassificationDescription
mcp-serverAn existing MCP server implementation
api-sdkA client library for an API
cli-toolA command-line application
libraryA general-purpose code library
documentationPrimarily documentation content
dataData files or datasets
unknownUnclassified 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:

  1. Parse the specification (JSON or YAML, v2 or v3)
  2. Extract each endpoint as a potential tool
  3. Convert path parameters, query parameters, and request bodies to tool input schemas
  4. Generate descriptions from operation summaries and descriptions
  5. Map HTTP methods to appropriate tool semantics

🔷 GraphQL Extraction

When GraphQL schemas are found:

  1. Parse .graphql or .gql schema files
  2. Extract Query type fields as read-only tools
  3. Extract Mutation type fields as write tools
  4. Convert GraphQL input types to JSON Schema for tool inputs
  5. Handle nested types and custom scalars

📖 README Extraction

The README is analyzed for:

  1. Code blocks showing CLI usage patterns
  2. API endpoint examples with curl or fetch
  3. Function call examples with parameters
  4. Installation and usage instructions

Extracted examples become tools with inferred parameter schemas.

💻 Source Code Extraction

For supported languages, the source code is analyzed:

  1. Python: Functions decorated with @mcp.tool, @server.tool, or similar
  2. TypeScript: Exported functions with JSDoc annotations
  3. Go: HTTP handlers from Gin, Echo, Chi, Fiber, or Gorilla Mux
  4. Java/Kotlin: Methods annotated with @GetMapping, @PostMapping, etc.
  5. Rust: Route handl

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx