Basic information
About OpenAPI to MCP Server
A tool&lib that can automatically convert OpenAPI documents into Higress remote MCP server configurations.
OpenAPI to MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by higress-group. Supported transport: stdio. Runtime: go. License: Apache-2.0. The repository has 273 GitHub stars. Source code is hosted on github.com.
OpenAPI to MCP Server config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
OpenAPI to MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is OpenAPI to MCP Server?
A command-line tool that converts OpenAPI specifications (JSON or YAML) into MCP (Model Context Protocol) server configurations. It generates tool definitions, parameter mappings, and response templates, making it easy to expose REST APIs as MCP tools.
How to use OpenAPI to MCP Server?
Install via go install github.com/higress-group/openapi-to-mcpserver/cmd/openapi-to-mcp@latest. Then run openapi-to-mcp --input <openapi-file> --output <mcp-config.yaml> with optional flags such as --server-name, --tool-prefix, --format, --validate, and --template to customize the output.
Key features of OpenAPI to MCP Server
- Converts OpenAPI paths to MCP tools with correct parameter positions
- Supports JSON and YAML input and output formats
- Generates response templates with field descriptions for LLM readability
- Handles path, query, header, cookie, and body parameters automatically
- Optionally validates OpenAPI specifications before conversion
- Supports template-based patching for custom headers, auth, and output schemas
Use cases of OpenAPI to MCP Server
- Quickly generate MCP tool definitions from any OpenAPI‑described API
- Integrate REST APIs with Higress REST‑to‑MCP gateway configuration
- Automate creation of consistent MCP server configurations for multiple APIs
- Add global authentication headers or default output schemas via template patching
Frequently asked questions
1 What input formats does the tool support?
It accepts OpenAPI specifications in both JSON and YAML formats.
2 Can I customize the server name or tool prefix?
Yes. Use the --server-name flag to set the server name (default: openapi-server) and --tool-prefix to add a prefix to all generated tool names.
3 How are security schemes from OpenAPI handled?
Security schemes defined in components.securitySchemes are converted to a list under server.securitySchemes in the MCP configuration. The tool also supports x-defaultCredential for MCP‑specific default credentials.
4 How can I add global headers or authentication to all tools?
Use the --template flag to provide a YAML file that patches the generated configuration. Example: adding an Authorization header or an apiKey config field to every tool.
5 Does the tool require any runtime dependencies?
No runtime dependencies beyond the compiled binary. Installation requires Go, but the produced MCP configuration can be used with any compatible MCP server (e.g., Higress).
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In