mcp-swagger

Convert Swagger/OpenAPI specs into runnable MCP server packages.

6|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/jnotsknab/mux-swarm --skill mcp-swagger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-swagger
Source: https://github.com/jnotsknab/mux-swarm/tree/main/Skills/bundled-docker/mcp-swagger
Command: npx skills add https://github.com/jnotsknab/mux-swarm --skill mcp-swagger

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, pyyaml, prance, jinja2, typer, rich, and includes scripts (resource) components.

What problem does it solve?

MCP Swagger CLI generates MCP servers from Swagger/OpenAPI specs, eliminating boilerplate coding and speeding up integration of APIs into agent workflows.

Core Features & Use Cases

  • Generate MCP servers from Swagger specs into runnable Python packages
  • Supports local or remote specs (JSON/YAML) with optional validation and operation filtering
  • Lightweight, Docker-friendly workflow with configurable transport, base URL, and auth headers

Quick Start

Run the CLI to generate a runnable MCP server from your OpenAPI spec and install it locally.

Frequently Asked Questions about mcp-swagger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a Swagger or OpenAPI spec into an MCP server?

To turn a Swagger or OpenAPI spec into an MCP server, you use a CLI to map API operations to MCP tools and schemas to resources, generating a ready-to-install Python package. This eliminates manual boilerplate coding for agent integration.

Can I generate an MCP server from a remote OpenAPI YAML file?

Yes, you can generate an MCP server from remote OpenAPI YAML or JSON files. The CLI supports loading specifications from local paths or remote URLs and includes optional validation during the parsing process.

Does the generated MCP server support Docker deployment?

Yes, the generated MCP server supports a Docker-friendly workflow. After generating the Python package from your OpenAPI spec, you can configure transport, base URL, and authentication headers for containerized deployment.

How do I filter specific API operations when creating an MCP server?

You can filter specific API operations when creating an MCP server by using tags or path prefixes. This allows you to limit the generated MCP tools and resources to only the relevant endpoints from the OpenAPI specification.

What is the best way to expose a REST API to an AI agent workflow?

The best way to expose a REST API to an AI agent workflow is generating an MCP server from its OpenAPI spec. This directly maps API operations to callable MCP tools, speeding up integration without writing boilerplate code.

Do I need Python dependencies to run the generated MCP server?

Yes, the generated MCP server requires Python dependencies. The CLI itself relies on httpx, pyyaml, prance, jinja2, typer, and rich to parse specs and render boilerplate code for the runnable server project.