Free Tool

OpenAPI to MCP: Convert Your API to an MCP Server

Paste your OpenAPI or Swagger spec. Pick the endpoints and get a hosted MCP server in minutes. No code required.

Try: or

OpenAPI 3.x
Swagger 2.0
JSON & YAML
Free tier

Why Convert OpenAPI to MCP?

AI-Ready APIs

Claude, Cursor, and other AI assistants use MCP to call tools. Your REST API doesn't speak MCP. Until now.

Skip Manual Work

Writing a tool by hand for every endpoint is slow. Conversion generates them from your spec.

Secure by Default

Credentials stay encrypted on our servers. AI clients never see your API keys.

How It Works

1

Paste Spec URL

Enter your OpenAPI or Swagger spec URL. We auto-detect the format and version.

2

Select Endpoints

Choose which API endpoints to expose as MCP tools. We auto-categorize them for you.

3

Deploy

One click deploys your MCP server. Get a public URL instantly.

Three Ways to Convert

Choose the method that fits your workflow: browser for speed, CLI for automation, Docker for self-hosting.

Web UI

Fastest

Paste URL, select tools, deploy. No installation required.

  • 60-second deploy
  • Visual tool selector
  • Managed hosting
Open Tool

CLI

One command to generate and deploy. Perfect for CI/CD.

# Install CLI
npm install -g mcpize

# Create project from OpenAPI URL
mcpize init my-api --template openapi \
  --from-url https://api.example.com/openapi.json

# Deploy
mcpize deploy
View on npm

Docker

Self-hosted on your infrastructure. Full control.

# Self-hosted with Docker
docker run -p 8080:8080 procoders/openapi-mcp-ts \
  --spec-url https://api.example.com/openapi.json
View on DockerHub

OpenAPI to MCP: Python vs TypeScript

Python (FastMCP)

from fastmcp import FastMCP
import httpx

# Load OpenAPI spec
spec = httpx.get("https://api.example.com/openapi.json").json()
client = httpx.AsyncClient(base_url="https://api.example.com")

# Create MCP server from spec
mcp = FastMCP.from_openapi(openapi_spec=spec, client=client)
mcp.run()
  • Async with httpx
  • Great for data science
  • Decorator-based API

TypeScript (MCPize)

# Install CLI
npm install -g mcpize

# Create project from OpenAPI URL
mcpize init my-api --template openapi \
  --from-url https://api.example.com/openapi.json

# Deploy
mcpize deploy
  • Full type safety
  • Production-ready templates
  • One-click deploy

Other OpenAPI to MCP Tools

MCPize isn't the only option. Here are other popular tools for converting OpenAPI specs to MCP servers:

emcee by Loopwork

Popular on Hacker News. Generates MCP servers from remote OpenAPI-documented APIs.

AWS Labs OpenAPI MCP Server

Official AWS tool. Dynamically creates MCP tools from OpenAPI specs for LLMs.

FastMCP from_openapi()

Python framework with built-in OpenAPI conversion. Great for data science workflows.

ConvertMCP.com

Free online converter. Supports 10+ programming languages. No account needed.

Does MCP Use OpenAPI?

Not directly. OpenAPI describes REST endpoints for developers and code generators. MCP describes tools for AI models: each tool has a name, a description written for an LLM, and a JSON Schema for its inputs. An MCP client never reads your OpenAPI file.

The two map cleanly, though. An operation becomes a tool, its summary becomes the tool description, and its parameters and request body become the input schema. That is what an OpenAPI to MCP converter automates, and why the result is only as good as the descriptions in your spec.

On MCPize, the generated server runs behind the MCP gateway, which adds your API credentials to each upstream call and handles sign-in for AI clients. If you would rather write the server yourself, see MCP server hosting or build an MCP server from a template.

Full Compatibility

Swagger 2.0 Support

Still using Swagger 2.0? No problem. The converter reads Swagger 2.0 directly, including securityDefinitions, host and basePath. Same workflow, same result.

Swagger 2.0 or OpenAPI 3.x
MCP Server

Frequently Asked Questions

Free to Start

Ready to Convert Your API?

Paste your OpenAPI spec and deploy an MCP server in minutes.

Or convert from Postman Collection