OpenAPI Bridge

•
2
•

Integrate any OpenAPI or Swagger API into Model Context Protocol tools, enabling AI assistants to directly interact with API endpoints over stdio or SSE.

The OpenAPI Bridge transforms any OpenAPI or Swagger API specification into a set of Model Context Protocol (MCP) tools. By pointing it to an API spec (either a URL or a local file), each endpoint becomes a distinct MCP tool, allowing AI assistants like Claude Desktop or other MCP clients to seamlessly make direct calls to the underlying API. The bridge handles the construction and execution of real HTTP requests, substituting parameters, attaching query strings, injecting authentication, and sending the request body, ultimately returning the API's response directly to the AI model. This tool effectively bridges the gap between AI and diverse web services, making API functionalities accessible to intelligent agents.

Key Features

01Generates one MCP tool per API endpoint with JSON Schema inputs derived from parameters and request bodies.
02Allows filtering of exposed endpoints using include or exclude tags.
03Ensures secure credential handling via environment variables, preventing secrets in code.
04Supports both OpenAPI 3.x and Swagger 2.0 specifications.
05Provides both stdio and Server-Sent Events (SSE) transports for MCP clients.
062 GitHub stars

Use Cases

01Provide AI models with direct, structured access to specific API functionalities defined in OpenAPI specs.
02Connect existing REST APIs to AI assistants and Model Context Protocol clients.
03Rapidly deploy local or remote MCP servers from an OpenAPI definition for AI tool integration.