HTTP
HTTPv1.0.0No CredentialMay 26, 2026
Send generic HTTP requests and get normalized API responses via MCP.
A Model Context Protocol (MCP) server that exposes HTTP/HTTPS request execution for testing APIs, integrating web services, and fetching remote data in agent workflows.
The HTTP MCP Server provides stateless, auth-agnostic HTTP access:
Perfect for:
pip install -r requirements.txt# stdio
python server.py
# sse
python server.py --transport sse --host 127.0.0.1 --port 8001
# streamable-http
python server.py --transport streamable-http --host 127.0.0.1 --port 8001https://headers (object, optional) — Request headers as key/value pairsparams (object, optional) — Query-string parameters as key/value pairsjson_body (any, optional) — JSON payload bodybody (string, optional) — Raw string payload body (cannot be used with json_body)timeout_seconds (number, optional) — HTTP timeout in seconds (default: 30.0)follow_redirects (boolean, optional) — Whether redirects are followed (default: true)max_response_chars (integer, optional) — Maximum body characters/bytes returned (default: 50000)Output:
{
"request": {
"method": "GET",
"url": "https://httpbin.org/get",
"headers": {
"accept": "application/json"
},
"params": {
"source": "cl-mcp-http"
},
"timeout_seconds": 30.0,
"follow_redirects": true,
"max_response_chars": 50000
},
"response": {
"url": "https://httpbin.org/get?source=cl-mcp-http",
"status_code": 200,
"reason_phrase": "OK",
"headers": {
"content-type": "application/json"
},
"elapsed_ms": 94.17,
"body": {
"kind": "text",
"content": "{...}",
"truncated": false,
"original_length": 312,
"json": {
"args": {
"source": "cl-mcp-http"
}
}
}
}
}usage Example:
POST /mcp/http/http_request
{
"method": "GET",
"url": "https://httpbin.org/get",
"headers": {
"accept": "application/json"
},
"params": {
"source": "cl-mcp-http"
}
}DELETEHEADOPTIONSjson_body and body are provided in the same requestjson_body for JSON payloadsbody for raw text payloadstimeout_seconds for long-running endpointsmax_response_charsmax_response_chars if larger output is required