
API Tester
Converts OpenAPI/Swagger specs and Postman collections into executable test code in TypeScript, JavaScript, or Python with automated test generation and reporting.
Ingests OpenAPI/Swagger specifications and Postman collections to automatically generate executable test cases in TypeScript/Playwright, JavaScript/Jest, and Python/pytest with concurrent execution, load testing, and HTML reporting.
What it does
- Import OpenAPI/Swagger specifications
- Import Postman collections
- Generate TypeScript/Playwright test suites
- Generate JavaScript/Jest test cases
- Generate Python/pytest test files
- Execute concurrent load testing
- Create HTML test reports
Best for
About API Tester
API Tester is a community-built MCP server published by kirti676 that provides AI assistants with tools and capabilities via the Model Context Protocol. Automate API testing with Postman collections or OpenAPI specs. Generate test cases in TypeScript, JavaScript, and Pytho It is categorized under developer tools.
How to install
You can install API Tester in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
API Tester is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
API Tester MCP Server
A comprehensive Model Context Protocol (MCP) server for QA/SDET engineers that provides API testing capabilities with Swagger/OpenAPI and Postman collection support.
π Now available on NPM! Install with
npx @kirti676/api-tester-mcp@latest
π What's New
- β Enhanced Progress Tracking - Real-time progress with completion percentages and ETA
- β Visual Progress Bars - ASCII progress bars with milestone notifications
- β Performance Metrics - Throughput calculations and execution summaries
- β Published on NPM - Install instantly with NPX
- β VS Code Integration - One-click installation buttons
- β Simplified Setup - No manual Python installation required
- β Cross-Platform - Works on Windows, macOS, and Linux
- β
Auto-Updates - Always get the latest version with
@latest
π Getting Started
π¦ Installation
The API Tester MCP server can be used directly with npx without any installation:
npx @kirti676/api-tester-mcp@latest
β‘ Quick Install:
π€ Claude Desktop
Follow the MCP install guide, use the standard config below:
{
"mcpServers": {
"api-tester": {
"command": "npx",
"args": ["@kirti676/api-tester-mcp@latest"]
}
}
}
π Other MCP Clients
The standard configuration works with most MCP clients:
{
"mcpServers": {
"api-tester": {
"command": "npx",
"args": ["@kirti676/api-tester-mcp@latest"]
}
}
}
π₯οΈ Supported Clients:
- π€ Claude Desktop
- π» VS Code with MCP extension
- β‘ Cursor
- π Windsurf
- πͺΏ Goose
- π§ Any other MCP-compatible client
π Python Installation (Alternative)
pip install api-tester-mcp
π» From Source
git clone https://github.com/kirti676/api_tester_mcp.git
cd api_tester_mcp
npm install
β‘ Quick Start
Try the API Tester MCP server immediately:
# Run the server
npx @kirti676/api-tester-mcp@latest
# Check version
npx @kirti676/api-tester-mcp@latest --version
# Get help
npx @kirti676/api-tester-mcp@latest --help
For MCP clients like Claude Desktop, use this configuration:
{
"mcpServers": {
"api-tester": {
"command": "npx",
"args": ["@kirti676/api-tester-mcp@latest"]
}
}
}
β¨ Features
- π₯ Input Support: OpenAPI/Swagger documents, Postman collections, and GraphQL schemas
- π Test Generation: Automatic API and Load test scenario generation
- π Multi-Language Support: Generate tests in TypeScript/Playwright, JavaScript/Jest, Python/pytest, and more
- β‘ Test Execution: Run generated tests with detailed reporting
- π Smart Auth Detection: Automatic environment variable analysis and setup guidance
- π Authentication: Bearer token and API key support via
set_env_vars - π HTML Reports: Beautiful, accessible reports via MCP resources
- π Real-time Progress: Live updates with progress bars and completion percentages
- β±οΈ ETA Calculations: Estimated time to completion for all operations
- π― Milestone Tracking: Special notifications at key progress milestones (25%, 50%, 75%, etc.)
- π Performance Metrics: Throughput calculations and execution summaries
- β Schema Validation: Request body generation from schema examples
- π― Assertions: Per-endpoint status code assertions (2xx, 4xx, 5xx)
- π¦ Project Generation: Complete project scaffolding with dependencies and configuration
π Multi-Language Test Generation
The API Tester MCP now supports generating test code in multiple programming languages and testing frameworks:
π§ Supported Language/Framework Combinations
| Language | Framework | Description | Use Case |
|---|---|---|---|
| π TypeScript | π Playwright | Modern E2E testing with excellent API support | π’ Enterprise web applications |
| π TypeScript | π Supertest | Express.js focused API testing | π’ Node.js backend services |
| π JavaScript | π Jest | Popular testing framework with good ecosystem | π§ General API testing |
| π JavaScript | π² Cypress | E2E testing with great developer experience | π Full-stack applications |
| π Python | π§ͺ pytest | Comprehensive testing with fixtures & plugins | π Data-heavy APIs & ML services |
| π Python | π‘ requests | Simple HTTP testing for quick validation | β‘ Rapid prototyping & scripts |
π― Language Selection Workflow
// 1. Get available languages and frameworks
const languages = await mcp.call("get_supported_languages");
// 2. Choose your preferred combination
await mcp.call("ingest_spec", {
spec_type: "openapi",
file_path: "./path/to/your/api-spec.json",
preferred_language: "typescript", // python, typescript, javascript
preferred_framework: "playwright" // varies by language
});
// 3. Generate test cases with code
await mcp.call("generate_test_cases", {
language: "typescript",
framework: "playwright"
});
// 4. Get complete project setup
await mcp.call("generate_project_files", {
language: "typescript",
framework: "playwright",
project_name: "my-api-tests",
include_examples: true
});
π Generated Project Structure
The generate_project_files tool creates a complete, ready-to-run project:
π TypeScript + Playwright:
my-api-tests/
βββ π¦ package.json # Dependencies & scripts
βββ βοΈ playwright.config.ts # Playwright configuration
βββ π tests/
β βββ π§ͺ api.spec.ts # Generated test code
βββ π README.md # Setup instructions
π Python + pytest:
my-api-tests/
βββ π requirements.txt # Python dependencies
βββ βοΈ pytest.ini # pytest configuration
βββ π tests/
β βββ π§ͺ test_api.py # Generated test code
βββ π README.md # Setup instructions
π JavaScript + Jest:
my-api-tests/
βββ π¦ package.json # Dependencies & scripts
βββ βοΈ jest.config.js # Jest configuration
βββ π tests/
β βββ π§ͺ api.test.js # Generated test code
βββ π README.md # Setup instructions
π― Framework-Specific Features
- π Playwright: Browser automation, parallel execution, detailed reporting
- π Jest: Snapshot testing, mocking, watch mode for development
- π§ͺ pytest: Fixtures, parametrized tests, extensive plugin ecosystem
- π² Cypress: Interactive debugging, time-travel debugging, real browser testing
- π Supertest: Express.js integration, middleware testing
- π‘ requests: Simple API calls, session management, authentication helpers
π Progress Tracking
The API Tester MCP includes comprehensive progress tracking for all operations:
π Visual Progress Indicators
π― API Test Execution: [ββββββββββββββββββββ] 50.0% (5/10) | ETA: 2.5s - GET /api/users β
π₯ Features:
- π Progress Bars: ASCII progress bars with filled/empty indicators
- π Completion Percentages: Real-time percentage completion
- β° ETA Calculations: Estimated time to completion based on current performance
- π― Milestone Notifications: Special highlighting at key progress points
- β‘ Performance Metrics: Throughput and timing statistics
- π Operation Context: Detailed information about current step being executed
β Available for:
- π¬ Scenario generation
- π§ͺ Test case generation
- π API test execution
- β‘ Load test execution
- π All long-running operations
π οΈ MCP Tools
The server provides 11 comprehensive MCP tools with detailed parameter specifications:
1. π₯ ingest_spec - Load API Specifications
Load OpenAPI/Swagger, Postman collections, or GraphQL schemas with language/framework preferences
{
"spec_type": "openapi", // openapi, swagger, postman, graphql (optional, auto-detected)
"file_path": "./api-spec.json", // Path to JSON, YAML, or GraphQL schema file (required)
"preferred_language": "python", // python, typescript, javascript (optional, default: python)
"preferred_framework": "requests" // pytest, requests, playwright, jest, cypress, supertest (optional, default: requests)
}
2. π§ set_env_vars - Configure Authentication & Environment
Set environment variables with automatic validation and guidance
{
"variables": {}, // Dictionary of custom environment variables (optional)
"baseUrl": null, // API base URL (optional)
"auth_bearer": null, // Bearer/JWT token (optional)
"auth_apikey": null, // API key (optional)
"auth_basic
---
*README truncated. [View full README on GitHub](https://github.com/kirti676/api_tester_mcp).*
Alternatives
Related Skills
Browse all skillsMaster API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.
Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.
CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.
.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET Core, Entity Framework Core, EF Core, .NET Core, minimal API, Web API, gRPC, authentication .NET, Identity, JWT .NET, authorization, LINQ, async/await C#, background service, IHostedService, SignalR, SQL Server, PostgreSQL .NET, dependency injection, middleware .NET.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.