Swagger Explorer
FreeNot checkedAnalyzes and interacts with Swagger/OpenAPI specifications to enable dynamic API exploration, endpoint filtering, and schema validation for developers working w
About
Analyzes and interacts with Swagger/OpenAPI specifications to enable dynamic API exploration, endpoint filtering, and schema validation for developers working with unfamiliar APIs.
README
A Management Control Plane (MCP) server for exploring and analyzing Swagger/OpenAPI specifications through Claude.
Quick Start
Install and run globally using npx:
npx -y @johnneerdael/swagger-mcp
Or install with environment variables:
npx -y @johnneerdael/swagger-mcp \
--env BASE_URL=/api \
--env AUTH_TOKEN=your-token \
--env PORT=3000
Installation for Claude Desktop
- Open Claude Desktop
- Click on Settings (gear icon)
- Select "Tools & Integrations"
- Click "Add MCP Server"
- Enter the following:
Name: Swagger Explorer Command: npx -y @johnneerdael/swagger-mcp Arguments: --swagger-url=$SWAGGER_URL - Click "Install"
Usage with Claude
Here are some example interactions with Claude:
Basic Swagger Exploration
Human: Can you explore the Swagger documentation at http://localhost:8080/docs?
Claude: I'll help you explore that Swagger documentation using the Swagger Explorer MCP.
Let me analyze the API endpoints and schemas for you:
[Claude would then use the MCP to fetch and analyze the Swagger documentation]
Analyzing Specific Endpoints
Human: What are the available response schemas for the /pets POST endpoint?
Claude: I'll check the response schemas for that endpoint using the MCP.
[Claude would use the MCP to fetch specific endpoint details]
Schema Analysis
Human: Can you show me the detailed structure of the Pet schema?
Claude: I'll retrieve the detailed schema information using the MCP.
[Claude would use the MCP to analyze the schema structure]
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
curl -X POST http://localhost:3000/api/explore \
-H "Authorization: Bearer your-token" \
-H "Content-Type: application/json" \
-d '{
"url": "http://your-swagger-url",
"options": {
"paths": true,
"schemas": true
}
}'
Get Schema Details
curl -X POST http://localhost:3000/api/schema-details \
-H "Authorization: Bearer your-token" \
-H "Content-Type: application/json" \
-d '{
"url": "http://your-swagger-url",
"schemaName": "Pet"
}'
Get Response Schemas
curl -X POST http://localhost:3000/api/response-schemas \
-H "Authorization: Bearer your-token" \
-H "Content-Type: application/json" \
-d '{
"url": "http://your-swagger-url",
"path": "/pets",
"method": "post"
}'
Response Formats
Minimal Format
{
"status": "success",
"data": {
// Only non-null values
}
}
Detailed Format
{
"status": "success",
"timestamp": "2025-01-29T10:00:00.000Z",
"data": {
// Full response
},
"metadata": {
"version": "1.0",
"format": "detailed"
}
}
Common Use Cases
API Documentation Review
Human: Can you summarize all the available endpoints and their purposes?Schema Validation
Human: What fields are required for creating a new pet?Response Analysis
Human: What are the possible error responses for the login endpoint?Integration Planning
Human: How should I structure my request to create a new order?
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:
npm install - Build:
npm run build - Run locally:
npm start
License
MIT License - See LICENSE file for details
Install Swagger Explorer in Claude Desktop, Claude Code & Cursor
unyly install swagger-explorerInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add swagger-explorer -- npx -y github:johnneerdael/swagger-mcpStep-by-step: how to install Swagger Explorer
FAQ
Is Swagger Explorer MCP free?
Yes, Swagger Explorer MCP is free — one-click install via Unyly at no cost.
Does Swagger Explorer need an API key?
No, Swagger Explorer runs without API keys or environment variables.
Is Swagger Explorer hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Swagger Explorer in Claude Desktop, Claude Code or Cursor?
Open Swagger Explorer on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Swagger Explorer with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
