http-client
Comprehensive MCP server for handling all HTTP methods (GET, POST, PUT, DELETE, etc.) with full request/response support
claude mcp add --transport stdio rohitpatilll-http-client-mcp-server node [absolute-path-to-directory]/server.js
How to use
The HTTP Client MCP Server provides a set of tools to perform HTTP requests from within the MCP ecosystem. It exposes a universal http_request tool that can execute any HTTP method (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, and custom methods), along with convenient helpers for common tasks. You can also use http_get for simple GET requests, http_post for sending data with automatic handling of content types, and set_default_headers to apply headers across all requests. The server returns comprehensive response details including status, headers, and body, and supports query parameters, authentication headers, timeouts, and redirect handling. This makes it suitable for interacting with external APIs, testing endpoints, and integrating HTTP calls into MCP workflows. The provided examples show how to structure requests, including headers, query parameters, and bodies, enabling precise control over your HTTP interactions.
How to install
Prerequisites:
- Node.js 18+ installed on your system
- npm (comes with Node.js) or npm equivalent
Installation steps:
- Clone or download the MCP server repository.
- Navigate to the project directory: cd path/to/http-client-mcp-server
- Install dependencies: npm install
- Start the MCP server (example): npm run start
If you need to run via MCP Inspector or integrate into a Claude Desktop configuration, ensure Node is available and the server.js path is correctly set in your MCP config as shown in the usage example.
Additional notes
Tips and common considerations:
- Ensure Node.js is at least version 18 to satisfy requirements.
- The http_request tool supports all HTTP methods; use http_get/http_post for simpler patterns when possible.
- You can set default headers with set_default_headers to simplify repeated requests; the merge flag controls whether new headers replace or merge with existing defaults.
- For authentication, pass Authorization headers or other custom headers as part of each request, or configure defaults if they apply globally.
- Check response parsing: the server supports JSON and plain text responses; handle non-JSON responses accordingly.
- If you encounter redirects, verify redirect handling settings and maximum redirects to avoid infinite loops.
- When testing locally, consider using query parameters to shape API responses (e.g., format=json) for predictable payloads.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.