OpenAPI → MCP: generate an MCP server scaffold from your spec.
Api2Agent turns your OpenAPI spec into a downloadable TypeScript MCP server scaffold so AI agents can call your API via MCP tools. Get your API used by AI agents — download and run locally.
For API providers who want agents to call their API, and developers building AI agents with MCP.
Generate from OpenAPI
Upload a file or paste raw JSON/YAML
Upload an OpenAPI file in JSON or YAML format.
Drop your OpenAPI file here
or click to browse
JSON, YAML
MVP currently generates a TypeScript MCP scaffold.
Choose whether tool names are cleaned for readability.
Adds setup and usage instructions to the generated project.
Adds an env template to the generated project.
Generates a downloadable TypeScript MCP server scaffold.
Deployment support planned for Phase 2.
How it works
Three steps from spec to downloadable MCP scaffold.
Provide your spec
Upload an OpenAPI file or paste JSON/YAML.
Generate tools
We map API operations into MCP tool definitions and scaffold files.
Download the scaffold
Get a TypeScript MCP server project with config and docs.
What you get
Download a TypeScript MCP server project with tool handlers, config, and README.
TypeScript MCP scaffold
Ready-to-run server structure.
Generated tool handlers
One handler per API operation.
Clean tool names
Normalized, readable tool IDs.
Env template
.env.example with placeholders.
README included
Setup and usage instructions.
Warnings and schema notes
Know what to review.
Why this is useful
Turning an API into MCP manually means mapping endpoints, designing tool schemas, wiring auth, and building server scaffolding by hand. This tool accelerates the conversion step so developers can focus on refinement instead of boilerplate.
FAQ
Stay in the loop
We’ll email you when we ship new features or improve the generator. No spam, unsubscribe anytime.
We only use your email to send product updates. See our Privacy policy.