Explore and interact with Swagger/OpenAPI specifications, allowing for browsing endpoints and retrieving details on API operations.
{{ message }}
gulbaki / swagger-mcp-server Public
13 stars2 forksBranches Tags Activity
Star
Notifications
main
BranchesTags
Go to file
Code
Name | Name | Last commit message | Last commit date |
---|---|---|---|
3 Commits | |||
src | src | ||
.gitignore | .gitignore | ||
package-lock.json | package-lock.json | ||
package.json | package.json | ||
readme.md | readme.md | ||
tsconfig.json | tsconfig.json | ||
View all files |
A Model Context Protocol (MCP) server that allows LLMs to explore and interact with Swagger/OpenAPI specifications. This server provides tools and resources for loading API specifications, browsing endpoints, and getting detailed information about API operations.
npm install
npm run build
load_api
Load an OpenAPI/Swagger specification into the server.
Parameters:
apiId
(string): Unique identifier for this APIsource
(string): URL or file path to the OpenAPI/Swagger specificationExample:
{ "name": "load_api", "arguments": { "apiId": "petstore", "source": "https://petstore.swagger.io/v2/swagger.json" } }
get_endpoint_details
Get detailed information about a specific API endpoint.
Parameters:
apiId
(string): ID of the loaded APImethod
(string): HTTP method (GET, POST, etc.)path
(string): API endpoint pathnatural
(boolean, optional): If true, returns a human-readable summaryExample:
{ "name": "get_endpoint_details", "arguments": { "apiId": "petstore", "method": "GET", "path": "/pet/{petId}", "natural": true } }
list_apis
List all currently loaded API specifications.
Parameters: None
search_endpoints
Search for endpoints matching a specific pattern.
Parameters:
apiId
(string): ID of the loaded APIpattern
(string): Search pattern for endpoint paths or descriptionsExample:
{ "name": "search_endpoints", "arguments": { "apiId": "petstore", "pattern": "pet" } }
swagger://{apiId}/load
Get overview information about a loaded API specification.
swagger://{apiId}/endpoints
Get a list of all available endpoints for an API.
swagger://{apiId}/endpoint/{method}/{path}
Get detailed information about a specific endpoint.
To use this server with Claude Desktop, add the following to your claude_desktop_config.json
:
{ "mcpServers": { "swagger-explorer": { "command": "node", "args": ["/path/to/your/swagger-mcp-server/build/index.js"] } } }
Replace /path/to/your/swagger-mcp-server
with the actual path to your project directory.
MIT License
No description, website, or topics provided.
Readme
Activity
13 stars
0 watching
2 forks
Report repository
No releases published
No packages published
Manage AI prompts as local markdown files.
Manage and utilize website content within the DevHub CMS platform
Advanced text-to-image generation using the fal.ai Recraft v3 API.
Connects Blender to Claude AI via the Model Context Protocol (MCP), enabling direct interaction and control for prompt-assisted 3D modeling, scene creation, and manipulation.
Interact with TestRail's core entities such as test cases, runs, and results using a standardized protocol.
A Node.js MCP server example for the OpenWeather API, requiring an API key.
Provides real-time Flutter/Dart documentation and pub.dev package information to AI assistants, supporting all packages on demand.
A natural language interface for cell-cell communication analysis using the Liana framework.
Edit the mcp.json configuration file for tools like AWS Q Developer and Claude Desktop.
Integrates ComfyUI with MCP, allowing the use of custom workflows. Requires a running ComfyUI server.