Converts Postman Collections (v2.0 and v2.1) into MCP tools, automatically detecting collection format and transforming requests into callable tools with support for nested folders, path variables, and various body types.
Parses OpenAPI 3.0/3.1 specifications and converts each endpoint into MCP tools, enabling programmatic access to any REST API with OpenAPI documentation including authentication, request filtering, and safety controls.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenAPI to MCPconvert the GitHub API OpenAPI spec at https://api.github.com/openapi.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenAPI to MCP
Turn any OpenAPI spec or Postman Collection into an MCP server. Like, instantly.
Got a REST API with an OpenAPI spec or a Postman Collection? Cool, now Claude can use it directly. No code required.
Quick Start
docker run -p 8080:8080 procoders/openapi-mcp-ts \
--spec-url https://petstore3.swagger.io/api/v3/openapi.json \
--upstream-url https://petstore3.swagger.io/api/v3Point Claude Desktop at it:
{
"mcpServers": {
"petstore": {
"url": "http://localhost:8080/mcp"
}
}
}Done. Your API is now available as MCP tools. Go grab a coffee.
What's the Deal?
OpenAPI 3.0 / 3.1 - We parse your spec and turn each endpoint into an MCP tool
Postman Collections - Got a Postman collection instead? Works the same way
Auto-detection - We figure out what format you're using. You just point, we parse
Zero code - Just point at your spec, we handle the rest
Safe by default - DELETE methods are disabled unless you say otherwise
Auth built-in - API Key, Bearer, Basic - all supported
Filter tools - Use globs to include/exclude specific operations
Production-ready - Health checks, graceful shutdown, structured logging
Installation
Docker (the easy way)
docker pull procoders/openapi-mcp-ts:latestFrom Source (if you're into that)
git clone https://github.com/procoders/openapi-mcp-ts.git
cd openapi-mcp-ts
npm install
npm run build
npm start -- --spec-url <url> --upstream-url <url>Usage
OpenAPI
# From a URL
docker run -p 8080:8080 procoders/openapi-mcp-ts \
--spec-url https://api.example.com/openapi.json \
--upstream-url https://api.example.com
# From a local file
docker run -p 8080:8080 \
-v ./my-api.yaml:/spec.yaml:ro \
procoders/openapi-mcp-ts \
--spec-file /spec.yaml \
--upstream-url https://api.example.comPostman Collections
Same deal, just point at your collection. We auto-detect the format:
# From a Postman collection URL
docker run -p 8080:8080 procoders/openapi-mcp-ts \
--spec-url https://your-postman-collection.json \
--upstream-url https://api.example.com
# From a local collection file
docker run -p 8080:8080 \
-v ./my-collection.json:/spec.json:ro \
procoders/openapi-mcp-ts \
--spec-file /spec.json \
--upstream-url https://api.example.comWant to be explicit? Use --format:
docker run -p 8080:8080 procoders/openapi-mcp-ts \
--spec-file /spec.json \
--format postman \
--upstream-url https://api.example.comPostman v2.0 and v2.1 collection formats are both supported. Nested folders become tags, path variables (:id) become OpenAPI-style ({id}), and all body types (raw JSON, form-data, urlencoded) just work.
With Auth
# Bearer token
docker run -p 8080:8080 \
-e AUTH_TYPE=bearer \
-e AUTH_VALUE="your-token-here" \
procoders/openapi-mcp-ts \
--spec-url https://api.example.com/openapi.json \
--upstream-url https://api.example.comWith a Config File
For more complex setups, use a YAML config:
# config.yaml
spec:
url: https://api.example.com/openapi.json
upstream:
baseUrl: https://api.example.com
timeout: 30000
headers:
X-Request-ID: "{{REQUEST_ID}}" # System variables ftw
X-Timestamp: "{{TIMESTAMP}}"
tools:
include: ["get_*", "list_*"] # Only expose read operations
exclude: ["*_admin_*"] # Hide admin stuff
autoDisable:
methods: ["DELETE"] # Safety first
deprecated: true
auth:
type: apiKey
in: header
name: X-API-Key
value: "${API_KEY}" # Env var interpolation
logging:
level: info
format: jsonThen run:
docker run -p 8080:8080 \
-v ./config.yaml:/config.yaml:ro \
-e API_KEY="your-key" \
procoders/openapi-mcp-ts \
--config /config.yamlCLI Options
Flag | What it does | Default |
| Fetch spec from URL | - |
| Load spec from local file | - |
| Force format: openapi or postman | auto |
| Base URL for API requests | - |
| Server port | 8080 |
| Host to bind | 0.0.0.0 |
| Config file path | - |
| Only include matching tools | - |
| Exclude matching tools | - |
| debug/info/warn/error | info |
| json/pretty | json |
Environment Variables
Everything can be set via env vars too:
Variable | What it does |
| Spec URL (OpenAPI or Postman) |
| Path to spec file |
| Force format: openapi or postman |
| Upstream API base URL |
| Server port |
| Log level |
| none/apiKey/bearer/basic |
| Header or query param name |
| The actual auth value |
| Comma-separated include patterns |
| Comma-separated exclude patterns |
Endpoints
Endpoint | What's there |
| Health check (for load balancers) |
| List all available tools as JSON |
| The MCP protocol endpoint |
Dynamic Tool Filtering
Different AI agents need different tools? No problem:
http://localhost:8080/mcp?tools=get_user,list_usersOnly those tools will be available in that session. Pretty handy.
System Variables
You can use these in your upstream headers config:
Variable | Value |
| Unix timestamp in ms |
| UUID for request tracing |
| ISO 8601 formatted date |
| Client IP address |
Tool Naming
We convert your operationId to snake_case:
getPetById→get_pet_by_idlistUsers→list_userscreateNewOrder→create_new_order
No operationId? We generate from method + path:
GET /pets/{id}→get_pets_id
For Postman collections, the request name becomes the tool name:
"Get All Users"→get_all_users"Create New Post"→create_new_post
Safety Stuff
Auto-disabled Methods
DELETE operations are disabled by default. Enable them explicitly if you need them.
Tool Count Warning
We'll warn you if you enable more than 10 tools. LLMs tend to get confused with too many options.
Development
npm install
npm run dev -- --spec-url https://petstore3.swagger.io/api/v3/openapi.json \
--upstream-url https://petstore3.swagger.io/api/v3
# Other commands
npm run build # Compile TypeScript
npm run typecheck # Type check only
npm run lint # ESLintDon't Want to Self-Host?
Check out MCPize - we'll host it for you. Deploy from your OpenAPI spec in 60 seconds, no infrastructure needed.
Contributing
See CONTRIBUTING.md. We're friendly, promise.
License
Apache 2.0 - do what you want, just keep the license.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.