OpenAPI to MCP

Generate from OpenAPI

Import an OpenAPI spec and generate a fully functional MCP server with editable tool rules.

4 sections

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#

  1. Go to MCP Servers > Create > Generate from OpenAPI.
  2. Paste your OpenAPI spec URL or JSON.
  3. Name your server and click Continue.

Agenetix parses every operation and creates a tool for each:

MERMAID
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#

PropertyWhere it comes from
Tool nameBuilt from the HTTP method + path, or from operationId
Display nameFrom operationId if present, otherwise a readable method/path label
DescriptionFrom the OpenAPI summary and description fields
Input schemaFrom parameters and requestBody in the spec
HTTP bindingThe 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.