httpx-mcp
v1.0.1A MCP tool for HTTP request testing using httpx
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
http_request
Send HTTP request to specified URL. Supports all HTTP methods (GET/POST/PUT/DELETE/PATCH, etc.). Usage examples: - GET request: method="GET", url="https://api.example.com/users" - GET with params: method="GET", url="...", params='{"page":"1","size":"10"}' - POST JSON: method="POST", url="...", body='{"key":"value"}' - PUT update: method="PUT", url="...", body='{"id":1,"name":"test"}' - DELETE: method="DELETE", url="https://api.example.com/users/1" - Custom headers: headers='{"Authorization":"Bearer xxx"}' - Form submit: body="name=test&age=18", content_type="application/x-www-form-urlencoded"…
| Parameter | Type | Description |
|---|---|---|
url * | string | Full URL for the request |
body | string | Request body, can be JSON string, form data, or raw text |
content_type | string | Content-Type, e.g.: application/json, application/x-www-form-urlencoded |
follow_redirects | boolean | Whether to follow redirects |
headers | string | Request headers, JSON format, e.g.: {"Authorization": "Bearer xxx"} |
include_headers | boolean | Whether to include response headers in the output |
method | string | HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS |
params | string | URL query parameters, JSON format or key=value&key2=value2 format |
timeout | number | Request timeout in seconds |
verify_ssl | boolean | Whether to verify SSL certificate |
http_raw
Send raw HTTP request. Supports pasting request format directly from Burp Suite or other capture tools. Raw request format example: POST /api/login HTTP/1.1 Host: example.com Content-Type: application/json {"username":"admin","password":"123"}
| Parameter | Type | Description |
|---|---|---|
raw_request * | string | Raw HTTP request text (including request line, headers, blank line, body) |
base_url | string | Base URL (if raw_request doesn't contain full URL), e.g.: https://example.com |
verify_ssl | boolean | Whether to verify SSL certificate |