Skip to main content

HTTP Request MCP Server

A Model Context Protocol server that provides HTTP request capabilities. This server enables LLMs to make HTTP requests using GET, POST, PUT, PATCH, and DELETE methods.

[!CAUTION] This server can access local/internal IP addresses and may represent a security risk. Exercise caution when using this MCP server to ensure this does not expose any sensitive data.

Available Tools

  • http_get - Makes an HTTP GET request to retrieve data

    • url (string, required): URL to send GET request to
    • headers (object, optional): HTTP headers to include in the request
    • params (object, optional): Query parameters to include in the request
  • http_post - Makes an HTTP POST request to create new resources

    • url (string, required): URL to send POST request to
    • headers (object, optional): HTTP headers to include in the request
    • body (string or object, optional): Request body (sent as JSON if object)
  • http_put - Makes an HTTP PUT request to update/replace resources

    • url (string, required): URL to send PUT request to
    • headers (object, optional): HTTP headers to include in the request
    • body (string or object, optional): Request body (sent as JSON if object)
  • http_patch - Makes an HTTP PATCH request to partially update resources

    • url (string, required): URL to send PATCH request to
    • headers (object, optional): HTTP headers to include in the request
    • body (string or object, optional): Request body (sent as JSON if object)
  • http_delete - Makes an HTTP DELETE request to delete resources

    • url (string, required): URL to send DELETE request to
    • headers (object, optional): HTTP headers to include in the request

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-http-request.

Using PIP

Alternatively you can install mcp-server-http-request via pip:

pip install mcp-server-http-request

After installation, you can run it as a script using:

python -m mcp_server_http_request

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
{
  "mcpServers": {
    "http-request": {
      "command": "uvx",
      "args": ["mcp-server-http-request"]
    }
  }
}
Using pip installation
{
  "mcpServers": {
    "http-request": {
      "command": "python",
      "args": ["-m", "mcp_server_http_request"]
    }
  }
}

Customization - User-agent

By default, the server uses the user-agent:

ModelContextProtocol/1.0 (HTTP-Request; +https://github.com/modelcontextprotocol/servers)

This can be customized by adding the argument --user-agent=YourUserAgent to the args list in the configuration.

Customization - Proxy

The server can be configured to use a proxy by using the --proxy-url argument.

Usage Examples

GET Request

{
  "url": "https://api.example.com/users",
  "params": {
    "page": "1",
    "limit": "10"
  },
  "headers": {
    "Authorization": "Bearer token123"
  }
}

POST Request

{
  "url": "https://api.example.com/users",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer token123"
  },
  "body": {
    "name": "John Doe",
    "email": "john@example.com"
  }
}

PUT Request

{
  "url": "https://api.example.com/users/123",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer token123"
  },
  "body": {
    "name": "Jane Doe",
    "email": "jane@example.com"
  }
}

PATCH Request

{
  "url": "https://api.example.com/users/123",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer token123"
  },
  "body": {
    "email": "newemail@example.com"
  }
}

DELETE Request

{
  "url": "https://api.example.com/users/123",
  "headers": {
    "Authorization": "Bearer token123"
  }
}

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-http-request

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/mcp-server-http-request
npx @modelcontextprotocol/inspector uv run mcp-server-http-request

Development

To set up for development:

# Clone the repository
git clone <repository-url>
cd mcp-server-http-request

# Install dependencies
uv pip install -e .

License

mcp-server-http-request is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Metadata

Release files for iflow-mcp_statespace-tech-mcp-server-http-request 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_statespace-tech-mcp-server-http-request 0.1.0
File Size Uploaded
iflow_mcp_statespace_tech_mcp_server_http_request-0.1.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_statespace-tech-mcp-server-http-request 0.1.0
File Interpreter ABI Platform
iflow_mcp_statespace_tech_mcp_server_http_request-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / iflow_mcp_statespace_tech_mcp_server_http_request-0.1.0.tar.gz

Download URL iflow_mcp_statespace_tech_mcp_server_http_request-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6a7e5e78d2332bf56bb6af14b17edfaf75c7bcbb22adfa9d3e8221b71409918d
BLAKE2b-256 checksum
How to use checksums
6a272a5ef6fa8b86667c7e2773fb7ee76720b79906727779a18d90ac442c4f9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_statespace_tech_mcp_server_http_request-0.1.0-py3-none-any.whl

Download URL iflow_mcp_statespace_tech_mcp_server_http_request-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0154ce48d011e6cd306f772e7a331ee92a98eb8ba7661f9c32652fa14111df38
BLAKE2b-256 checksum
How to use checksums
6e0bb7fe48841da4cdd368e154798985be0e3a6fc5ca369350e7c76a473eacb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page