Skip to main content
Glama

Swagger MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_KEYNoAPI key for authentication (used as Bearer token)
API_BASE_URLYesBase URL for your API (e.g., https://api.example.com)
API_DOCS_URLNoDirect URL to Swagger/OpenAPI JSON/YAML (optional, will be auto-discovered)
API_PASSWORDNoPassword for basic authentication
API_USERNAMENoUsername for basic authentication

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
fetch_swagger_info

Fetch Swagger/OpenAPI documentation to discover available API endpoints

list_endpoints

List all available API endpoints after fetching Swagger documentation

get_endpoint_details

Get detailed information about a specific API endpoint

execute_api_request

Execute an API request to a specific endpoint

validate_api_response

Validate an API response against the schema from Swagger documentation

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amrsa1/swagger-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server