Use our free mcp.json converter to transform raw cURL commands and OpenAPI or Swagger specifications into valid Model Context Protocol (MCP) tool schemas in seconds. Specifically, this browser-based workbench parses HTTP methods, headers, query parameters, and JSON request bodies locally without sending your API credentials to any external server.
OpenAPI & cURL → mcp.json Converter
MCP Spec 2026
100% client-side parser: converts cURL, OpenAPI 3.x, or Postman JSON into MCP manifests, sanitized LLM schemas & runnable server stubs.
Quick Answer: What Does This mcp.json Converter Do?
An mcp.json converter translates REST API definitions—such as cURL commands, OpenAPI 3.0/3.1 files, or Swagger 2.0 schemas—into standardized Model Context Protocol (MCP) configuration and tool definitions. Consequently, AI assistants like Claude Desktop, Cursor, and Windsurf can call your APIs safely using structured JSON-RPC schemas.

How to Use the OpenAPI & cURL to mcp.json Converter
First, choose a preset tab inside the workbench above depending on your starting format. If you have a single terminal command from API documentation, paste it into the cURL input tab. Conversely, if you maintain a full REST service, switch to the OpenAPI or Swagger tab and paste your JSON or YAML specification.
Next, configure your MCP server metadata, including the server name, semantic version, and transport protocol. Finally, copy the generated configuration or click Download to save your mcp.json file. In addition, you can estimate the ongoing token and cloud egress costs of running these API tools with our AI Cost Calculator.
Input-to-Schema Mapping Reference
Understanding how HTTP primitives map to Model Context Protocol schemas helps you verify every generated tool. Specifically, the table below summarizes how our mcp.json converter translates cURL flags and OpenAPI fields into compliant tool definitions.
| Source Input (cURL / OpenAPI) | Generated MCP Schema Field | Purpose in AI Agent Execution |
|---|---|---|
-X POST / OpenAPI operationId | tools[].name & method | Identifies the executable tool and HTTP verb |
-d '{...}' / requestBody | inputSchema.properties | Defines typed JSON arguments for the LLM |
-H "Authorization: ..." | env / header placeholders | Separates secrets from prompt context |
Query strings & path {id} | inputSchema.required | Enforces mandatory parameters before calls |
Comparing MCP Transport Modes for Your Server
Choosing the right transport layer ensures reliable communication between your host IDE and your MCP server. Therefore, review the comparison matrix below before deploying your generated configuration. You can also explore the official Model Context Protocol specification and the OpenAPI Specification for deeper protocol details.
| Transport Type | Best Use Case | Compatible Clients | Hosting Requirement |
|---|---|---|---|
stdio (Standard I/O) | Local CLI tools and desktop IDE plugins | Claude Desktop, Cursor, Windsurf | None (runs as a local child process) |
sse / Streamable HTTP | Remote team servers and cloud microservices | Custom agents, web apps, remote IDEs | HTTPS endpoint with auth headers |
Frequently Asked Questions About mcp.json Conversion
Is my API key or OpenAPI schema sent to a remote server?
No, all parsing and schema generation run 100% locally inside your browser. Consequently, your private endpoints, bearer tokens, and internal API specifications never leave your device.
Which OpenAPI and Swagger versions does this mcp.json converter support?
The workbench supports OpenAPI 3.0, OpenAPI 3.1, and Swagger 2.0 definitions in JSON or YAML format. Furthermore, it automatically extracts path parameters, query strings, and JSON request bodies into valid tool inputs.
How can I estimate the cost of running MCP tools in production?
Every tool call adds input and output tokens to your LLM context window. Therefore, you can pair your generated schema with our AI Cost Calculator or browse our web development guides to model production budgets accurately.