Provides containerization support for running the MCP server in Docker environments with configurable API endpoints and authentication
Generates MCP tools dynamically from Swagger/OpenAPI specifications, enabling interaction with any REST API documented with OpenAPI standards through automatically created endpoints with parameter validation and authentication support
MCP Swagger Server
Generate MCP (Model Context Protocol) servers from Swagger/OpenAPI specifications with flexible filtering.
Features
- Dynamic Tool Generation: Automatically creates MCP tools from OpenAPI endpoints
- Flexible Filtering: Control exposed endpoints via HTTP methods, paths, tags, and operation IDs
- Authentication: Built-in Bearer token support
- Type Safety: Automatic parameter validation and conversion
- FastMCP Integration: Built on the FastMCP framework for reliable MCP server implementation
Installation
Quick Start
Filtering Options
Control which endpoints are exposed:
- HTTP Methods:
--methods get post put delete
- Path Patterns:
--paths "/api/*" --exclude-paths "/admin/*"
- Tags:
--tags public documents --exclude-tags internal
- Operation IDs:
--operation-ids list_docs get_doc --exclude-operation-ids delete_all
Examples
Configuration
Command Line Options
--host
: Server host (default: localhost)--port
: Server port (default: 8080)--transport
: Transport protocol:sse
orstreamable-http
(default)--timeout
: Request timeout in seconds (default: 30)--dry-run
: Preview tools without starting server
Environment Variables
API_BASE_URL
: Default base URL for the APIAPI_TOKEN
: API token for authentication
Docker
Architecture
config/
: CLI parsing and settingsfilters/
: Endpoint filtering logicgenerators/
: MCP tool generationparsers/
: OpenAPI spec parsingapi_client/
: HTTP client and authmodels/
: Data modelsutils/
: Utilities and logging
How It Works
- Load OpenAPI/Swagger specification (file or URL)
- Apply filters to select endpoints
- Generate FastMCP tools with parameter validation and auth
- Start MCP server with generated tools
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Automatically generates MCP servers from OpenAPI/Swagger specifications, enabling users to interact with any REST API through natural language with flexible endpoint filtering and authentication support.