home / mcp / api tester mcp server

API Tester MCP Server

Provides API testing capabilities from OpenAPI/Swagger, Postman collections, and GraphQL with multi-language test generation and HTML reports.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "kirti676-api_tester_mcp": {
      "command": "npx",
      "args": [
        "@kirti676/api-tester-mcp@latest"
      ],
      "env": {
        "baseUrl": "https://api.example.com/v1",
        "BASE_URL": "YOUR_BASE_URL_PLACEHOLDER",
        "auth_basic": "base64encodedstring",
        "auth_apikey": "your-api-key",
        "auth_bearer": "your-jwt-token",
        "auth_password": "pass",
        "auth_username": "user"
      }
    }
  }
}

You can use the API Tester MCP Server to automatically generate and run API tests from OpenAPI/Swagger, Postman collections, or GraphQL schemas. It provides multi-language test generation, real-time progress, HTML reports, and easy integration with MCP clients so you can orchestrate tests from your preferred workflow.

How to use

You work with an MCP client to connect to the API Tester MCP Server. Start the server with a simple command, ingest your API specification, configure authentication, generate test scenarios and cases, and then run tests with detailed reports. You can generate tests in multiple languages and frameworks, customize environment variables, and view results in accessible HTML reports.

Typical usage pattern:

How to install

Prerequisites: you need Node.js 14 or higher installed on your machine. You do not need a separate Python setup to run the MCP server if you use the NPX option.

Install and run the MCP server directly using NPX:

# 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

Configuration examples

Use a standard MCP client configuration to run the server. This example shows how to point a client at the NPX-based server.

{
  "mcpServers": {
    "api-tester": {
      "command": "npx",
      "args": ["@kirti676/api-tester-mcp@latest"]
    }
  }
}

Notes for setup and usage

- You can also install the package locally or run from source if you prefer. Follow the steps to clone the project, install dependencies, and run the server from your development environment.

Available tools

ingest_spec

Load API specifications such as OpenAPI/Swagger, Postman collections, or GraphQL schemas with language/framework preferences

set_env_vars

Configure authentication and environment variables with guidance and validation

generate_scenarios

Create test scenarios from ingested specifications including negative tests and edge cases

generate_test_cases

Convert scenarios into executable tests in a chosen language and framework

run_api_tests

Execute API tests with detailed results and reporting

run_load_tests

Run load/performance tests with configurable duration and user load

get_supported_languages

List available language and framework options for test generation

generate_project_files

Generate a complete project scaffold with dependencies and configuration

get_workspace_info

Provide information about workspace directory and file generation locations

debug_file_system

Diagnostics for file system and workspace state

get_session_status

Retrieve current session information and progress