API Testing MCP logo

API Testing MCP

by cocaxcode

Test HTTP APIs from an AI client with local environments, reusable requests, OpenAPI inspection, assertions, and multi-step flows.

Install API Testing MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cocaxcode-api-testing-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cocaxcode/api-testing-mcp@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

cocaxcode/api-testing-mcp MCP server connects an MCP-compatible AI client to HTTP APIs for requests, assertions, flows, and response comparison. It stores environments and saved requests locally, supports {{variable}} interpolation, and resolves relative paths against an active BASE_URL. OpenAPI or Swagger specifications can be imported from a URL or local JSON/YAML file to inspect endpoints and schemas. Reach for it when API development or testing requires repeatable requests, environment switching, chained calls, or cURL output without a cloud account.

Use cases

  • Send requests against local or remote API environments
  • Validate endpoint responses with assertions
  • Run login and follow-up requests as a chained flow
  • Inspect endpoints from an imported OpenAPI specification
  • Compare responses between environments

Key features

  • HTTP requests with variable interpolation
  • Local collections for reusable requests
  • Scoped environment groups and defaults
  • OpenAPI and Swagger import
  • Assertions and multi-step flows
  • Response diffing and cURL export

Tools42

What API Testing MCP lets your agent do. Expand a tool for its parameters.

Verified live~6.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

7/7 checks healthy over the last 85d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @cocaxcode/api-testing-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars13Stargazers on the source repository.
npm downloads356Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Tools exposed42Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How API Testing MCP works

What cocaxcode/api-testing-mcp does

cocaxcode/api-testing-mcp provides an MCP interface for exercising and inspecting HTTP APIs from an AI assistant. The request tool supports common HTTP methods, headers, query parameters, JSON bodies, authentication, custom timeouts, and {{variable}} interpolation. Relative URLs such as /users use BASE_URL from the active environment.

Requests can be saved in a local collection, listed with optional tag filtering, retrieved by name, or deleted. The server can also generate a cURL command from a saved request. Environment management includes creating, renaming, switching, grouping, assigning project scopes, setting defaults, and masking sensitive values when variables are displayed.

How it works

The server runs locally through an MCP client and keeps its data as local JSON rather than requiring a cloud account. An active environment supplies variables to requests. Groups can make environments available to selected directory scopes, while project-specific assignments determine which environment applies in a given directory.

Responses from request are compressed by default to reduce context usage. The verbosity can be changed to minimal, normal, or full; selected body fields and a maximum body size can also be requested. Each compressed response includes a call identifier that can be used with inspect_last_response to recover the stored response without sending the request again.

OpenAPI and Swagger documents can be imported from a URL or local JSON/YAML file. After import, endpoint lists can be filtered by tag, method, or path, and endpoint details expose parameters, request schemas, and response information. If only one specification is available, endpoint tools can use it automatically when no name is supplied.

Setup and configuration

cocaxcode/api-testing-mcp is installed with npx and requires Node.js 20 or later according to the repository metadata. The README provides configurations for Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Codex CLI, and Gemini CLI. A typical stdio configuration runs npx -y @cocaxcode/api-testing-mcp@latest.

After installation, create an environment with a BASE_URL, then switch to it or mark it as the default for its group. Import an API specification when schema-aware endpoint discovery is useful. Environment values are supplied through the server’s environment tools rather than documented process-level environment variables.

Tools and capabilities

  • Execute HTTP requests with variable interpolation and configurable response detail.
  • Save, inspect, list, filter, and delete reusable collection requests.
  • Create and manage global, grouped, and project-scoped environments.
  • Import OpenAPI or Swagger files and inspect available endpoints and schemas.
  • Validate responses with assertions and run ordered request flows with extracted variables.
  • Compare two request responses and export saved requests as cURL.

Limitations and notes

The default response is not the complete raw response: headers may be filtered and the body may be truncated. Use verbosity=full, selected fields, or inspect_last_response when complete data is required. Sensitive environment values are masked by default and must be requested by name to view their full value.

The provided installation uses a local stdio process, and the repository describes storage as plain JSON owned by the user. The material does not document hosted execution, built-in cloud synchronization, or required process-level environment variables.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about API Testing MCP

cocaxcode/api-testing-mcp is an MCP server that connects an AI assistant to HTTP APIs for request execution and testing. Its main tools include request, assert, flow_run, environment and collection management, OpenAPI import and endpoint inspection, response diffing, and cURL export. It runs locally without a cloud account.

Install it by configuring your MCP client to run `npx -y @cocaxcode/api-testing-mcp@latest`. The README includes setup examples for Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, Codex CLI, and Gemini CLI. Node.js 20 or later is listed in the repository metadata.

Yes, cocaxcode/api-testing-mcp works with Cursor through a project-level `.cursor/mcp.json` configuration. Add an MCP server entry that runs `npx -y @cocaxcode/api-testing-mcp@latest`, then create or select an environment for requests.

Import the specification with the API import tool from a URL or local JSON/YAML file. Then list imported specifications, inspect endpoints, and request endpoint details including parameters, body schemas, and responses.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAPI Testing MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cocaxcode-api-testing-mcp?style=directory)](https://allmcps.com/mcp/cocaxcode-api-testing-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/cocaxcode-api-testing-mcp"><img src="https://allmcps.com/api/badge/cocaxcode-api-testing-mcp?style=directory" alt="API Testing MCP on AllMCPs" /></a>