Swagger Explorer MCP
by johnneerdael
Swagger Explorer MCP
A Management Control Plane (MCP) server for exploring and analyzing Swagger/OpenAPI specifications through Claude.
Quick Start
Install and run globally using npx:
Copy
Or install with environment variables:
Copy
Installation for Claude Desktop
- Open Claude Desktop
- Click on Settings (gear icon)
- Select "Tools & Integrations"
- Click "Add MCP Server"
- Enter the following:Copy
- Click "Install"
Usage with Claude
Here are some example interactions with Claude:
Basic Swagger Exploration
Copy
Analyzing Specific Endpoints
Copy
Schema Analysis
Copy
Features
- Authentication Support
- Bearer token authentication
- Configurable through environment variables
- Custom Response Formatting
- Minimal format: Removes null/empty values
- Detailed format: Includes metadata and timestamps
- Raw format: Unmodified response
- Schema Analysis
- Detailed property exploration
- Response schema analysis
- Schema relationships
- API Exploration
- Path listing
- Method filtering
- Response format analysis
Configuration
Environment Variables:
BASE_URL
: Base path for the API (default: '')AUTH_TOKEN
: Bearer token for authenticationPORT
: Server port (default: 3000)SWAGGER_URL
: Default Swagger documentation URL
API Endpoints
Explore API
Copy
Get Schema Details
Copy
Get Response Schemas
Copy
Response Formats
Minimal Format
Copy
Detailed Format
Copy
Common Use Cases
- API Documentation ReviewCopy
- Schema ValidationCopy
- Response AnalysisCopy
- Integration PlanningCopy
Troubleshooting
- Connection Issues
- Ensure the Swagger URL is accessible
- Check if authentication token is correct
- Verify port is not in use
- Authorization Errors
- Verify AUTH_TOKEN is set correctly
- Ensure bearer token is included in requests
- Schema Not Found
- Check if schema name is exact match
- Verify Swagger spec is loaded correctly
Security Notes
- The MCP requires authentication if AUTH_TOKEN is set
- All requests are logged for debugging
- Sensitive information is not cached
- Rate limiting is applied to prevent abuse
Development
To contribute or modify:
- Clone the repository
- Install dependencies:Copy
- Build:Copy
- Run locally:Copy
License
MIT License - See LICENSE file for details
This server cannot be installed
A Management Control Plane server that allows users to explore and analyze Swagger/OpenAPI specifications, providing features such as endpoint exploration, schema analysis, and customizable response formatting, with support for authentication and integration with tools like Claude.