MCP Catalogs
Home

apitomcp

by wrannaman·0·Score 27

Converts any API into an MCP server using Swagger documentation.

developer-toolsapi-integrationother
0
Forks
0
Open issues
10 mo ago
Last commit
2d ago
Indexed

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:

you:Integrate existing REST APIs with AI assistants that support MCP
you:Convert legacy API endpoints into MCP-compatible tools
you:Create MCP servers from third-party APIs without modifying the original API
you:What APIs can be converted to MCP servers?
you:How is authentication handled?

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

openapi-mcpswagger-mcpapi2ai

Installation

Installation

  1. Clone the repository:
git clone https://github.com/wrannaman/apitomcp.git
cd apitomcp
  1. Install dependencies:
npm install
  1. Run the server:
npm run dev
  1. Configure Claude Desktop:
{
  "mcpServers": {
    "api2mcp": {
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer mcp_key_claude_desktop"
      }
    }
  }
}
  1. Or use with Docker:
docker build -t api2mcp .
docker run -p 3000:3000 api2mcp

FAQ

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.