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: API Request 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

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    C
    maintenance
    Provides 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.
    Last updated
    26
    2
    MIT
  • F
    license
    A
    quality
    B
    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.
    Last updated
    2

View all related MCP servers

Related MCP Connectors

  • Reliable web access for AI agents: smart HTTP, rotating proxies, and full-browser rendering.

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

  • Free public MCP for AI agents — 193 tools, 44 workflows. No API key.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Llamatron2112/mcp-http'

If you have feedback or need assistance with the MCP directory API, please join our Discord server