Sponsored by Deepsite.site

HTTPX_MCP

Created By
ZheFoxa month ago
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:

ParameterTypeRequiredDefaultDescription
urlstringโœ…-Full URL
methodstring-GETHTTP method: GET/POST/PUT/DELETE/PATCH/HEAD/OPTIONS
paramsstring--URL query parameters, JSON or key=value format
headersstring--Request headers, JSON format
bodystring--Request body
content_typestring-application/jsonContent-Type
timeoutnumber-30Timeout in seconds
follow_redirectsboolean-trueWhether to follow redirects
verify_sslboolean-trueWhether to verify SSL
include_headersboolean-trueWhether 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:

ParameterTypeRequiredDefaultDescription
raw_requeststringโœ…-Raw HTTP request text
base_urlstring--Base URL (if request doesn't contain full URL)
verify_sslboolean-trueWhether 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

  1. API Testing: Quickly test REST API endpoints
  2. Security Testing: Send custom payloads for security testing
  3. Interface Debugging: View detailed request/response information
  4. 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.