Skip to main content

Convert any REST API (OpenAPI/Swagger) into MCP-compatible tools instantly

Project description

API-to-MCP Converter 🔄

Convert any REST API into MCP-compatible tools instantly. Provide an OpenAPI/Swagger spec and get ready-to-use MCP tool definitions.

Why

Every company has REST APIs. AI agents need MCP tools. This bridge converts one into the other automatically — no coding required.

Features

  • Instant Conversion — OpenAPI 3.x and Swagger 2.0 support
  • All Methods — GET, POST, PUT, PATCH, DELETE
  • Parameter Extraction — Query, path, body parameters auto-detected
  • Persistent Storage — Converted APIs saved locally for reuse
  • Community Sharing — Share conversions for others to discover
  • Search — Find previously converted APIs

Installation

pip install api-to-mcp-converter

Usage

{
  "mcpServers": {
    "api-converter": {
      "command": "uvx",
      "args": ["api-to-mcp-converter"]
    }
  }
}

Tools

Tool Description
convert_api Convert an OpenAPI spec URL to MCP tools
list_converted_apis List all converted APIs
get_api_tools Get MCP tool definitions for an API
search_converted_apis Search converted APIs
share_conversion Share a conversion with the community

Examples

"Convert the Petstore API: https://petstore3.swagger.io/api/v3/openapi.json"
"What APIs have I converted?"
"Show me the tools for the petstore API"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

api_to_mcp_converter-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

api_to_mcp_converter-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file api_to_mcp_converter-0.1.0.tar.gz.

File metadata

  • Download URL: api_to_mcp_converter-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for api_to_mcp_converter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a49e50c1d1b38846ff2382873785a2edee745cf8fd1130e6dcfef74d3b74a29c
MD5 1ac597cc27a1528fc82a43a1d9fb7e82
BLAKE2b-256 0c12fd804c668fdeb64c832535b0ab42db07bb9dbd08c08c6939c6ebfe746afc

See more details on using hashes here.

File details

Details for the file api_to_mcp_converter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for api_to_mcp_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2de460177f2066f3ae5cfa27a2b59cb14dec8fd27c1e87512d9ad67b2d61a6c
MD5 dc80dc33ff9c52584dd649af353ee86c
BLAKE2b-256 6f918f6324daab6d8e6559bfb3c91932d1a55f6fdf584d684ec73a034643bad8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page