api-to-mcp-gateway
Provides tools to interact with GitHub API, allowing AI agents to manage repositories, issues, pull requests, and other GitHub resources.
Provides tools to interact with Notion API, enabling AI agents to create databases, pages, and manage content.
Provides tools to interact with any REST API described by an OpenAPI/Swagger specification, allowing AI agents to call API endpoints dynamically by converting the specification into MCP tools.
Click on "Install 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., "@api-to-mcp-gatewayStart the gateway with the Petstore OpenAPI spec from ./specs/petstore.yaml"
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.
API-to-MCP Gateway
将任意 OpenAPI/Swagger 文档转换为运行中的 MCP Server——AI Agent 即可直接调用这些 API。
快速开始
pnpm install
pnpm test
pnpm start -- --spec ./specs/petstore.yamlMCP Server 监听 http://127.0.0.1:3000/mcp,可连接 Claude Desktop、Codex 或任意 MCP 客户端。
Related MCP server: mcpify
工作原理
OpenAPI 文档 --> Parser --> Converter --> ToolRegistry --> MCP Server (JSON-RPC)
|
API Proxy --HTTP--> 目标 API
AuthManager
RAG Retriever
Agent Orchestrator解析 — 从文档中提取所有端点和参数
转换 — 将每个 operation 映射为 MCP tool(snake_case 命名,JSON Schema)
服务 — 通过 Streamable HTTP + JSON-RPC 2.0 暴露 tools
代理 — 将 tool 调用转发为真实 HTTP 请求
项目结构
packages/
core/ OpenAPI 解析 + tool schema 转换
server/ MCP 运行时:tools, proxy, auth, JSON-RPC
cli/ CLI 入口(支持多 spec、远程 URL)
rag/ 向量存储 + 语义搜索
agent/ 编排器:RAG -> LLM -> tool 调用 -> 循环
specs/ 示例 OpenAPI 文档(Petstore)配置
认证通过环境变量注入(命名规则 {SOURCE}_TOKEN 或 {SOURCE}_API_KEY):
export GITHUB_TOKEN=ghp_xxx
export NOTION_API_KEY=secret_xxx
pnpm start -- --spec ./github.yaml --spec ./notion.yaml多个 --spec 参数可将不同 API 的工具注册到同一个 Server。
技术栈
TypeScript 5 (strict),Node.js 20+,pnpm workspace monorepo。 MCP SDK,@apidevtools/swagger-parser,yaml,Vitest。
命令
pnpm install 安装依赖
pnpm test 运行全部测试
pnpm build 编译 TypeScript
pnpm start -- --spec <path|url> 启动 MCP GatewayThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAutomatically converts Swagger/OpenAPI specifications into MCP servers, enabling AI agents to interact with any REST API through natural language by exposing endpoints as AI-friendly tools.Last updated3
- Alicense-qualityBmaintenanceTurns any OpenAPI specification into a fully working MCP server with a single command, enabling AI agents to call APIs without writing any glue code.Last updated27MIT
- Alicense-qualityBmaintenanceConverts any OpenAPI specification into an MCP server, allowing AI assistants to interact with REST APIs through natural language.Last updated91MIT
- Alicense-qualityAmaintenanceTurns any OpenAPI/Swagger API into MCP tools, enabling AI assistants to call REST API endpoints directly.Last updated2MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PPACT/api-to-mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server