mcp-swagger

mcp-swagger

0

The MCP Swagger Server is a tool designed to load and access Swagger/OpenAPI documentation, enabling API requests based on its specification. It supports authentication, caches specifications, and validates requests, making it a robust choice for API management.

MCP Swagger Server

An MCP server providing access to Swagger/OpenAPI documentation facilitating API requests based on the specification.

Features

  • Loads Swagger documentation from a URL
  • Makes API requests based on the Swagger spec
  • Supports authentication via API key
  • Caches Swagger spec for performance
  • Validates requests against the Swagger spec

Configuration

The server requires the following environment variables:

  • SWAGGER_URL: URL to the Swagger specification (required)
  • AUTH_KEY: Authentication key for API requests (optional)

Available Resources and Tools

Resource: swagger-doc

  • URI: swagger://documentation
  • Description: Get the full Swagger documentation

Tool: makeRequest

  • Parameters: path, method, parameters, body

Smithery.ai Deployment

This server is configured for deployment on Smithery.ai with a required Dockerfile and smithery.yaml configuration file.