mcp-api-client
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-api-client batch test the /health and /users endpoints on localhost:8000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-api-client
Postman for LLMs. A specialized, resource-efficient MCP server designed for rapid REST API testing and exploration. Instead of writing boilerplate test code, your LLM assistant can now directly interact with, debug, and validate your endpoints in real-time.
Why mcp-api-client?
Traditional API testing requires writing scripts or switching to GUI tools like Postman. This server brings that power directly into your AI-assisted development workflow:
LLM-Native Testing: Quickly test endpoints using natural language without writing test code.
Resource Efficient: Minimal response format reduces token consumption, only returns status and body by default.
Zero-Boilerplate Prototyping: Interact with new APIs instantly to understand their behavior.
Local Dev Companion: Perfect for testing your local development server (
localhost) during the build phase.
Related MCP server: MCP HTTP Tester
Installation
Requirements: Python 3.10+
git clone https://github.com/etaaa/mcp-api-client.git
cd mcp-api-client
pip install .Setup
Find the installed path:
which mcp-api-clientAdd the server to your MCP client configuration (e.g., Claude Desktop):
{ "mcpServers": { "api-client": { "command": "/full/path/to/mcp-api-client" } } }
Tools
http_request
Make a single HTTP request with minimal response data.
Parameter | Type | Required | Description |
| string | Yes | HTTP method (GET, POST, PUT, etc.) |
| string | Yes | The target endpoint URL |
| any | No | Request body (auto-serialized as JSON if dict/list) |
| dict | No | Custom headers |
| dict | No | Query parameters |
| float | No | Request timeout (default: 30s) |
| bool | No | Include response headers (default: false) |
Response format:
{
"status": 200,
"body": {"key": "value"}
}http_batch_request
Execute multiple HTTP requests efficiently in a single call. Highly recommended for testing multiple endpoints to minimize token usage.
Parameter | Type | Required | Description |
| list | Yes | List of request objects (each with method, url, body, headers, params) |
| float | No | Request timeout for each request (default: 30s) |
| bool | No | Include response headers (default: false) |
Example:
{
"requests": [
{"method": "GET", "url": "http://localhost:8000/health"},
{"method": "POST", "url": "http://localhost:8000/users", "body": {"name": "Test"}},
{"method": "GET", "url": "http://localhost:8000/users/1"}
]
}Returns: Array of responses in the same order as requests.
Examples
Single request:
method: GET
url: http://localhost:8000/healthBatch testing (recommended for multiple endpoints):
requests:
- method: GET
url: http://localhost:3000/api/health
- method: POST
url: http://localhost:3000/api/users
body: {"name": "Test User", "role": "admin"}
- method: GET
url: http://localhost:3000/api/usersAgent Skills
This project includes a pre-written "skill" that instructs LLM agents on how to best use this tool.
Usage:
Copy
skills/mcp-api.client.mdto your project's agent configuration (e.g.,.cursor/skills/or similar).Your agent will now understand when to use this server (e.g., for verifying API changes).
Testing & Contributing
pip install pytest pytest-asyncio
pytestContributions are welcome! If you find a bug or have a feature request, please open an issue or submit a PR.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Available Tools
2 toolshttp_batch_requestHttp Batch Request
Execute multiple HTTP requests efficiently in a single call.
Reduces token usage by batching requests and minimizing response overhead.
Inputs: requests (required), timeout, include_headers. Returns: result
http_requestHttp Request
Make a single HTTP request. Returns status and body only by default.
Inputs: url (required), method (required), body, params, +3 more. Returns: Model representing an HTTP response.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Instant no-signup webhook & HTTP-request inspector for testing webhooks and agent tool-callbacks.
Pay-per-use agent tools: schedule HTTP calls, extract pages, PDFs, OG images, QR codes, short links.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to send HTTP requests to any endpoint with full control over methods, headers, query parameters, and request bodies.1MIT
- AlicenseNot gradedqualityCmaintenanceProvides HTTP client capabilities to AI agents with 9 tools for REST API testing, including GET, POST, PUT, PATCH, DELETE, batch requests, and URL health checks, using pure Python stdlib.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to inspect, test, validate, compare, and debug HTTP APIs through a structured toolkit, with features such as secret redaction, response contract validation, regression comparison, health checks, and incident investigation workflows.MIT
- AlicenseAqualityCmaintenanceEnables AI agents to execute HTTP/REST/GraphQL requests against any endpoint, including private VPN hosts and local services, while logging untruncated headers, request bodies, and raw responses into a local SQLite audit history. Agents can then search that history by keyword, date, method, or status, retrieve full details by ID, and export everything to JSON.5MIT