OpenAPI to MCP
Generate from OpenAPI
Import an OpenAPI spec and generate a fully functional MCP server with editable tool rules.
The Generate path turns your OpenAPI spec into a deployable MCP server. Each API operation becomes a tool with structured rule fields you can customize.
Before you start#
- An OpenAPI 3.0 or 3.1 spec in JSON format
- A public spec URL or the JSON content to paste
- A server name for the Agenetix dashboard
Import your spec#
- Go to MCP Servers > Create > Generate from OpenAPI.
- Paste your OpenAPI spec URL or JSON.
- Name your server and click Continue.
Agenetix parses every operation and creates a tool for each:
flowchart LR
Spec["OpenAPI spec"] --> Parse["Parse operations"]
Parse --> Tools["Create tools"]
Tools --> Rules["Edit rules"]
Rules --> Publish["Download or publish"]What each tool gets#
| Property | Where it comes from |
|---|---|
| Tool name | Built from the HTTP method + path, or from operationId |
| Display name | From operationId if present, otherwise a readable method/path label |
| Description | From the OpenAPI summary and description fields |
| Input schema | From parameters and requestBody in the spec |
| HTTP binding | The method and path of the original operation |
After import#
Your tools are ready to customize. See Edit tool rules to improve how the AI understands and selects your tools.
When you are happy with the rules, see Publish & download to get the generated server code.
