独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
H

higress-group/openapi-to-mcpserver

OpenAPI document to a Higress MCP server config

装之前:有可直接复制的命令 · 许可证未标注 · 链接可访问

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
  1. 复制上面的命令
  2. 粘成 claude_desktop_config.json 里 mcpServers 的一项(本地服务器用 command + args,示例见 客户端接法)
  3. 重启客户端
取自该仓库的安装命令
go install github.com/higress-group/openapi-to-mcpserver/cmd/openapi-to-mcp@latest

解析自我们于 2026-11-05 抓取的该仓库 README;我们未执行过。

这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
评分构成
综合分 1,003 · 10 个来源 · mcp
安装
go install github.com/higress-group/openapi-to-mcpserver/cmd/openapi-to-mcp@latest
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是 go install github.com/higress-group/openapi-to-mcpserver/cmd/openapi-to-mcp@latest。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# OpenAPI to MCP Server

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

A tool to convert OpenAPI specifications to MCP (Model Context Protocol) server configurations.
## Installation
bash
go install github.com/higress-group/openapi-to-mcpserver/cmd/openapi-to-mcp@latest
## Usage
bash
openapi-to-mcp --input path/to/openapi.json --output path/to/mcp-server.yaml
### 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
bash
openapi-to-mcp --input petstore.json --output petstore-mcp.yaml --server-name petstore
### 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):
json
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"description": "A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification"
},
"servers": [
"url": "http://petstore.swagger.io/v1"
],
"paths": {
"/pets": {
"get": {
"summary": "List all pets",
"operationId": "listPets",
"parameters": [
"name": "limit",
"in": "query",
"description": "How many items to return at one time (max 100)",
"required": false,
"schema": {
"type": "integer",
"format": "int32"
],
"responses": {
"200": {
"description": "A paged array of pets",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"pets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier for the pet"
},
"name": {
"type": "string",
"description": "Name of the pet"
},
"tag": {
"type": "string",
"description": "Tag of the pet"
},
"nextPage": {
"type": "string",
"description": "URL to get the next page of pets"
},
"post": {
"summary": "Create a pet",
"operationId": "createPets",
"requestBody": {
"description": "Pet to add to the store",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the pet"
},
"tag": {
"type": "string",
"description": "Tag of the pet"
},
"responses": {
"201": {
"description": "Null response"
},
"/pets/{petId}": {
"get": {
"summary": "Info for a specific pet",
"operationId": "showPetById",
"parameters": [
"name": "petId",
"in": "path",
"required": true,
"description": "The id of the pet to retrieve",
"schema": {
"type": "string"
],
"responses": {
"200": {
"description": "Expected response to a valid request",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier for the pet"
},
"name": {
"type": "string",
"description": "Name of the pet"
},
"tag": {
"type": "string",
"description": "Tag of the pet"
2. Convert it to a Higress REST-to-MCP configuration:
bash
openapi-to-mcp --input petstore.json --output petstore-mcp.yaml --server-name petstore
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/higress-group-openapi-to-mcpserver/)
来源
awesome · https://github.com/higress-group/openapi-to-mcpserver
按领域浏览
MCP 服务
收录来源
10 个独立来源
收录于
今天

同类推荐

全部 6,229 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引