{"repo":"higress-group/openapi-to-mcpserver","free":true,"listed":false,"github":"https://github.com/higress-group/openapi-to-mcpserver","clone":"git clone https://github.com/higress-group/openapi-to-mcpserver.git","description":"A tool&lib that can automatically convert OpenAPI documents into Higress remote MCP server configurations.","language":"Go","stars":280,"topics":[],"license":"Apache-2.0","category":"mcp-servers","readme_excerpt":"OpenAPI to MCP Server A tool to convert OpenAPI specifications to MCP (Model Context Protocol) server configurations. Installation Usage Options - --input : Path to the OpenAPI specification file (JSON or YAML) (required) - --output : Path to the output MCP configuration file (YAML) (required) - --server-name : Name of the MCP server (default: \"openapi-server\") - --tool-prefix : Prefix for tool names (default: \"\") - --format : Output format (yaml or json) (default: \"yaml\") - --validate : Validate the OpenAPI specification (default: false) - --template : Path to a template file to patch the output (default: \"\") Example Converting OpenAPI to Higress REST-to-MCP Configuration This tool can be used to convert an OpenAPI specification to a Higress REST-to-MCP configuration. Here's a complete example: 1. Start with an OpenAPI specification (petstore.json): 2. Convert it to a Higress REST-to-MCP configuration: 3. The resulting petstore-mcp.yaml file: 4. This configuration can be used with Higress by adding it to your Higress gateway configuration. Note how the tool automatically sets the position field for each parameter based on its location in the OpenAPI specification: - The petId parameter is set to position: path because it's defined as in: path in the OpenAPI spec - The limit parameter is set to position: query because it's defined as in: query in the OpenAPI spec - The request body properties ( name and tag ) are set to position: body The MCP server will automatically handle ","default_branch":null,"files":null,"tree":[],"storefront":"/r/higress-group","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/higress-group/openapi-to-mcpserver/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}