github-to-mcp
by nirholas·★ 28·Score 45
Converts GitHub repositories into MCP servers by extracting tools from OpenAPI, GraphQL & REST APIs.
Overview
GitHub to MCP bridges the gap between code repositories and AI assistants by automatically generating MCP servers. It analyzes GitHub repositories, detects APIs and code patterns, then creates TypeScript or Python MCP servers that expose tools for AI assistants to interact with the codebase. The tool supports multiple input formats including OpenAPI/Swagger specifications, GraphQL schemas, and various programming languages.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this tool when you need to quickly create MCP servers from existing code repositories, especially when working with OpenAPI, GraphQL, or REST APIs, and want to minimize manual tool definition.
When NOT to choose this
Avoid this if you need highly customized tools with complex business logic beyond what can be inferred from repository metadata and API specifications.
Tools this server exposes
4 tools extracted from the READMEget_readmeRetrieve the repository's README content
list_fileslist_files(path?: string)List files and directories at a given path
read_fileread_file(path: string)Read the contents of a specific file
search_codesearch_code(query: string, path?: string)Search for patterns across the repository
Comparable tools
Installation
Web UI (Easiest)
Visit [github-to-mcp.vercel.app](https://github-to-mcp.vercel.app) — Paste any GitHub URL, click Generate, download your MCP server.
CLI (One Command)
npx @nirholas/github-to-mcp https://github.com/stripe/stripe-nodeClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"github-repo": {
"command": "npx",
"args": ["@nirholas/github-to-mcp", "https://github.com/your/repo"],
"env": {}
}
}
}FAQ
- What types of repositories can be converted to MCP servers?
- The tool supports API repositories (OpenAPI/Swagger, GraphQL), CLI tools, libraries, and code repositories in TypeScript, Python, Go, Java, Kotlin, Rust, Ruby, and C#.
- Can it handle private GitHub repositories?
- Yes, you can provide a GitHub token as an environment variable to access private repositories and increase rate limits.
Compare github-to-mcp with
Last updated · Auto-generated from public README + GitHub signals.