FastMCP
Dynamically exposes REST endpoints as Model Context Protocol tools by reading a service's OpenAPI document.
This server acts as a Model Context Protocol (MCP) gateway, automatically converting OpenAPI-defined REST service endpoints into callable MCP tools. It operates by fetching the OpenAPI specification from a target service (e.g., Spring Boot's /v3/api-docs), mapping each operationId to a distinct MCP tool, and then constructing and invoking HTTP requests to the original service when a tool is called. This streamlines the integration of existing REST APIs into MCP-driven workflows, supporting configurable base URLs, context paths, and automatic injection of required HTTP headers like x-group and x-hospital.
Características Principales
01Automatic conversion of REST operationIds to MCP tools with input schemas
020 GitHub stars
03Configurable base URL and OpenAPI path for target services
04Dynamic OpenAPI specification parsing and tool generation
05Built-in maintenance tool to reload OpenAPI specifications
06Support for injecting custom HTTP headers (e.g., x-group, x-hospital)
Casos de Uso
01Automating interactions with any OpenAPI-compliant API through a standardized MCP interface
02Exposing EMPI Java/Spring API endpoints as MCP tools for simplified access
03Integrating existing OpenAPI-documented REST services into MCP ecosystems