Mcp Swagger Server
@zaizaizhao
About Mcp Swagger Server
MCP Swagger Server 将任何符合 OpenAPI/Swagger 规范的 REST API 转换为 Model Context Protocol (MCP) 格式,让 AI 助手能够理解和调用您的 API。
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Mcp Swagger Server?
Mcp Swagger Server (MSS) is a tool that converts OpenAPI/Swagger specifications into tools compatible with the Model Context Protocol (MCP). It enables AI assistants to call REST APIs by automatically generating MCP tool definitions from an OpenAPI document. The tool is intended for developers who want to expose existing REST APIs to MCP‑based AI clients without manual integration.
How to use Mcp Swagger Server?
Install via npm: npm i mcp-swagger-server -g. Run the interactive CLI with mss, or use command-line flags for non‑interactive startup, e.g., mss --openapi <url> --transport stdio. Configuration can be provided via CLI options, a .env file, or a JSON config file (--config).
Key features of Mcp Swagger Server
- Zero‑configuration conversion from OpenAPI to MCP tools
- Interactive CLI for step‑by‑step setup
- Supports SSE, Streamable, and Stdio transports
- Bearer token authentication for secured APIs
- Operation filtering by HTTP method, path, operation ID, and parameters
Use cases of Mcp Swagger Server
- Connecting a Swagger‑defined REST API to Claude Desktop as a set of MCP tools
- Converting a private API with Bearer token authentication for use with MCP clients
- Rapidly prototyping AI‑tool interfaces from existing OpenAPI 2.0/3.x documents
FAQ from Mcp Swagger Server
What are the runtime requirements?
Node.js ≥ 20.0.0 and pnpm ≥ 8.0.0 (recommended).
What transport protocols are supported?
Stdio, SSE, and Streamable. Interactive mode does not support STDIO; use mss --openapi ... --transport stdio for STDIO.
How do I authenticate API calls with Bearer token?
Use --auth-type bearer and either --bearer-token (direct token) or --bearer-env (environment variable). Tokens can also be placed in a .env file.
Can I filter which operations are exposed as tools?
Yes. Use flags such as --operation-filter-methods, --operation-filter-paths, --operation-filter-operation-ids, and --operation-filter-parameters to limit the generated tools.
Does the tool support OpenAPI 2.0 (Swagger)?
Yes. Swagger 2.0 documents are automatically converted to OpenAPI 3.x at startup, including mapping of host/basePath.
More Other MCP servers
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Peekaboo MCP – lightning-fast macOS screenshots for AI agents
steipetePeekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Comments