API to MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
API to MCP
把任意 REST API 端点快速转换成 MCP tools,让 AI 客户端(Cursor、Claude Desktop 等)直接调用你的内网服务。
快速开始
cd api-to-mcp
pip install -r requirements.txt
python main.py --port 8000Web UI: http://localhost:8000/ui
MCP 端点: http://localhost:8000/mcp
Related MCP server: API-to-MCP Converter
使用流程
打开配置页面,点击「添加服务」
填写服务名称、Base URL、请求头
点击「+ 端点」,配置方法、路径、参数、描述
点击「发送测试请求」验证 API 可达
测试通过后,点击「添加到 MCP」完成注册
MCP 客户端配置
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"my-api": {
"url": "http://your-server:8000/mcp"
}
}
}配置示例
services:
- name: "user-service"
base_url: "http://192.168.1.100:8080/api"
headers:
Authorization: "Bearer xxx"
endpoints:
- name: "get_user"
method: "GET"
path: "/users/{user_id}"
description: "根据用户ID获取用户信息"
parameters:
- name: "user_id"
type: "string"
required: true
location: "path"
verified: true架构
┌──────────────┐ ┌──────────────┐ ┌────────────────┐
│ Web UI (/ui)│────▶│ main.py │────▶│ FastMCP Server│
│ 配置/测试 │ │ loader.py │ │ /mcp (HTTP) │
└──────────────┘ │ http_client │ └────────────────┘
└──────────────┘ │
▼
MCP ClientThis server cannot be deployed
Maintenance
Related MCP Connectors
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Any REST/SOAP/GraphQL/OData/SQL API as MCP tools for Claude & ChatGPT. 691 connectors: SAP, ERP.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAutomatically converts any OpenAPI specification or Postman Collection into an MCP server, enabling AI assistants like Claude to directly interact with REST APIs without writing any code.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceConverts any REST API into MCP-compatible tools instantly by providing an OpenAPI/Swagger spec, enabling seamless integration with AI agents.MIT
- AlicenseNot gradedqualityBmaintenanceTurns any OpenAPI/Swagger API into MCP tools, enabling AI assistants to call REST API endpoints directly.25 PyPI2MIT
- AlicenseNot gradedqualityDmaintenanceActs as a bridge between standard REST/OpenAPI web APIs and the Model Context Protocol, dynamically converting REST endpoints into MCP tools for LLM clients like Cursor, Claude Desktop, and n8n.32 npmApache 2.0