MCP server providing 42 API testing tools including HTTP requests, multi-step flows, environment groups, load testing, and OpenAPI mock generation.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by API Testing MCP.
requestEjecuta un HTTP request. URLs relativas (/path) usan BASE_URL del entorno activo. Soporta {{variables}}. La respuesta se comprime por defecto (verbosity=normal) para ahorrar tokens; usa verbosity=full o inspect_last_response si necesitas la respuesta completa.
collection_saveGuarda un request en la colecciรณn local. Si ya existe un request con el mismo nombre, lo sobreescribe.
collection_listLista todos los requests guardados en la colecciรณn. Opcionalmente filtra por tag.
collection_getObtiene los detalles completos de un request guardado por su nombre.
collection_deleteElimina un request guardado de la colecciรณn.
env_createCrea un nuevo entorno. PREGUNTA al usuario: nombre, grupo (o global) y variables. Si el grupo no existe, se crea automaticamente.
The most complete MCP server for API testing. Period.
42 MCP tools ยท Zero config ยท Works in any MCP client
Overview ยท Just Talk to It ยท Installation ยท Features ยท Tool Reference ยท Storage ยท Architecture
The most complete MCP server for API testing โ 42 tools, zero config, nothing else comes close. This is not just a request sender. It is a full testing workbench: HTTP requests with assertions, multi-step flows with variable extraction, OpenAPI import with schema-aware mock data, load testing with percentile metrics, response diffing across environments, bulk test runners, reusable collections, environment groups with directory scoping and persistent defaults, Postman import/export, and cURL export. All from natural conversation. No accounts, no cloud, no generated files. Everything runs inline and stores as plain JSON you own.
You don't need to learn tool names or parameters. Describe what you want and the AI picks the right tool.
If you've imported an OpenAPI spec, the AI already knows every endpoint, every required field, every valid enum value. When you say "create a blog post", it reads the schema and builds the request correctly โ no guessing.
Add to your config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
Add to .cursor/mcp.json or .windsurf/mcp.json in your project root:
VS Code โ add to .vscode/mcp.json:
Codex CLI (OpenAI):
Or add to ~/.codex/config.toml:
Gemini CLI โ add to ~/.gemini/settings.json:
Once installed, set up an environment so relative paths resolve automatically:
If your API has a Swagger/OpenAPI spec, import it:
Verify with: "List my environments" โ you should see the one you just created.
Send any HTTP method with headers, query params, JSON body, auth, and {{variable}} interpolation. Relative URLs auto-resolve against BASE_URL.
Supports: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS โ Bearer / API Key / Basic auth โ custom timeouts.
AI agents pay for every byte that lands in their context window. By default, request now returns a compressed response that cuts 70-95% of those tokens without losing debugging value. Three optional parameters control it:
| Param | Values | What it does |
|---|---|---|
verbosity | 'minimal' / 'normal' (default) / 'full' | Controls detail level |
only_fields | ['user.id', 'items[*].name'] | Returns only these body paths (dot-notation + wildcards) |
max_body_bytes | number (default 2048) | Body size cap for 'normal' |
Modes:
minimal โ only status, timing, size_bytes, first 200 chars of body. Perfect for health checks, polling loops, or fire-and-forget calls. Saves ~95% tokens.normal (default) โ filtered headers (drops Date, Server, CF-*, Set-Cookie, etc.) + body truncated to max_body_bytes. Covers ~80% of debugging use cases. Saves ~75% tokens.full โ complete response untouched. Use when you explicitly need every header or the full body.Typical savings on a 5 KB JSON response (โ1,500 tokens):
| Mode | Tokens consumed | Savings |
|---|---|---|
full | ~1,500 | 0% (baseline) |
normal | ~300-400 | ~75% |
minimal | ~50-80 | ~95% |
only_fields: ['data.id'] | ~30 | ~98% |
For a head-to-head comparison against
curl,WebFetchand other native alternatives with measured numbers, see Native alternatives below.
Recovering full responses: every compressed response includes a call_id. If you need the full body later, call inspect_last_response({ call_id }) โ no need to re-execute the request. This works for request, assert, and each step of flow_run. Responses are kept in a 20-slot ring buffer and persisted to .api-testing/last-responses/ with a 1-hour TTL.
How this MCP compares against the native options Claude Code has when api-testing is not available (Bash + curl, WebFetch, etc.).
TL;DR: compared to raw curl, request saves between 65% and 97% of context tokens depending on the mode, with no loss of debugging information. Measured on a real call to GET /api/v1/blog returning 8 posts (~8.7 KB of JSON, 19 response headers):
| How the agent calls it | Uses MCP? | Tokens consumed | Delta vs curl |
|---|---|---|---|
Bash + curl (raw stdout) | โ native | ~2,170 | baseline |
WebFetch (LLM summary) | โ native | ~400-800 | โ65%, but no auth / no envs / no inspect |
request verbosity=full | โ MCP | ~2,170 | 0% (same as curl, no compression) |
request verbosity=normal (default) | โ MCP | ~750 | โ65% |
request verbosity=minimal | โ MCP | ~50 | โ97% |
request with only_fields: ["data[*].id","data[*].title"] | โ MCP | ~190 | โ91% |
Why this table's numbers differ slightly from the "Compression modes" section above: these come from a single real-world response, while the previous table shows typical savings on a synthetic 5 KB response. Trend and order of magnitude are the same.
Notes:
normal) already saves 65% without any configuration: it filters out noisy headers (Date, Server, CF-*, Set-Cookieโฆ) and caps the body at 2048 bytes.only_fields accepts dot-paths with array index and wildcard support (items[*].name) โ returns only the fields you ask for.{{variable}} interpolation, stored environments, auth schemas, flows, Postman import/export, and inspect_last_response to recover the full body without re-hitting the server.Validate responses with structured pass/fail results:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cocaxcode-api-testing-mcp)<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>