Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
A tool that converts OpenAPI specifications to MCP server
| Date | Stars |
|---|---|
| 2026-07-31 | 629 |
| 2026-08-06 | 629 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# OpenAPI to MCP Generator (openapi-mcp-generator) [](https://www.npmjs.com/package/openapi-mcp-generator) [](https://opensource.org/licenses/MIT) [](https://github.com/harsha-iiiv/openapi-mcp-generator) Generate [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) servers from OpenAPI specifications. This CLI tool automates the generation of MCP-compatible servers that proxy requests to existing REST APIs—enabling AI agents and other MCP clients to seamlessly interact with your APIs using your choice of transport methods. --- ## ✨ Features - 🔧 **OpenAPI 3.0 Support**: Converts any OpenAPI 3.0+ spec into an MCP-compatible server. - 🔁 **Proxy Behavior**: Proxies calls to your original REST API while validating request structure and security. - 🔐 **Authentication Support**: API keys, Bearer tokens, Basic auth, and OAuth2 supported via environment variables. - 🧪 **Zod Validation**: Automatically generates Zod schemas from OpenAPI definitions for runtime input validation. - ⚙️ **Typed Server**: Fully typed, maintainable TypeScript code output. - 🔌 **Multiple Transports**: Communicate over stdio, SSE via Hono, or StreamableHTTP. - 🧰 **Project Scaffold**: Generates a complete Node.js project with `tsconfig.json`, `package.json`, and entry point. - 🧪 **Built-in HTML Test Clients**: Test API interactions visually in your browser (for web-based transports). --- ## 🚀 Installation ```bash npm install -g openapi-mcp-generator ``` > You can also use `yarn global add openapi-mcp-generator` or `pnpm add -g openapi-mcp-generator` --- ## 🛠 Usage ```bash # Generate an MCP server (stdio) openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir # Generate an MCP web server with SSE openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir --transport=web --port=3000 # Generate an MCP StreamableHTTP server openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir --transport=streamable-http --port=3000 ``` ### CLI Options | Option | Alias | Description | Default | | ------------------------ | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | | `--input` | `-i` | Path or URL to OpenAPI specification (YAML or JSON) | **Required** | | `--output` | `-o` | Directory to output the generated MCP project | **Required** | | `--server-name` | `-n` | Name of the MCP server (`package.json:name`) | OpenAPI title or `mcp-api-server` | | `--server-version` | `-v` | Version of the MCP server (`package.json:version`) | OpenAPI version or `1.0.0` | | `--base-url` | `-b` | Base URL for API requests. Required if OpenAPI `servers` missing or ambiguous. | Auto-detected if possible | | `--transport` | `-t` | Transport mode: `"stdio"` (default), `"web"`, or `"streamable-http"` | `"stdio"`
Excerpt of 12,971 characters
Read on GitHub61
7
6
5
4
3
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:5e5c96805fcc714a, desc:mcp server