swagger-mcp
Verified Safeby lzp0301
Overview
Provides a Model Context Protocol (MCP) server to search and retrieve detailed information about API endpoints from a Swagger/OpenAPI specification.
Installation
npm startEnvironment Variables
- SWAGGER_URL
Security Notes
The server fetches a Swagger/OpenAPI specification from a URL specified by an environment variable (SWAGGER_URL). While the code itself uses input validation (zod) and includes a recursion guard (depth > 5) in schema resolution, the primary security consideration is ensuring the SWAGGER_URL points to a trusted and valid source to prevent fetching malformed or malicious data. No 'eval' or direct command injection points from user input are apparent.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
mcp-openapi-server
A Model Context Protocol (MCP) server that exposes OpenAPI endpoints as MCP tools, along with optional support for MCP prompts and resources, enabling Large Language Models to interact with REST APIs.
mcp-openapi-schema-explorer
Provides token-efficient, on-demand access to OpenAPI and Swagger specifications for MCP clients (like LLMs) by exposing parts of the specification via resource templates.