OpenAPI Schema模型上下文协议(MCP)服务器,提供获取和管理OpenAPI schema组件、端点、请求/响应模式等功能的工具,用于解析和操作API规范文档。
OpenAPI Schema MCP服务器
OpenAPI Schema模型上下文协议服务器。
https://www.anthropic.com/news/model-context-protocol
特性
| 属性 | 详情 |
|---|---|
| Docker镜像 | https://hub.docker.com/repository/docker/mcp/openapi-schema |
| 作者 | https://github.com/hannesj |
| 代码仓库 | https://github.com/hannesj/mcp-openapi-schema |
| Dockerfile | https://github.com/slimslenderslacks/mcp-openapi-schema/blob/master/Dockerfile |
| Docker镜像构建方 | Docker Inc. |
| Docker Scout健康评分 | |
| 验证签名 | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/openapi-schema --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| 许可证 |
可用工具(10个)
| 服务器提供的工具 | 简短描述 |
|---|---|
get-component | 获取特定组件的详细定义 |
get-endpoint | 获取特定API端点的详细信息 |
get-examples | 获取特定组件或端点的示例 |
get-path-parameters | 获取特定路径的参数 |
get-request-body | 获取特定端点的请求体模式 |
get-response-schema | 获取特定端点、方法和状态码的响应模式 |
list-components | 列出所有模式组件(模式、参数、响应等) |
list-endpoints | 列出所有API路径及其HTTP方法和摘要,按路径组织 |
list-security-schemes | 列出所有可用的安全方案 |
search-schema | 搜索路径、操作和模式 |
工具详情
Tool: get-component
获取特定组件的详细定义
| 参数 | 类型 | 描述 |
|---|---|---|
name | string | 组件名称 |
openapiSchemaPath | string | OpenAPI模式文件的路径 |
type | string | 组件类型(如schemas、parameters、responses) |
Tool: get-endpoint
获取特定API端点的详细信息
| 参数 | 类型 | 描述 |
|---|---|---|
method | string | HTTP方法 |
openapiSchemaPath | string | OpenAPI模式文件的路径 |
path | string | API路径 |
Tool: get-examples
获取特定组件或端点的示例
| 参数 | 类型 | 描述 |
|---|---|---|
openapiSchemaPath | string | OpenAPI模式文件的路径 |
type | string | 要检索的示例类型 |
componentName | string 可选 | 组件名称(组件示例必填) |
componentType | string 可选 | 组件类型(组件示例必填) |
method | string 可选 | HTTP方法(请求/响应示例必填) |
path | string 可选 | API路径(请求/响应示例必填) |
statusCode | string 可选 | 状态码(响应示例用) |
Tool: get-path-parameters
获取特定路径的参数
| 参数 | 类型 | 描述 |
|---|---|---|
openapiSchemaPath | string | OpenAPI模式文件的路径 |
path | string | API路径 |
method | string 可选 | HTTP方法 |
Tool: get-request-body
获取特定端点的请求体模式
| 参数 | 类型 | 描述 |
|---|---|---|
method | string | HTTP方法 |
openapiSchemaPath | string | OpenAPI模式文件的路径 |
path | string | API路径 |
Tool: get-response-schema
获取特定端点、方法和状态码的响应模式
| 参数 | 类型 | 描述 |
|---|---|---|
method | string | HTTP方法 |
openapiSchemaPath | string | OpenAPI模式文件的路径 |
path | string | API路径 |
statusCode | string 可选 | 状态码 |
Tool: list-components
列出所有模式组件(模式、参数、响应等)
| 参数 | 类型 | 描述 |
|---|---|---|
openapiSchemaPath | string | OpenAPI模式文件的路径 |
Tool: list-endpoints
列出所有API路径及其HTTP方法和摘要,按路径组织
| 参数 | 类型 | 描述 |
|---|---|---|
openapiSchemaPath | string | OpenAPI模式文件的路径 |
Tool: list-security-schemes
列出所有可用的安全方案
| 参数 | 类型 | 描述 |
|---|---|---|
openapiSchemaPath | string | OpenAPI模式文件的路径 |
Tool: search-schema
搜索路径、操作和模式
| 参数 | 类型 | 描述 |
|---|---|---|
openapiSchemaPath | string | OpenAPI模式文件的路径 |
pattern | string | 搜索模式(不区分大小写) |
使用此MCP服务器
json{ "mcpServers": { "openapi-schema": { "command": "docker", "args": [ "run", "-i", "--rm", "-v", "/local-directory:/local-directory", "mcp/openapi-schema" ] } } }
https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 openapi-schema 镜像标签
docker pull docker.xuanyuan.run/mcp/openapi-schema:<标签>
DockerHub 原生拉取命令
docker pull mcp/openapi-schema:<标签>
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务