openapi-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openapi-mcp-serveradd the petstore API from https://petstore.swagger.io/v2/swagger.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenAPI MCP Server
基于 OpenAPI specification 动态创建 MCP tools/resources,并提供 React 管理台创建、刷新、启停、预览和调用 MCP Resources。
本地运行
make install
make dev-backend # 管理 API: http://127.0.0.1:8001
make dev-frontend # 管理台: http://127.0.0.1:5173
make dev-mcp # MCP stdio serverOpenAPI API 不随本项目打包,地址在管理台创建 MCP Resource 时填写。
Related MCP server: safe-oas2mcp
Docker 部署
make docker-build
make docker-up访问:
http://127.0.0.1:58001容器内服务端口为 8001,按项目规则映射到宿主机 58001。SQLite 数据通过 docker/volume/sqlite/ 持久化。
Agent 接入 MCP
管理台用于配置 OpenAPI URL,Agent 连接 MCP 服务端点:
http://127.0.0.1:58001/mcpMCP transport 使用 Streamable HTTP。Agent 侧配置示例:
{
"mcpServers": {
"openapi-mcp": {
"url": "http://127.0.0.1:58001/mcp",
"transport": "http"
}
}
}配置为启用且状态为 active 的 MCP Resource 会动态暴露为 tools/resources。
验证
make test
make lint
make build本地 SQLite 默认数据文件为 backend/data/openapi_mcp.db,Docker SQLite 数据文件为 docker/volume/sqlite/openapi_mcp.db,二者均不纳入版本控制。
This server cannot be deployed
Maintenance
Related MCP Connectors
- TypeshipOAuthdev.typeship
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
APIs.guru MCP — keyless directory of 2,500+ public APIs and their OpenAPI specs.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
327 dev tools via REST API and MCP. Generate Dockerfiles, schemas, K8s, APIs, and more.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAutomatically converts OpenAPI specifications into Model Context Protocol applications, enabling HTTP APIs to be managed as MCP services. It features a dynamic architecture that monitors file systems or Kubernetes ConfigMaps to update MCP tools in real-time.1-
- FlicenseNot gradedqualityDmaintenanceTurns OpenAPI specs into MCP tools with secure defaults, risk inspection, confirmation gates, response limits, audit logging, and secret redaction.-
- AlicenseNot gradedqualityCmaintenanceA stateless gateway that turns any OpenAPI spec into MCP tools on the fly.1MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that wraps any REST API with an OpenAPI spec, dynamically creating MCP tools at runtime without code generation.6 npm-