FastMCP
0
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.
주요 기능
- Automatic conversion of REST operationIds to MCP tools with input schemas
- 0 GitHub stars
- Configurable base URL and OpenAPI path for target services
- Dynamic OpenAPI specification parsing and tool generation
- Built-in maintenance tool to reload OpenAPI specifications
- Support for injecting custom HTTP headers (e.g., x-group, x-hospital)
사용 사례
- Automating interactions with any OpenAPI-compliant API through a standardized MCP interface
- Exposing EMPI Java/Spring API endpoints as MCP tools for simplified access
- Integrating existing OpenAPI-documented REST services into MCP ecosystems