About Api2Agent
The OpenAPI to MCP tool and MCP scaffold generator for API providers and developers building AI agents.
What is Api2Agent?
Api2Agent is an OpenAPI-to-MCP tool that turns your OpenAPI spec into a downloadable TypeScript MCP server scaffold. Api2Agent turns your OpenAPI spec into a downloadable TypeScript MCP server scaffold so AI agents can call your API via MCP tools.
OpenAPI to MCP tool
If you’re looking for an OpenAPI to MCP tool, Api2Agent is exactly that: you provide your OpenAPI document (upload or paste), and we generate an MCP server project. The server exposes your API as MCP tools so AI agents (Cursor, Claude, etc.) can discover and call your API. No hand-writing of tool schemas or server code—you get a ready-to-run project.
MCP scaffold generator
As an MCP scaffold generator, we produce a full project: tool handlers derived from your spec, server entrypoint, config, README, and .env.example. You download a ZIP, run it locally or deploy it yourself. We don’t host the server; you own and operate the generated scaffold.
Who it’s for
API providers who want get your api used by ai agents — we give you the MCP server that wraps your API. Developers building AI agents who need to give their agent access to APIs — we give you the MCP server from your (or a third-party) OpenAPI spec so your agent can call those APIs via MCP tools.
What you get
- TypeScript MCP server scaffold
- Tool handlers generated from your OpenAPI operations
- README and .env.example for setup
- Download and run locally—we don’t host
MVP scope
Today we focus on: upload or paste OpenAPI (JSON/YAML) → generate scaffold → download ZIP. Hosted deployment, OAuth, and “import from URL” are planned for later. The goal is to get you from spec to runnable MCP server quickly, with full ownership of the code.
Generate your MCP server from OpenAPI on the Api2Agent homepage.