httpx-mcp

v1.0.1
httpx-mcp Checked 2 days ago Published 5 months ago

A 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"…

ParameterTypeDescription
url *stringFull URL for the request
bodystringRequest body, can be JSON string, form data, or raw text
content_typestringContent-Type, e.g.: application/json, application/x-www-form-urlencoded
follow_redirectsbooleanWhether to follow redirects
headersstringRequest headers, JSON format, e.g.: {"Authorization": "Bearer xxx"}
include_headersbooleanWhether to include response headers in the output
methodstringHTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
paramsstringURL query parameters, JSON format or key=value&key2=value2 format
timeoutnumberRequest timeout in seconds
verify_sslbooleanWhether 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"}

ParameterTypeDescription
raw_request *stringRaw HTTP request text (including request line, headers, blank line, body)
base_urlstringBase URL (if raw_request doesn't contain full URL), e.g.: https://example.com
verify_sslbooleanWhether to verify SSL certificate