mcp-openapi-server
95
The OpenAPI MCP Server exposes OpenAPI-defined REST API endpoints as MCP resources, facilitating discovery and interaction by large language models. It supports both Stdio and HTTP transports, providing flexibility for integration with different clients and environments.
OpenAPI MCP Server
- An MCP server that enables interaction with REST APIs using the OpenAPI specification.
- Supports Stdio Transport for direct integration and Streamable HTTP Transport for web client use.
Quick Start
- Stdio Transport: Configure Claude Desktop for integration without cloning the repository.
- HTTP Transport: Run the server with
npx
and connect via HTTP requests.
Transport Types
- Stdio Transport: Best for integrating with systems like Claude Desktop.
- Streamable HTTP Transport: Accessible over HTTP; supports session management and server events.
Configuration Options
- Environment variables and command line arguments available for custom setup.
OpenAPI Specification Loading
- Multiple methods supported: URL, Local File, Standard Input, Inline Specification.
- JSON and YAML formats are supported.
Tool Loading & Filtering
- Options to control loaded API endpoints using tags and flags.
Security Considerations
- Origin header validation and default localhost binding for security.
Debugging
- Options are provided for debugging with stdio and HTTP transports.
For Developers
- Development tools and workflow instructions for building and contributing.