mcp-openapi-proxy
mcp-openapi-proxy is a Python package that acts as a Model Context Protocol (MCP) server to expose REST APIs as MCP tools, facilitating easy integration into MCP workflows. It supports OpenAPI specifications and offers flexibility in tool configuration and authentication.
What is the purpose of mcp-openapi-proxy?
The mcp-openapi-proxy is designed to expose REST APIs defined by OpenAPI specifications as MCP tools, facilitating their integration into MCP-based workflows.
What are the operational modes available in mcp-openapi-proxy?
The package offers two modes: Low-Level Mode, which registers all valid API endpoints as tools, and FastMCP Mode, which exposes a predefined set of tools based on static configurations.
How does mcp-openapi-proxy handle authentication?
It supports custom authentication via JMESPath expressions and uses Bearer
by default for API_KEY
in the Authorization header, which can be customized for different APIs.
Can mcp-openapi-proxy work with OpenAPI v2 specifications?
While primarily designed for OpenAPI v3, there is potential support for OpenAPI v2 specifications.
How can I enable FastMCP mode?
FastMCP mode can be enabled by setting the environment variable OPENAPI_SIMPLE_MODE=true
.