SpecToMCP

OpenAPI in. Runnable MCP server out.

OpenAPI to MCPServer Generator

Paste an OpenAPI or Swagger file. Select your endpoints. Download a runnable TypeScript MCP server for Cursor, Claude Desktop, and ChatGPT.

No signup or account Your spec stays in your browser Editable TypeScript source code

1. Paste your API specification

OpenAPI 3.x or Swagger 2.0 · JSON or YAML

1.3 KB
Parsed locally. Nothing is uploaded.

2. Choose the MCP tools

Tiny Petstore API · 3.1.0 · 3 operations

3 selected
·
https://petstore.example.com/v1

How it works

From API contract to agent tools in three steps.

SpecToMCP performs deterministic code generation. It does not send your schema to an AI model or invent behavior that is not in your API contract.

01

Parse the specification

Read paths, parameters, JSON request bodies, server URLs, and supported security schemes.

02

Choose the useful tools

Keep agent context focused by excluding endpoints the model should never call.

03

Download editable code

Get TypeScript source, stdio and HTTP transports, environment placeholders, and client setup files.

Deliberately small

A code generator, not another heavy MCP platform.

The first release is designed to validate one search intent: developers want a fast way to turn an existing REST contract into code they control.

Included

OpenAPI 3.x and basic Swagger 2.0

Included

Path, query, header, and JSON body inputs

Included

Bearer token and API key placeholders

Included

Cursor, Claude, and ChatGPT setup

Not included

OAuth, cookies, multipart, or binary bodies

Not included

Hosted endpoints, accounts, teams, or billing

Need hosted MCP or GitHub sync?

Those features only get built after real usage. Tell us what your production workflow needs.

Share your use case