MCP Server for Turning OpenAPI Specifications into a MCP Resource
8 hours ago
- #REST APIs
- #MCP Server
- #OpenAPI
- The MCP server exposes OpenAPI endpoints as MCP resources, enabling Large Language Models to interact with REST APIs.
- It can be used as a CLI tool or a library for custom implementations in Node.js applications.
- Supports two transport methods: Stdio Transport for AI systems and Streamable HTTP Transport for web clients.
- Configuration can be done via environment variables or command-line arguments, including API base URL and OpenAPI spec path.
- The server supports multiple methods for loading OpenAPI specifications: from a URL, local file, stdin, or inline content.
- Tools loading can be controlled with flags to filter by tool IDs, tags, resource paths, or HTTP methods.
- AuthProvider interface allows for dynamic authentication handling, including token refresh and error recovery.
- The server fully resolves OpenAPI schema references and merges parameters and request bodies into unified input schemas.
- Includes development and contribution guidelines, with commands for building, linting, and type checking.
- Common questions cover tool definitions, CLI vs library usage, authentication, transport methods, and schema handling.