Developer Tools · AI Chatbot

Swagger MCP

amrsa1/swagger-mcp

A Model Context Protocol (MCP) server that provides tools for exploring and testing APIs through Swagger/OpenAPI documentation. This server automatically detects configuration files from multiple IDEs and provides comprehensive API interaction capabilities.

Install

npx -y swagger-mcp@latest

Client configuration

{
  "mcpServers": {
    "server": {
      "command": "npx",
      "args": [
        "-y",
        "swagger-mcp@latest"
      ],
      "env": {
        "API_BASE_URL": "<API_BASE_URL>",
        "API_DOCS_URL": "<API_DOCS_URL>",
        "API_KEY": "<API_KEY>"
      }
    }
  }
}

Environment variables

API_BASE_URLAPI_DOCS_URLAPI_KEYAPI_USERNAMEAPI_PASSWORD
Author
@amrsa1
Category
Developer Tools, AI Chatbot
License
MIT
Updated
Oct 6, 2026

Features

  • Fetch and parse Swagger/OpenAPI documentation from any URL

  • Test API endpoints directly through the MCP interface

  • Explore API schemas and understand data structures

  • Multi-IDE support - automatically detects config from VS Code, Cursor, Windsurf, and more

  • Flexible authentication - supports API keys, basic auth, and bearer tokens

  • Auto-discovery - can find documentation URLs automatically

Tools (5)

  • fetch_swagger_info

    Fetches and parses Swagger/OpenAPI documentation from a given URL to discover available API endpoints.

  • list_endpoints

    Lists all available API endpoints after fetching Swagger documentation, showing methods, paths, and summaries.

  • get_endpoint_details

    Gets detailed information about a specific API endpoint including parameters, request/response schemas, and examples.

  • execute_api_request

    Executes an API request to a specific endpoint with authentication, parameters, headers, and body handling.

  • validate_api_response

    Validates an API response against the schema definitions from Swagger documentation to ensure compliance.

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux
Windsurf logo

Windsurf

Desktop · Freemium · Proprietary

The first agentic IDE. The Windsurf editor truly merges how developers and AI work together.

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

Desktop · Freemium · MIT

VS Code integrates MCP with GitHub Copilot through agent mode, allowing direct interaction with MCP-provided tools in your agentic coding workflow. Configure servers in Claude Desktop, workspace, or user settings, with guided MCP installation and secure handling of secrets in input variables to avoid leaking hardcoded keys.

WindowsMacOSLinuxWeb

Related MCP servers

More servers
Playwright logo

Playwright

microsoft/playwright

72.2k

Playwright is a framework for web automation and testing. It drives Chromium, Firefox, and WebKit with a single API — in your tests, in your scripts, and as a tool for AI agents.

Developer Tools
repomix logo

repomix

yamadashy/repomix

15.2k

Repomix is a tool that packs a codebase into an AI-friendly format, supporting local and remote repository processing and providing code compression, security checks and multiple output formats.

Developer Tools
UI-TARS-desktop logo

UI-TARS-desktop

bytedance/UI-TARS-desktop

12.9k

TARS is ByteDance's multimodal AI agent stack, shipping two projects: Agent TARS (a CLI and Web UI agent built on MCP) and UI-TARS-desktop (a desktop GUI agent).

Developer Tools
blender logo

blender

ahujasid/blender-mcp

10.6k

formerly blender-mcp — the PyPI package is now mcp-for-blender. Existing setups keep working; no config change is required. Read more.

Developer Tools
Playwright Browser Automation logo

Playwright Browser Automation

microsoft/playwright-mcp

9.2k

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Developer Tools
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Developer Tools