About Github To MCP
Github To MCP is an MCP server published by nirholas in the Developer Tools category: convert GitHub repositories into MCP servers by extracting tools from OpenAPI specs, READMEs, code and GraphQL. Conduid read 31 tools from its source: add, analyze_repo_structure, convert_openapi_to_mcp, convert_repo, delay, echo and 25 more. No package is published for it, so it installs from a source checkout.
The repository has 35 stars and 6 forks, is licensed Apache-2.0, and its last commit was on 26 Nov 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, api and automation.
Install
git clone https://github.com/nirholas/github-to-mcpTools (31)
addAdds two numbers| Parameter | Type | Description |
|---|---|---|
| a * | number | First number |
| b * | number | Second number |
analyze_repo_structureAnalyze a GitHub repository's structure to identify what extraction sources are available. Scans for: - OpenAPI/Swagger specs - GraphQL schemas - README files - Python and TypeScript source files - Existing MCP server implementations Returns a detailed breakdown of the repository structure with recommendations for extraction.| Parameter | Type | Description |
|---|---|---|
| github_token | string | GitHub personal access token (optional) |
| github_url * | string | The GitHub repository URL to analyze |
convert_openapi_to_mcpConvert an OpenAPI specification directly to MCP tools. Supports OpenAPI 3.x and Swagger 2.0 specifications. Can also handle: - Postman collections - Insomnia exports - HAR files - AsyncAPI specs - GraphQL schemas Returns MCP tool definitions extracted from the API specification.| Parameter | Type | Description |
|---|---|---|
| base_url | string | Override the base URL for API calls |
| format | string | The format of the specification |
| spec * | string | The OpenAPI specification content (JSON or YAML) |
convert_repoConvert a GitHub repository into an MCP server implementation. This tool analyzes a GitHub repository and generates a complete MCP server that exposes the repository's functionality as AI-usable tools. Supported extraction sources: - OpenAPI/Swagger specifications - README documentation - Source code (Python functions, TypeScript functions) - GraphQL schemas - Existing MCP server introspection Returns the generated MCP server code with full type annotations and documentation.| Parameter | Type | Description |
|---|---|---|
| github_token | string | GitHub personal access token for private repos or higher rate limits (optional) |
| github_url * | string | The GitHub repository URL (e.g., https://github.com/owner/repo) |
| output_language | string | The output language for the generated MCP server |
| sources | array | Which extraction sources to use (default: all) |
delayWaits for a specified duration| Parameter | Type | Description |
|---|---|---|
| ms | number | Milliseconds to wait |
echoEcho back the input message| Parameter | Type | Description |
|---|---|---|
| message * | string | Message to echo |
errorAlways throws an error (for testing)| Parameter | Type | Description |
|---|---|---|
| message | string | Error message |
export_dockerGenerate Docker configuration files for an MCP server. Creates: - Dockerfile optimized for MCP servers - docker-compose.yml for easy deployment - .dockerignore for efficient builds Supports TypeScript and Python MCP servers with best practices for: - Multi-stage builds (TypeScript) - Minimal image size - Proper caching - Security hardening - Logging configuration The generated configuration can be customized with server name, port, and environment variables.| Parameter | Type | Description |
|---|---|---|
| env_vars | object | Environment variables to include |
| include_healthcheck | boolean | Include a health check endpoint |
| language * | string | The programming language of the MCP server |
| multi_stage | boolean | Use multi-stage build for smaller images (TypeScript only) |
| port | number | Port to expose (optional, MCP uses stdio by default) |
| server_name | string | Name for the Docker service |
fetch_dataFetches data from an API| Parameter | Type | Description |
|---|---|---|
| headers | object | Request headers |
| method | string | |
| url * | string | URL to fetch |
generate_claude_configGenerate a Claude Desktop configuration snippet for an MCP server. Creates the JSON configuration that can be added to Claude Desktop's config file to register the generated MCP server.| Parameter | Type | Description |
|---|---|---|
| env_vars | object | Environment variables to pass to the server |
| language * | string | The language of the MCP server |
| server_name * | string | Name for the MCP server in the config |
| server_path * | string | Path to the generated MCP server file |
generate_cursor_configGenerate a Cursor IDE configuration for an MCP server. Creates the configuration format used by Cursor to integrate MCP servers.| Parameter | Type | Description |
|---|---|---|
| language * | string | The language of the MCP server |
| server_name * | string | Name for the MCP server |
| server_path * | string | Path to the generated MCP server file |
generate_openapi_specGenerate an OpenAPI 3.1 specification from source code files. Analyzes source code to extract API routes and generates a complete OpenAPI specification. Supported frameworks: - Express.js (Node.js) - FastAPI/Flask (Python) - Next.js API routes (app/api and pages/api) The tool detects the framework automatically and extracts: - Routes and HTTP methods - Path, query, and header parameters - Request body schemas - Response schemas - Security schemes - Tags for grouping Returns the generated OpenAPI spec in both JSON and YAML formats.| Parameter | Type | Description |
|---|---|---|
| files * | array | Array of source code files to analyze |
| format | string | Output format |
| options | object | Generation options |
get_readmeRetrieve the repository's README contentget_repo_infoGet repository infoget_timeGet the current server timeget_tool_templateGet a template for creating a new MCP tool definition. Returns a starter template in the requested language with best practices and documentation.| Parameter | Type | Description |
|---|---|---|
| description * | string | Description of what the tool does |
| language | string | Target language for the template |
| parameters | array | List of parameters for the tool |
| tool_name * | string | Name for the tool |
greetGenerates a greeting message| Parameter | Type | Description |
|---|---|---|
| formal | boolean | Use formal greeting |
| name * | string | Name to greet |
helloSay hello| Parameter | Type | Description |
|---|---|---|
| name * | string | Name to greet |
list_extracted_toolsPreview the tools that would be extracted from a GitHub repository without generating the full MCP server. Useful for understanding what capabilities will be available before committing to a full conversion. Returns a structured list of all detected tools with their names, descriptions, parameters, and source locations.| Parameter | Type | Description |
|---|---|---|
| github_token | string | GitHub personal access token (optional) |
| github_url * | string | The GitHub repository URL to analyze |
| sources | array | Which extraction sources to scan |
list_filesList files and directories at a given path| Parameter | Type | Description |
|---|---|---|
| path | any | optional, defaults to root |
list_providersList all supported AI providers and their MCP configuration details. Returns information about: - Provider name and description - Configuration file format - Configuration file paths for different operating systems - Example configuration snippets| Parameter | Type | Description |
|---|---|---|
| include_examples | boolean | Include example configurations |
monitor_mcp_serverMonitor an MCP server's health and collect metrics. Performs comprehensive health checks: - Connection test (ping/pong) - Tool availability verification - Response time measurement - Error rate tracking - Resource utilization estimates Returns a detailed health report with: - Overall status (healthy/degraded/unhealthy) - Individual tool health - Performance metrics - Recommendations for improvements Can be used for: - Pre-deployment validation - Continuous health monitoring - Debugging connection issues - Performance optimization| Parameter | Type | Description |
|---|---|---|
| checks | array | Which health checks to run |
| include_recommendations | boolean | Include optimization recommendations |
| server_config * | object | Server configuration for connection |
| timeout_ms | number | Timeout for health checks in milliseconds |
| tool_samples | number | Number of sample calls per tool for latency testing |
namedescriptionnull_valuesTest with null values for all fieldsread_fileRead the contents of a specific file| Parameter | Type | Description |
|---|---|---|
| path | any | required |
search_codeSearch for patterns across the repository| Parameter | Type | Description |
|---|---|---|
| path | any | optional |
| query | any | required |
search_reposSearch repositoriesstream_convertConvert a GitHub repository with streaming progress updates. Similar to convert_repo but provides real-time progress events during the conversion process. Progress events include: - start: Conversion initiated - analyzing: Analyzing repository structure - extracting: Extracting tools from sources - generating: Generating MCP server code - validating: Validating generated code - complete: Conversion finished - error: An error occurred Each event includes a progress percentage and detailed status information. Note: In MCP context, progress is reported via tool output. For SSE streaming, use the HTTP API endpoint.| Parameter | Type | Description |
|---|---|---|
| github_token | string | GitHub token for private repos |
| github_url * | string | The GitHub repository URL to convert |
| include_progress | boolean | Include detailed progress in output |
| output_language | string | Target language for generated code |
| sources | array | Which extraction sources to use |
test_mcp_toolTest and validate an MCP tool definition. Performs comprehensive validation and generates test cases: - Schema validation (JSON Schema compliance) - Input validation with edge cases - Mock data generation for testing - Example request/response pairs - Type checking for parameters Returns detailed validation results and generated test fixtures.| Parameter | Type | Description |
|---|---|---|
| generate_edge_cases | boolean | Generate edge case test inputs |
| generate_mocks | boolean | Generate mock input data for testing |
| output_format | string | Output format for test cases |
| tool_definition * | object | The MCP tool definition to test |
| validate_schema | boolean | Validate the JSON Schema is well-formed |
tool_name...validate_mcp_serverValidate MCP server code for correctness and best practices. Checks: - Tool definitions are well-formed - Input schemas are valid JSON Schema - Type annotations are consistent - Required fields are present - Description quality Returns validation results with any warnings or errors found.| Parameter | Type | Description |
|---|---|---|
| code * | string | The MCP server code to validate |
| language * | string | The language of the code |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 25K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml and packages/openapi-parser/package-lock.json.
- ✓No dynamic code executionScanned 251 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEapps/vscode/src/commands/validate.ts:129, apps/web/lib/api/validation.ts:60, apps/web/lib/api/validation.ts:60
- Starts other programs
- 1 callapps/web/lib/mcp-sandbox.ts:202
- Outbound network calls
- 46 callsapps/vscode/src/utils/github-api.ts:98, apps/vscode/src/utils/github-api.ts:174, apps/vscode/src/utils/github-api.ts:195
- Writes or deletes files
- 39 callsapps/vscode/src/commands/configureClaudeDesktop.ts:124, apps/vscode/src/commands/configureClaudeDesktop.ts:255, apps/vscode/src/commands/configureClaudeDesktop.ts:272
- Lockfile
- pnpm-lock.yaml and packages/openapi-parser/package-lock.json
Pattern matches on the source text of 251 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 25K words, fetched a month ago. The original in the repository is authoritative.
Read full README