/github-to-mcp:repo-to-mcpfrom github-to-mcp
Converts a GitHub repository into a generated MCP server (TypeScript or Python) by extracting tools from its OpenAPI spec, README, code, and GraphQL schema. Use when asked to wrap a repo or API as an MCP server.
Ships in github-to-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The monorepo has a CLI (packages/core, bin github-to-mcp) and a stdio MCP server (packages/mcp-server, bin github-to-mcp-server). Neither is installable from npm: the package @nirholas/github-to-mcp on npm is a snapshot of the monorepo root with no bin. Build from a clone. Node 22 or newer and pnpm are required.
git clone https://github.com/nirholas/github-to-mcp
cd github-to-mcp
pnpm install
pnpm build:core # CLI, output packages/core/dist/cli.mjs
pnpm --filter @github-to-mcp/mcp-server build # MCP server, output packages/mcp-server/dist/index.mjs
node packages/core/dist/cli.mjs https://github.com/owner/repo -o typescript -d ./mcp-tools
Options on the default command: -o, --output typescript|json|python (default typescript), -d, --dir PATH (default ./mcp-tools), -f, --file PATH (a file of URLs, for batches), --sources readme,openapi,code (default shown), --follow-docs, --depth N, --token TOKEN (GitHub token for private repos), --config FILE, -i, --interactive, -w, --watch. Global flags: -q, --quiet, -v, --verbose, --no-cache.
Subcommands:
validate <file> with --url URL to validate a generated server from a URL instead.install <url> with --claude, --cursor, --vscode or --all, -d DIR (default ~/.mcp-servers) and --dry-run. It writes into client config files, so always run --dry-run first and show the user what it would change.Prefer passing the token through --token from an environment variable the user exports in their own shell, and never print it.
claude mcp add github-to-mcp -- node /path/to/github-to-mcp/packages/mcp-server/dist/index.mjs
Tools: convert_repo (github_url required, output_language typescript or python, sources from readme, openapi, code, graphql, github_token), list_extracted_tools (preview what would be extracted), validate_mcp_server, generate_claude_config, generate_cursor_config, analyze_repo_structure, convert_openapi_to_mcp, get_tool_template, plus export_docker, generate_openapi_spec, stream_convert, monitor_mcp_server and list_providers. Read each tool's input schema from tools/list before calling it.
Ask: "Wrap this repo's REST API as an MCP server."
list_extracted_tools with {"github_url": "https://github.com/owner/repo", "sources": ["openapi", "readme"]} to see what would be generated.convert_repo with the same URL and "output_language": "typescript".validate_mcp_server on it, then read it before running anything.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nirholas/github-to-mcp --plugin github-to-mcpOther plugins' skills for the same job