API Tester

API Tester

kirti676

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.

5274 views4Local (stdio)

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

QA/SDET engineers automating API testingConverting API documentation to test codeTeams migrating from manual to automated API testingValidating API endpoints at scale
Zero setup with NPXMulti-language test generationReal-time progress tracking

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

npm (scoped) npm downloads License: MIT

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:

Install in VS Code Install in VS Code Insiders

πŸ€– 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:

🐍 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

LanguageFrameworkDescriptionUse Case
πŸ“˜ TypeScript🎭 PlaywrightModern E2E testing with excellent API support🏒 Enterprise web applications
πŸ“˜ TypeScriptπŸš€ SupertestExpress.js focused API testing🟒 Node.js backend services
πŸ“™ JavaScriptπŸƒ JestPopular testing framework with good ecosystemπŸ”§ General API testing
πŸ“™ JavaScript🌲 CypressE2E testing with great developer experience🌐 Full-stack applications
🐍 PythonπŸ§ͺ pytestComprehensive testing with fixtures & pluginsπŸ“Š Data-heavy APIs & ML services
🐍 PythonπŸ“‘ requestsSimple 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 skills
api-documenter

Master 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.

4
openai-knowledge

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`.

4
ccxt-typescript

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.

1
dotnet-backend

.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.

109
mcp-builder

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).

103
api-design-principles

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.

55