Skip to main content

A Model Context Protocol (MCP) server providing advanced HTTP request capabilities with realistic browser emulation for Claude and other LLMs

Project description

mcp-rquest

A Model Context Protocol (MCP) server that provides advanced HTTP request capabilities for Claude and other LLMs. Built on rquest, this server enables realistic browser emulation with accurate TLS/JA3/JA4 fingerprints, allowing models to interact with websites more naturally and bypass common anti-bot measures.

Features

  • Complete HTTP Methods: Support for GET, POST, PUT, DELETE
  • Browser Fingerprinting: Accurate TLS, JA3/JA4, and HTTP/2 browser fingerprints
  • Content Handling:
    • Automatic handling of large responses with token counting
    • HTML to Markdown conversion for better LLM processing
    • Secure storage of responses in system temporary directories
  • Authentication Support: Basic, Bearer, and custom authentication methods
  • Request Customization:
    • Headers, cookies, redirects
    • Form data, JSON payloads, multipart/form-data
    • Query parameters
  • SSL Security: Uses BoringSSL for secure connections with realistic browser fingerprints

Available Tools

  • HTTP Request Tools:

    • http_get - Perform GET requests with optional parameters
    • http_post - Submit data via POST requests
    • http_put - Update resources with PUT requests
    • http_delete - Remove resources with DELETE requests
  • Response Handling Tools:

    • get_stored_response - Retrieve stored large responses, optionally by line range
    • get_stored_response_with_markdown - Convert HTML responses to Markdown

Installation

Using uv (recommended)

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

Using pip

Alternatively you can install mcp-rquest via pip:

pip install mcp-rquest

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

python -m mcp_rquest

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx:

{
  "mcpServers": {
    "http-rquest": {
      "command": "uvx",
      "args": ["mcp-rquest"]
    }
  }
}

Using pip:

{
  "mcpServers": {
    "http-rquest": {
      "command": "python",
      "args": ["-m", "mcp_rquest"]
    }
  }
}

Using pipx:

{
  "mcpServers": {
    "http-rquest": {
      "command": "pipx",
      "args": ["run", "mcp-rquest"]
    }
  }
}

Browser Emulation

mcp-rquest leverages rquest's powerful browser emulation capabilities to provide realistic browser fingerprints, which helps bypass bot detection and access content normally available only to standard browsers. Supported browser fingerprints include:

  • Chrome (multiple versions)
  • Firefox
  • Safari (including iOS and iPad versions)
  • Edge
  • OkHttp

This ensures that requests sent through mcp-rquest appear as legitimate browser traffic rather than bot requests.

Development

Setting up a Development Environment

  1. Clone the repository
  2. Create a virtual environment using uv:
    uv venv
    
  3. Activate the virtual environment:
    # Unix/macOS
    source .venv/bin/activate
    # Windows
    .venv\Scripts\activate
    
  4. Install development dependencies:
    uv pip install -e ".[dev]"
    

Acknowledgements

  • This project is built on top of rquest, which provides the advanced HTTP client with browser fingerprinting capabilities.
  • rquest is based on a fork of reqwest.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_rquest-0.1.5.tar.gz (62.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_rquest-0.1.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_rquest-0.1.5.tar.gz.

File metadata

  • Download URL: mcp_rquest-0.1.5.tar.gz
  • Upload date:
  • Size: 62.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for mcp_rquest-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b04da5f31a90d4991b2b7b5ce63494eec3e669cd26a02893f5e03ccdc1922fae
MD5 e49413d3754fa03daa719fe8037303f4
BLAKE2b-256 47eca4b7b4470bf81a6366f12fff367a7de143f0748503fc34638a6537153f3d

See more details on using hashes here.

File details

Details for the file mcp_rquest-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mcp_rquest-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for mcp_rquest-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 38837df57219194d6ddb9b82f204293e24d305ca021ec72e7e569d03476a2cc2
MD5 2c00c84ea31f2cc80a2a3264ccd8a156
BLAKE2b-256 300f34e2a53354c639c886f348081d8e50811077f747ac7c8199dc8f26cb0fa1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page