Submit

OpenAPI to MCP Server

@noteworthyten

A tool&lib that can automatically convert OpenAPI documents into Higress remote MCP server configurations.
Overview

What is OpenAPI to MCP Server?

OpenAPI to MCP Server is a tool that automatically converts OpenAPI documents into Higress remote MCP server configurations, facilitating the integration of APIs with the Model Context Protocol.

How to use OpenAPI to MCP Server?

To use the tool, install it via Go and run the command with the required input and output file paths. For example:

openapi-to-mcp --input path/to/openapi.json --output path/to/mcp-server.yaml

Key features of OpenAPI to MCP Server?

  • Converts OpenAPI paths to MCP tools
  • Supports both JSON and YAML OpenAPI specifications
  • Generates MCP configuration with server and tool definitions
  • Preserves parameter descriptions and types
  • Automatically sets parameter positions based on OpenAPI parameter locations
  • Handles path, query, header, cookie, and body parameters
  • Generates response templates with field descriptions
  • Optional validation of OpenAPI specifications
  • Supports template-based patching of the generated configuration

Use cases of OpenAPI to MCP Server?

  1. Automating the configuration of MCP servers from OpenAPI specifications.
  2. Simplifying the integration of REST APIs with Higress.
  3. Enhancing API documentation and response handling through generated templates.

FAQ from OpenAPI to MCP Server?

  • Can this tool handle both JSON and YAML OpenAPI specifications?

Yes, it supports both formats for input specifications.

  • Is validation of OpenAPI specifications mandatory?

No, validation is optional and can be disabled by default.

  • How can I customize the generated configuration?

You can use the --template flag to apply a YAML file for patching the generated configuration.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.