Api To MCP Server

Generates MCP tool code from OpenAPI specs

Local serverstdioTypeScript

What is the Api To MCP Server?

Generates MCP tool code from OpenAPI specs

What the server does

A tool that creates MCP (Model Context Protocol) servers from OpenAPI/Swagger specifications, enabling AI assistants to interact with your APIs. Create your own branded and customized MCPs for specific APIs or services.

This project creates a dynamic MCP server that transforms OpenAPI specifications into MCP tools. It enables seamless integration of REST APIs with AI assistants via the Model Context Protocol, turning any API into an AI-accessible tool.

  • Dynamic loading of OpenAPI specs from file or HTTP/HTTPS URLs
  • Support for OpenAPI Overlays loaded from files or HTTP/HTTPS URLs
  • Customizable mapping of OpenAPI operations to MCP tools
  • Advanced filtering of operations using glob patterns for both operationId and URL paths
  • Comprehensive parameter handling with format preservation and location metadata
  • API authentication handling

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Api To MCP Server

{
  "mcpServers": {
    "api-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@tyk-technologies/api-to-mcp@latest",
        "--spec",
        "https://petstore3.swagger.io/api/v3/openapi.json"
      ],
      "enabled": true
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GOOGLE_API_KEYCredential the server authenticates with.Yes
OPENAPI_SPEC_PATHFilesystem location the server is allowed to use.Optional
TARGET_API_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Api To MCP to Installation.”

Frequently asked questions

Generates MCP tool code from OpenAPI specs Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.