OpenAPI to MCP Tool Schema Generator
Bridge existing REST APIs to AI agents by converting OpenAPI paths and request bodies into ready-to-use MCP tool schemas.
How to Use OpenAPI to MCP Tool Schema Generator
- 1
Input OpenAPI Specification
Paste a single OpenAPI 3.0/3.1 path item or full specification document in JSON format.
- 2
Generate MCP Tool Definitions
Click Run Tool to merge path parameters, query strings, and requestBody schemas into a unified MCP inputSchema.
- 3
Copy into Your MCP Server
Copy the generated tools array directly into your TypeScript or Python MCP server handler.
Frequently Asked Questions
How are path, query, and body parameters combined?
The generator flattens path, query, and JSON body properties into a single top-level JSON Schema object while preserving required arrays and field descriptions for LLM tool-calling.
Does it resolve local $ref pointers?
Yes, internal component references (#/components/schemas/...) are automatically dereferenced so the resulting MCP tool schema is self-contained.
Can I convert multi-endpoint OpenAPI specs at once?
Yes, all HTTP operations across every path in your OpenAPI document are converted into an array of MCP tool definitions in one pass.
Related Free Tools
MCP Server JSON Validator
Lint and validate Model Context Protocol (MCP) server manifests and JSON Schema 2020-12 tool definitions in real time.
JSON to TOON Converter
Transform standard JSON into compact Token-Oriented Object Notation (TOON) to minimize LLM prompt tokens without losing structure.
cURL to Playwright API Request Converter
Convert browser DevTools cURL commands into idiomatic Playwright request.get() and request.post() TypeScript code.