GitHub-to-MCP Conversion Guide

SkillAI & models

Guide to converting GitHub repositories into MCP servers automatically. Extract tools from OpenAPI, GraphQL, and REST APIs for Claude Desktop, Cursor, Windsurf, Cline, and VS Code. AI-powered code generation creates type-safe TypeScript/Python MCP servers. Zero config — just paste a repo URL.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the GitHub-to-MCP Conversion Guide skill

What this skill tells your AI

The instructions your AI receives, as published by nirholas/three.ws in data/skills/development/github-to-mcp-guide/SKILL.md and read by ahel’s review.

Convert any GitHub repository into an MCP server automatically. The tool analyzes the repo's API surface (OpenAPI specs, GraphQL schemas, REST endpoints) and generates a working MCP server with type-safe tools.

How It Works

GitHub Repo URL
    │
    ▼
1. Clone & analyze repo
    │
    ▼
2. Detect API surface
   ├── OpenAPI/Swagger specs
   ├── GraphQL schemas
   ├── REST route definitions
   └── Function exports
    │
    ▼
3. Generate MCP server
   ├── TypeScript or Python
   ├── Type-safe tool definitions
   ├── Parameter validation
   └── Error handling
    │
    ▼
4. Ready-to-use MCP server

Quick Start

npx github-to-mcp https://github.com/owner/repo

This generates a ready-to-use MCP server in ./mcp-output/.

Supported API Formats

FormatDetectionExample
OpenAPI 3.xopenapi.json, swagger.yamlREST APIs with full schema
GraphQLschema.graphql, introspectionQuery/mutation → tools
Express/FastifyRoute scanningapp.get('/api/...') → tools
Next.js APIRoute file detectionapp/api/*/route.ts → tools
Function exportsNamed export analysisexport function doThing() → tools

Output Options

TypeScript MCP Server

github-to-mcp https://github.com/owner/repo --lang typescript

Generates a Node.js MCP server with full TypeScript types.

Python MCP Server

github-to-mcp https://github.com/owner/repo --lang python

Generates a Python MCP server using the official MCP SDK.

AI-Powered Generation

When the API surface is ambiguous, the tool uses AI (GPT-4 or Claude) to:

  • Infer parameter types from usage patterns
  • Generate meaningful tool descriptions
  • Create example inputs for each tool
  • Handle edge cases in API design

Use Cases

Turn a DeFi Protocol into MCP Tools

github-to-mcp https://github.com/aave/aave-v3-core
# → Generates MCP tools for supply, borrow, repay, liquidate, etc.

Convert a Data API

github-to-mcp https://github.com/nirholas/crypto-data-aggregator
# → Generates MCP tools for price queries, portfolio tracking, alerts

Make Internal Tools AI-Accessible

github-to-mcp https://github.com/your-company/internal-api
# → Your internal API is now accessible to AI agents

Integration with SperaxOS

github-to-mcp is particularly useful for the SperaxOS ecosystem:

  • Convert DeFi protocol repos into MCP tools
  • Auto-generate tool manifests for the skill marketplace
  • Create agent tools from any Sperax ecosystem repo

Links

Signals

GitHub stars
114
Forks
29
Last commit
Sep 2026

ahel review

  • S4info
    community integration — published by nirholas, not github

Automated review, not a security audit. Ruleset v1.

Advanced
Catalog kind
skill
Gateway key
github-to-mcp-guide
Source
github.com/nirholas/three.ws