- HTTPX_MCP
HTTPX_MCP
An MCP tool for HTTP interface testing, built on the httpx library, designed for AI.
Content
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
Installation
cd httpx-mcp
pip install -e .
or
pip install httpx-mcp
MCP 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"
}
}
}
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 |
|---|---|---|---|---|
url | string | โ | - | Full URL |
method | string | - | GET | HTTP method: GET/POST/PUT/DELETE/PATCH/HEAD/OPTIONS |
params | string | - | - | URL query parameters, JSON or key=value format |
headers | string | - | - | Request headers, JSON format |
body | string | - | - | Request body |
content_type | string | - | application/json | Content-Type |
timeout | number | - | 30 | Timeout in seconds |
follow_redirects | boolean | - | true | Whether to follow redirects |
verify_ssl | boolean | - | true | Whether to verify SSL |
include_headers | 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=false
2. http_raw - Raw HTTP Request
Directly parse raw HTTP requests captured by tools like Burp Suite.
Parameters:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
raw_request | string | โ | - | Raw HTTP request text |
base_url | string | - | - | Base URL (if request doesn't contain full URL) |
verify_ssl | 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 bytes
Use 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
Recommend Clients
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
HyperChatHyperChat is a Chat client that strives for openness, utilizing APIs from various LLMs to achieve the best Chat experience, as well as implementing productivity tools through the MCP protocol.
ChatWiseThe second fastest AI chatbotโข
LutraLutra is the first MCP compatible client built for everyone
chatmcpChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
MCP ConnectEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Cline โ #1 on OpenRouterAutonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
MCP PlaygroundCall MCP Server Tools Online
Roo Code (prev. Roo Cline)Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor.
y-cli ๐A Tiny Terminal Chat App for AI Models with MCP Client Support
CursorThe AI Code Editor
MODELSCOPE---MODELSCOPE-PLATFORM-MCP-SERVICES
Refact.aiOpen-source AI Agent for VS Code and JetBrains that autonomously solves coding tasks end-to-end.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Cherry Studio๐ Cherry Studio is a desktop client that supports for multiple LLM providers.
Continueโฉ Create, share, and use custom AI code assistants with our open-source IDE extensions and hub of models, rules, prompts, docs, and other building blocks
A Sleek AI Assistant & MCP Client5ire is a cross-platform desktop AI assistant, MCP client. It compatible with major service providers, supports local knowledge base and tools via model context protocol servers .
ZedCode at the speed of thought โ Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.