Swagger Testcase MCP logo

Swagger Testcase MCP

by eyaushev

Generates categorized API test cases, validates and compares OpenAPI specs, creates mock data, and exports results for test tools.

Install Swagger Testcase MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "eyaushev-swagger-testcase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "swagger-testcase-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio eyaushev-swagger-testcase-mcp -- npx -y swagger-testcase-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 10 tools correctly ().

Overview

eyaushev/swagger-testcase-mcp MCP server loads Swagger 2.0 or OpenAPI 3.x specifications from URLs or local files and exposes API testing workflows through MCP. It analyzes endpoints, generates categorized cases, checks specification quality, compares versions, creates mock data, and exports cases to formats including Postman, k6, pytest, Gherkin, and TestRail CSV. Reach for it when you need a repeatable baseline of positive, negative, boundary, authorization, security, idempotency, pagination, or business-logic tests from an API description.

Use cases

  • Generate endpoint test cases from an OpenAPI document
  • Export cases for Postman, pytest, k6, Gherkin, or TestRail
  • Compare specification versions for breaking API changes
  • Validate specification quality and identify documentation gaps
  • Review generated coverage and create mock request or response data

Key features

  • Parses Swagger 2.0 and OpenAPI 3.x JSON or YAML
  • Generates eight categories of API test cases
  • Processes individual endpoints or filtered endpoint batches
  • Exports cases to Markdown, Postman, k6, pytest, Gherkin, and TestRail formats
  • Compares specs and detects breaking changes
  • Creates schema-based mock data and coverage suggestions

Tools10

What Swagger Testcase MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

28/28 checks healthy over the last 118d

What it can do

From the 10 tools this server returned when we ran it.

Makes network requests · 3Read-only tools · 10
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age232 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · swagger-testcase-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads39Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed10Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Swagger Testcase MCP works

What eyaushev/swagger-testcase-mcp MCP server does

eyaushev/swagger-testcase-mcp MCP server turns Swagger and OpenAPI descriptions into structured QA test cases. It supports Swagger 2.0 and OpenAPI 3.x documents in JSON or YAML form. Specifications can describe public services, internal APIs reachable through a user machine or VPN, localhost files, or protected endpoints accessed with a supplied authentication header.

Generated cases cover positive and negative inputs, boundary constraints, authorization behavior, business-logic responses, security injection scenarios, idempotency, and pagination or sorting. The exact cases depend on endpoint parameters, schemas, constraints, response codes, and security definitions in the loaded specification. Generation can be configured by category and priority, with options such as locale, custom preconditions, maximum fields for negative tests, and skipping deprecated endpoints.

How it works

Use fetch_swagger to load and parse a specification. After loading, analyze_endpoint reports an endpoint’s parameters, request body, responses, and security requirements. generate_test_cases creates cases for one endpoint, while generate_test_cases_batch processes multiple endpoints and can filter by tag, HTTP method, path prefix, or deprecated status.

Generated results remain available for later operations. export_test_cases writes them to the working directory in Markdown, JSON, CSV, Allure CSV, Gherkin, Postman, k6, pytest, or either of the supported TestRail CSV templates. suggest_missing_tests reviews coverage of response codes, parameters, and boundary conditions, then returns prioritized suggestions. clear_cache removes cached specifications and/or generated cases when a source document changes.

Setup and configuration

Install the package globally with npm install -g swagger-testcase-mcp, or run it without a global install using npx swagger-testcase-mcp. The package requires Node.js 18 or newer and runs as a stdio MCP server.

MCP client configuration uses the command npx with arguments -y swagger-testcase-mcp. The README provides configurations for Claude Desktop, Cursor, VS Code with Claude Code, VS Code with Cline, JetBrains IDEs, and Windsurf. When loading a protected specification, pass the applicable auth_header to fetch_swagger; the supported examples include Bearer, Basic, and API-key authentication.

Tools and capabilities

  • fetch_swagger: Load a specification from a URL or local path and parse it.
  • analyze_endpoint: Inspect one endpoint’s inputs, body, responses, and security.
  • generate_test_cases: Create configurable cases for one endpoint.
  • generate_test_cases_batch: Generate cases across selected endpoints.
  • export_test_cases: Save generated cases in testing and documentation formats.
  • compare_specs: Identify endpoint changes, schema changes, and breaking changes between two specifications.
  • validate_spec: Check specification quality and return a score with findings such as missing descriptions, orphaned schemas, naming inconsistencies, and missing error responses.
  • generate_mock_data: Produce sample data from request or response schemas, with locale support.
  • suggest_missing_tests: Find coverage gaps and recommend additional tests.
  • clear_cache: Remove cached specs or generated test cases.

Limitations and notes

eyaushev/swagger-testcase-mcp MCP server generates a baseline from information present in the specification; it does not replace business-logic or exploratory testing. Security and business-logic cases are derived from documented endpoint details and common scenario categories, so undocumented behavior may require manual additions.

Ensure that URLs, local paths, VPN access, and authentication headers are available from the machine running the MCP server. Use clear_cache after updating a specification if cached data is no longer appropriate.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Swagger Testcase MCP

eyaushev/swagger-testcase-mcp is an MCP server that connects AI clients to Swagger 2.0 and OpenAPI 3.x specifications. Its main tools fetch and analyze specs, generate categorized API test cases, export them for tools such as Postman and pytest, compare spec versions, validate quality, create mock data, and identify missing test coverage.

Install it with npm or run it through npx. Use `npm install -g swagger-testcase-mcp` for a global installation, or start it with `npx swagger-testcase-mcp`; the README requires Node.js 18 or newer.

Yes, it works with Cursor through a stdio entry in `.cursor/mcp.json`. Configure the server with command `npx` and arguments `-y swagger-testcase-mcp`.

Yes, it can load internal or authentication-protected specifications. Use `fetch_swagger` with an internal URL reachable from the running machine or pass an `auth_header` for Bearer, Basic, or API-key authentication.

It exports generated cases as Markdown, JSON, CSV, Allure CSV, Gherkin, Postman, k6, pytest, and two TestRail CSV templates. Exports are saved to the working directory automatically.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSwagger Testcase MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/eyaushev-swagger-testcase-mcp?style=directory)](https://allmcps.com/mcp/eyaushev-swagger-testcase-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/eyaushev-swagger-testcase-mcp"><img src="https://allmcps.com/api/badge/eyaushev-swagger-testcase-mcp?style=directory" alt="Swagger Testcase MCP on AllMCPs" /></a>