OpenAPI to MCP Server
@higress-group
About OpenAPI to MCP Server
A tool&lib that can automatically convert OpenAPI documents into Higress remote MCP server configurations.
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
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
FAQ from OpenAPI to MCP Server
What input formats does the tool support?
It accepts OpenAPI specifications in both JSON and YAML formats.
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.
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.
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.
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).
More Other MCP servers
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
ACI: Open-Source Infra to Power Unified MCP Servers
aipotheosis-labsACI.dev is the open source tool-calling platform that hooks up 600+ tools into any agentic IDE or custom AI agent through direct function calling or a unified MCP server. The birthplace of VibeOps.
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Comments