Swagger MCP Server

Repository: `https://github.com/rl58xz/swagger-mcp`

Local serverstdio

What is the Swagger MCP server?

Most developer tooling work still happens through a UI a human drives. Swagger MCP server moves it into the conversation instead. Repository: https://github.com/rl58xz/swagger-mcp.

The short version

An MCP server built on Swagger docs, used in coding tools to query API definitions, parameters, and response structure overviews, so Agents / developers can quickly align on endpoint details.

The tools it exposes

The server publishes 2 tools. What each one is for:

  • Tool — swagger_list_operations
  • Args — json

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Swagger's toolset — Tool, Args — is a fair guide to whether it matches your workflow. It is maintained by renliang1000; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Swagger's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Toolswagger_list_operations
Argsjson

How to install the Swagger MCP server

{
  "mcpServers": {
    "swagger-mcp-server-z": {
      "command": "npx",
      "args": [
        "-y",
        "swagger-mcp-server-z",
        "--swaggerUrls=https://api.example.com/api/doc/swagger.json,https://api2.example.com/api/doc/swagger.json",
        "--swaggerUser=demo_user",
        "--swaggerPassword=demo_password"
      ],
      "env": {}
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Swagger to Tool.
  • Use Swagger to Args.

Frequently asked questions

It connects Swagger to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Tool, Args) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Swagger directly.