Generate MCP Server

Swagger Studio allows you to generate an MCP server for the API definitions stored in your collection. You can create and download the MCP server file using AI-powered features, and then refine that file manually as needed.

MCP server generation is currently available for the OpenAPI 2.0, 3.0, and 3.1 specifications. Note that it is not supported for domains or templates.

Create an MCP server project file

To generate an MCP server for your API, complete the steps below:

  1. Enter your own or your organization's API collection, under My APIs or Organization APIs.

  2. At the specific API, select Generate MCP Server.

    AHPortal_screenshot_MCPserver_01.png
  3. (Optional) Select endpoints to include in the generated server project if only some are to be added. As endpoints are organized by tags, expand each tag to preview and select or unselect its corresponding endpoints.

    AHPortal_screenshot_MCPserver_02.png
  4. Click Confirm.

An MCP server project file is generated and automatically downloaded to your device as mcp-server.zip.

The .zip archive saved to your device includes a Node.js project and a README.md file, where you can find instructions regarding MCP server installation, setup, customization, and usage.

Publication date: