apitomcp
by wrannaman·★ 0·Score 27
Converts any API into an MCP server using Swagger documentation.
Overview
The apitomcp project is a utility tool that transforms standard API documentation (Swagger/OpenAPI) into MCP servers. It allows developers to expose any existing REST API through the Model Context Protocol without needing to rewrite the backend infrastructure. The server runs as an HTTP service or can be used in stdio mode for Claude Desktop integration.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this for quick API-to-MCP conversion if you have Swagger documentation and need a simple integration point with Claude Desktop.
When NOT to choose this
Avoid this for production use due to lack of documentation, unclear API conversion process, and no evidence of robust error handling or security features.
Comparable tools
Installation
Installation
- Clone the repository:
git clone https://github.com/wrannaman/apitomcp.git
cd apitomcp- Install dependencies:
npm install- Run the server:
npm run dev- Configure Claude Desktop:
{
"mcpServers": {
"api2mcp": {
"url": "http://localhost:3000/mcp",
"headers": {
"Authorization": "Bearer mcp_key_claude_desktop"
}
}
}
}- Or use with Docker:
docker build -t api2mcp .
docker run -p 3000:3000 api2mcpFAQ
- What APIs can be converted to MCP servers?
- Any API with Swagger/OpenAPI documentation can be converted. The tool parses the API docs and creates corresponding MCP tools.
- How is authentication handled?
- Authentication is passed through via headers. You can configure custom headers like 'Authorization' in your Claude Desktop configuration.
Compare apitomcp with
Last updated · Auto-generated from public README + GitHub signals.