Skip to main content
Glama

mcp-http

MCP server exposing a single generic HTTP client tool (http_request) so an AI agent can make arbitrary HTTP requests from its own environment.

Installable from a git repository via uvx:

uvx --from git+https://github.com/Llamatron2112/mcp-http@main mcp-http-server

Or run locally:

uv run mcp-http-server

Agent configuration

Point your agent at the server over stdio, e.g. in opencode.json or claude_desktop_config.json:

{
  "mcpServers": {
    "http-client": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/Llamatron2112/mcp-http@main", "mcp-http-server"]
    }
  }
}

Related MCP server: cURL MCP Server

Tool: http_request

The agent controls everything: method and url are required; params, headers, json_body, data, timeout and follow_redirects are optional.

http_request(method, url, params=None, headers=None, json_body=None,
             data=None, timeout=30.0, follow_redirects=True) -> dict

Returns {"status", "content_type", "headers", "body", "truncated"}. body is truncated to HTTP_MAX_BODY (default 1 MB).

Secrets: never put real tokens in the conversation

A header value of the form ${VAR} is resolved by the server from its own environment variables. The agent only writes the placeholder, so the real value never enters the conversation, tool history, or logs.

{"headers": {"Authorization": "Bearer ${API_TOKEN}"}}

Example: define the variable on the machine running the server and reference it with any name:

export API_TOKEN="sk-..."

The agent keeps full control for security testing: with token, without token (just omit the header), or with a wrong token to test for a 401.

Configuration

Variable

Default

Meaning

HTTP_MAX_BODY

1000000

Maximum response body bytes returned to the agent

Available Tools

1 tool
http_requestHTTP ClientA

Send an arbitrary HTTP request and return the response.

Single generic HTTP client tool: the agent picks the method, URL, headers, query parameters and body. Returns status, headers, content-type and body.

Supported methods: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE.

Inputs: url (required), method (required), data, params, +4 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only a single tool, there is no possibility of confusion or overlapping purposes. The http_request tool has a clear, distinct role as a generic HTTP client.

    Naming Consistency5/5

    The tool name 'http_request' is a clear verb_noun pattern. Since there is only one tool, consistency is trivially maintained, and the name accurately reflects its function.

    Tool Count3/5

    While a single tool feels thin, it is justified for a focused HTTP client server. The tool is comprehensive and not trivial, but the server offers no additional utilities or convenience wrappers.

    Completeness5/5

    The http_request tool supports all common HTTP methods, headers, query parameters, and body payloads, and returns status, headers, and body content. This fully covers the expected domain of an HTTP client with no obvious gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables automatic HTTP requests (GET, POST, PUT, DELETE, etc.) with JSON validation and proxy support. Supports custom headers, request bodies, and environment variable configuration for seamless API integration.
      1
      1 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLMs to make HTTP requests using structured cURL commands with support for multiple authentication methods, custom headers, and comprehensive request/response control.
      2
      8 npm
      4
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Universal HTTP client tool for LLM agents. Enables Claude and other MCP-compatible agents to perform GET, POST, PUT, DELETE, and other HTTP requests to any URL, including localhost and internal network addresses.
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to send HTTP requests to any endpoint with full control over methods, headers, query parameters, and request bodies.
      1
      27 npm
      MIT