Turn a Swagger 2.0 spec into an MCP server

Plenty of working APIs are still described in Swagger 2.0, and they do not need a migration to reach AI. Import the document as it is and every operation becomes an MCP tool for Claude, ChatGPT or Cursor.

swagger: "2.0", JSON or YAML Paste, upload or fetch from a URL One tool per operation Included in Pro, Agency and Unlimited

No conversion to OpenAPI 3 first

Older APIs, internal services and many vendor SDKs still publish a Swagger 2.0 document. GetMCP reads it directly, with the same review step as an OpenAPI import.

  • Open a server, choose Import, then Swagger
  • Paste the document, upload a .json, .yaml or .yml file, or give its URL
  • Untick the operations you do not want; every one starts ticked
  • Import as drafts to review first, or straight to active
# swagger.json
{
  "swagger": "2.0",
  "host": "api.mysaas.com",
  "basePath": "/v1",
  "schemes": ["https"],
  "paths": {
    "/orders": {
      "post": {
        "summary": "Create an order",
        "parameters": [{ "in": "body", "name": "order", … }]
      }
    }
  }
}

# The MCP tool, calling https://api.mysaas.com/v1/orders
create_an_order

What carries over from the spec

Naming, descriptions and tags work exactly as they do for OpenAPI. The Swagger-specific parts map like this.

In the specIn the MCP tool
schemes, host and basePathThe base URL, using the first scheme listed, or https when none is
summary, else operationIdThe tool name
description and tagsThe tool's description and tags
Path, query and header parametersParameters with type, description, default and required. Path parameters are always required
The in: body parameter's schemaBody fields, nested objects flattened so the client can fill them in
securityDefinitionsReported after the import, so you know which auth to set on the server

Good to know before you import

Auth is set once, by you

Basic, API key and OAuth 2 definitions are detected and listed. Set the matching auth on the server's settings and every imported tool uses it. OAuth needs Pro or above.

Form fields are sent as JSON

formData parameters have no special handling: on POST, PUT and PATCH they go in a JSON body. Test any endpoint that only accepts form posts or file uploads.

Re-importing adds, it does not sync

Import the spec again and GetMCP skips tools that already exist or creates duplicates, your choice. Existing tools are not updated in place.

Questions about Swagger import

Do I need to convert my spec to OpenAPI 3 first?

No. GetMCP reads swagger: "2.0" documents directly. A document that declares OpenAPI 3.0 or 3.1 goes through the OpenAPI importer instead.

Which plans include Swagger import?

Pro, Agency and Unlimited. The free Solo plan includes cURL import and the manual tool builder.

Do I have to import every endpoint?

No. Every operation is listed with a checkbox before anything is created, so you can leave out the ones the AI should not use.

An older spec still makes a modern MCP server.

Import the Swagger document you have, pick the operations, and connect Claude, ChatGPT or Cursor.

Teams already shipping MCP servers with it

Rated 5.0 out of 5 by customers Read more reviews

We hooked up our CRM in 5 minutes, now Claude can help maintain enrich assign tasks on autopilot. The hardest part is looking for more business SaaS to itegrate :) Thanks so much team, its really magic!!

Ilan Manoim

Picked up GetMCP to connect our internal tools, and the initial setup was surprisingly fast. Probably saved me hours of configuration work. Looking forward to expanding our usage and future features.