# Api Testing MCP

> Api Testing MCP is an open-source MCP server for developer tools. MCP server for HTTP API testing with assertions, flows, OpenAPI import and load tests. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, macOS, Windows, Linux, vscode
- **Repository:** https://github.com/cocaxcode/api-testing-mcp
- **MCP Registry name:** io.github.cocaxcode/api-testing-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README says this server gives an AI client a full API testing workbench: sending HTTP requests with assertions, chaining multi-step flows that pass values between steps, importing OpenAPI specs to build schema-aware requests and mock data, and running load tests with percentile timings. It also covers response diffing between environments, bulk runs over saved collections, and Postman import and export.

State is kept locally in plain JSON files under a home-directory folder, with no accounts or cloud sync. Environments and groups let you bind variable sets such as BASE_URL and tokens to project directories, and the active environment can be switched per session. Responses are compressed by default to reduce the tokens an agent consumes, and the full body can be recovered later by call ID.

The package is published on npm and installs with npx into Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Codex CLI and Gemini CLI. It suits developers who want to test and debug APIs by describing requests in natural language inside an MCP-capable editor or assistant.

## Features

- **HTTP requests with variables:** Sends common HTTP methods with headers, query parameters, bodies, auth and {{variable}} interpolation resolved from the active environment.
- **Assertions:** Checks status codes, body fields and timings with ten comparison operators and returns pass or fail results.
- **Multi-step flows:** Chains requests and extracts values such as tokens from one response for use in the next step.
- **OpenAPI import and mock data:** Imports OpenAPI 3.x specs from a URL or file and generates mock request bodies from schemas.
- **Load testing:** Fires concurrent requests and reports throughput and min, average, p50, p95, p99 and max latency.
- **Local environments and groups:** Stores variables as plain JSON on the local machine and binds environments to project directories.
- **Postman and cURL interop:** Imports and exports Postman v2.1 collections and environments and exports saved requests as cURL commands.

## Good for

- Testing login flows that pass a token to later authenticated requests
- Checking that an endpoint meets a response-time target under concurrent load
- Generating requests from an imported OpenAPI spec without writing them by hand
- Migrating existing Postman collections into an AI-driven workflow
- Comparing responses from dev and prod environments to spot regressions
- Running saved smoke tests in bulk before a release

## Install

### Claude Code (Terminal)

```sh
claude mcp add api-testing-mcp -- npx -y @cocaxcode/api-testing-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "api-testing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/api-testing-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "api-testing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/api-testing-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "api-testing-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/api-testing-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "api-testing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/api-testing-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "api-testing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/api-testing-mcp"
      ]
    }
  }
}
```

## FAQ

### How do I install it?

The README gives install commands for Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Codex CLI and Gemini CLI, all of which run the npm package through npx.

### Does it send my data to a cloud service?

The README says everything is stored locally under a home-directory folder as plain JSON, with no accounts, cloud sync or telemetry.

### Which OpenAPI versions are supported?

The README says OpenAPI 3.x is supported with full $ref resolution, and OpenAPI 2.0 is only partially supported.

### Are environment credentials included in exports?

The README says credentials stay in the private global store and are not copied into exported project folders.

### Is Api Testing MCP free?

Yes. Api Testing MCP is open source, so you can use and self-host it for free.

### How do I add Api Testing MCP to Claude Code?

Run this command in your terminal: claude mcp add api-testing-mcp -- npx -y @cocaxcode/api-testing-mcp

### What are the best alternatives to Api Testing MCP?

The closest alternatives to Api Testing MCP are Api Test MCP, Testing, MCP Server, Postman MCP Server and simplify3x-connect.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Api Test MCP](https://ai-powered.com/mcp/api-test-mcp): Api Test MCP is an open-source MCP server for developer tools.
- [Testing](https://ai-powered.com/mcp/testing): Testing is an open-source MCP server for developer tools.
- [MCP Server](https://ai-powered.com/mcp/mcp-server-mweo0sk4): MCP Server is an MCP server for developer tools.
- [Postman MCP Server](https://ai-powered.com/mcp/postman-mcp-server): Postman MCP Server is a freemium MCP server for developer tools.
- [simplify3x-connect](https://ai-powered.com/mcp/simplify3x-connect): simplify3x-connect is an open-source MCP server for developer tools.
- [M00N Report](https://ai-powered.com/mcp/m00n-report): M00N Report is an open-source MCP server for developer tools.
- [MCP Foundry — Build, Test & Publish MCP Servers](https://ai-powered.com/mcp/mcp-foundry-build-test-and-publish-mcp-servers): MCP Foundry — Build, Test & Publish MCP Servers is a freemium MCP server for developer tools.
- [MCP Test Runner](https://ai-powered.com/mcp/mcp-test-runner): MCP Test Runner is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/api-testing-mcp
