mcp-http
Provides a generic HTTP client tool allowing AI agents to make arbitrary HTTP requests from their environment, with support for environment-variable placeholders for secrets.
README
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"]
}
}
}
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 |
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.