GitHub to MCP Converter — Claude Code MCP server: setup guide
Turns any GitHub repository into an MCP server for Claude Code, Cursor, and other tools. It extracts API routes, schemas, and CLI commands into callable agent tools.
Open on GitHubWhat GitHub to MCP Converter does
This utility inspects GitHub codebases to construct an MCP server. It scans repositories for OpenAPI definitions, GraphQL schemas, Protobuf services, and AsyncAPI specifications. Tool extraction happens automatically. Python functions decorated with @mcp.tool remain intact. CLI instructions from documentation also turn into executable tools.
Output servers run on TypeScript, Python, or Go with dependency configurations for various clients. For source builds, pnpm is mandatory. You can generate code directly via npx or open https://github-to-mcp-web-lp642k3kpa-uc.a.run.app in your browser.
What it helps with
- Turn GitHub repositories into runnable MCP servers by URL
- Convert OpenAPI endpoints and GraphQL operations into agent tools
- Package documented CLI commands into callable MCP functions
- Produce ready-to-run MCP server code in TypeScript, Python, or Go
Example prompts for the agent
- Extract OpenAPI endpoints from https://github.com/stripe/stripe-node into an MCP server
- Build the generator locally with pnpm install and pnpm build
How to install GitHub to MCP Converter
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about GitHub to MCP Converter
How to install GitHub to MCP Converter?
Execute the tool directly with npx @nirholas/github-to-mcp <url>. To build from source, run git clone https://github.com/nirholas/github-to-mcp.git, cd github-to-mcp, pnpm install, and pnpm build.
What does GitHub to MCP Converter do?
It scans a GitHub repository for API schemas, endpoints, and commands, converting them into a structured MCP server that AI assistants can execute.
Which output formats are supported?
The generator exports server projects in TypeScript using the official MCP SDK, in Python using the MCP Python SDK, or in Go.