Free Tool

Convert OpenAPI to MCP Server

Paste your OpenAPI or Swagger spec. Get a working MCP server in 60 seconds. 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

Building an MCP server from scratch takes 2-5 hours. Auto-conversion takes 60 seconds.

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.

Full Compatibility

Swagger 2.0 Support

Still using Swagger 2.0? No problem. Our converter automatically upgrades your spec to OpenAPI 3.0 during conversion. Same workflow, same result.

Swagger 2.0
OpenAPI 3.0
MCP Server

Frequently Asked Questions

Free to Start

Ready to Convert Your API?

Paste your OpenAPI spec and deploy an MCP server in 60 seconds.

Or convert from Postman Collection