Generates categorized API test cases, validates and compares Swagger/OpenAPI specs, and exports tests for common tools and formats.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Swagger Testcase MCP.
fetch_swaggerLoad and parse a spec from URL, internal URL, or local file (with optional auth)
analyze_endpointGet detailed info about a specific endpoint
generate_test_casesGenerate test cases for one endpoint (with optional config)
generate_test_cases_batchGenerate test cases for multiple endpoints (filter by tag/method/path prefix)
export_test_casesExport test cases and save to file (markdown, json, csv, allure_csv, gherkin, postman, k6, pytest, testrail_csv, testrail_csv_text)
compare_specsCompare two spec versions, detect breaking changes
MCP server for API testing: generates test cases, validates specs, compares versions, and creates mock data from Swagger/OpenAPI specifications.
Feed it your API spec URL โ get structured, categorized test cases (positive, negative, boundary, auth, security, idempotency, pagination) ready for manual testing or import into your TMS.
This tool automates the baseline: point it at any Swagger/OpenAPI spec (public, internal, localhost), get categorized test cases in seconds, and save ready-to-import files for your TMS or test runner. You focus on business logic and exploratory testing โ the tool handles the rest.
| Category | What it covers |
|---|---|
| โ Positive | Happy path with required fields, happy path with all fields |
| โ Negative | Missing required fields, invalid types, empty strings, nulls, invalid enums, empty body |
| ๐ Boundary | Min/max values for numbers, minLength/maxLength for strings |
| ๐ Auth | No token, invalid token, insufficient permissions |
| ๐ผ Business Logic | 404 for non-existent resources, 409 conflicts, 429 rate limiting, concurrency |
| ๐ก๏ธ Security | XSS, SQL injection, path traversal, command injection, CRLF injection |
| ๐ Idempotency | Repeated PUT/DELETE, POST with Idempotency-Key |
| ๐ Pagination | First/last page, negative offset, zero limit, invalid sort fields |
Or run directly with npx:
Add to claude_desktop_config.json:
Add to .cursor/mcp.json:
Add to .vscode/mcp.json:
Add to Cline MCP settings:
Go to Settings โ Tools โ AI Assistant โ MCP Servers โ Add, select stdio and fill in:
npx-y swagger-testcase-mcpOr add manually to the MCP config file:
Add to ~/.windsurf/mcp.json:
Here is what the generated output looks like (markdown export):
The generator produces test cases across 8 categories (positive, negative, boundary, auth, business logic, security, idempotency, pagination) -- the example above shows just a small subset. Use generate_test_cases_batch to cover an entire API at once.
For detailed examples of every tool and workflow, see EXAMPLES.md.
| Tool | Description |
|---|---|
fetch_swagger | Load and parse a spec from URL, internal URL, or local file (with optional auth) |
analyze_endpoint | Get detailed info about a specific endpoint |
generate_test_cases | Generate test cases for one endpoint (with optional config) |
generate_test_cases_batch | Generate test cases for multiple endpoints (filter by tag/method/path prefix) |
export_test_cases | Export test cases and save to file (markdown, json, csv, allure_csv, gherkin, postman, k6, pytest, testrail_csv, testrail_csv_text) |
compare_specs | Compare two spec versions, detect breaking changes |
validate_spec | Validate spec quality (score 0-100, 12 rules) |
generate_mock_data | Generate realistic mock data from schemas |
suggest_missing_tests | Analyze test coverage and suggest improvements |
clear_cache | Clear cached specs and/or test cases |
All generation tools accept an optional config parameter:
| Parameter | Description |
|---|---|
categories | Which test categories to generate: positive, negative, boundary, auth, business_logic, security, idempotency, pagination. Default: all |
priorityFilter | Only generate cases with these priorities: high, medium, low. Default: all |
maxFieldsForNegative | Max number of fields for invalid-type negative cases. Default: 10 |
locale | Language for test case text: en, ru. Default: en |
customPreconditions | Additional preconditions added to all generated cases |
skipDeprecated | Skip deprecated endpoints in batch generation. Default: false |
All exports are automatically saved to the working directory. The filename is generated from the endpoint and format:
You can also specify a custom path:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/eyaushev-swagger-testcase-mcp)<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>