HTTPX MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
HTTPX MCP
An MCP tool for HTTP interface testing, built on the httpx library, designed for AI.
Features
π Full HTTP Method Support: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
π Multiple Request Formats: JSON, form data, raw text
π§ Custom Headers: Support for arbitrary HTTP headers
π Raw Request Parsing: Directly paste Burp Suite captured requests
β±οΈ Response Details: Status code, response headers, response body, timing statistics
π SSL Control: Optional SSL certificate verification
Related MCP server: cURL MCP Server
Installation
cd httpx-mcp
pip install -e .or
pip install httpx-mcpMCP Configuration
Add to your MCP configuration file:
{
"mcpServers": {
"httpx-mcp": {
"command": "python",
"args": ["-m", "httpx_mcp.server"],
"cwd": "c:/Users/ZHEFOX/Desktop/mcptools/httpx-mcp"
}
}
}Or use directly after installation:
{
"mcpServers": {
"httpx-mcp": {
"command": "httpx-mcp"
}
}
}Security
httpx-mcp can make outbound HTTP requests from the machine where the MCP
server is running. To reduce SSRF risk when tool calls are influenced by LLM
output or prompt injection, requests to non-public network addresses are blocked
by default. This includes localhost/loopback, private RFC1918 ranges, link-local
addresses such as cloud metadata endpoints, IPv6 unique local addresses, and
other non-globally routable targets. Redirect targets are validated before each
redirected request.
For trusted and isolated security testing environments that intentionally need
internal network access, set HTTPX_MCP_ALLOW_PRIVATE_NETWORK=true in the MCP
server environment:
{
"mcpServers": {
"httpx-mcp": {
"command": "httpx-mcp",
"env": {
"HTTPX_MCP_ALLOW_PRIVATE_NETWORK": "true"
}
}
}
}Only enable this option when you understand that the tool can then reach any HTTP(S) endpoint available to the MCP server process.
Available Tools
1. http_request - General HTTP Request
Send any HTTP request, switch request method via the method parameter.
Parameters:
Parameter | Type | Required | Default | Description |
| string | β | - | Full URL |
| string | - | GET | HTTP method: GET/POST/PUT/DELETE/PATCH/HEAD/OPTIONS |
| string | - | - | URL query parameters, JSON or key=value format |
| string | - | - | Request headers, JSON format |
| string | - | - | Request body |
| string | - | application/json | Content-Type |
| number | - | 30 | Timeout in seconds |
| boolean | - | true | Whether to follow redirects |
| boolean | - | true | Whether to verify SSL |
| boolean | - | true | Whether response includes headers |
Examples:
# GET request
method="GET", url="https://httpbin.org/get"
# GET with query parameters
method="GET", url="https://httpbin.org/get", params='{"page": "1", "size": "10"}'
# POST JSON
method="POST", url="https://httpbin.org/post", body='{"name": "test", "value": 123}'
# PUT update
method="PUT", url="https://httpbin.org/put", body='{"id": 1, "name": "updated"}'
# DELETE
method="DELETE", url="https://httpbin.org/delete"
# With authentication header
method="GET", url="https://api.example.com/users", headers='{"Authorization": "Bearer token123"}'
# POST form
method="POST", url="https://httpbin.org/post", body="username=admin&password=123", content_type="application/x-www-form-urlencoded"
# Disable SSL verification
method="GET", url="https://self-signed.example.com", verify_ssl=false2. http_raw - Raw HTTP Request
Directly parse raw HTTP requests captured by tools like Burp Suite.
Parameters:
Parameter | Type | Required | Default | Description |
| string | β | - | Raw HTTP request text |
| string | - | - | Base URL (if request doesn't contain full URL) |
| boolean | - | true | Whether to verify SSL |
Example:
raw_request="""
POST /api/login HTTP/1.1
Host: example.com
Content-Type: application/json
Cookie: session=abc123
{"username":"admin","password":"123456"}
"""
base_url="https://example.com"Response Format
The tool returns formatted response information:
HTTP/1.1 200 OK
=== Response Headers ===
content-type: application/json
date: Mon, 01 Jan 2024 00:00:00 GMT
...
=== Response Body ===
{
"result": "success",
"data": {...}
}
=== Request Info ===
Time: 0.234s
Size: 1024 bytesUse Cases
API Testing: Quickly test REST API endpoints
Security Testing: Send custom payloads for security testing
Interface Debugging: View detailed request/response information
Request Replay: Directly use Burp captured content to replay requests
License
MIT
Acknowledgements
SSRF hardening was reported privately by Syed Anas Mohiuddin.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Instant no-signup webhook & HTTP-request inspector for testing webhooks and agent tool-callbacks.
Send one HTTP request, or one per row of a dataset, CSV or Google Sheet, and get the response back
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Reliable web access for AI agents: smart HTTP, rotating proxies, and full-browser rendering.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a structured HTTP client tool for making web requests with full HTTP method support, detailed response metadata, and error handling. Enables AI assistants to interact with any web API or endpoint through the curl_request tool.2MIT
- AlicenseAqualityBmaintenanceEnables LLMs to make HTTP requests using structured cURL commands with support for multiple authentication methods, custom headers, and comprehensive request/response control.24MIT
- AlicenseAqualityDmaintenanceEnables AI agents to send HTTP requests to any endpoint with full control over methods, headers, query parameters, and request bodies.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to make arbitrary HTTP API requests with any method and full control over headers, query parameters, and body.MIT