MCP server providing HTTP request capabilities

MCP server providing HTTP request capabilities

mcp-server-requests•bycoucya

An MCP server that lets LLMs fetch web content and send arbitrary HTTP requests.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •fetch tool retrieves web content and can return it as raw HTML, cleaned HTML, or Markdown.
  • •fetch_to_file saves fetched web content to a file without feeding it into the LLM context.
  • •http_request supports GET, POST, PUT, PATCH and DELETE with custom headers, query parameters and text or JSON bodies.
  • •Supports custom or randomly generated User-Agent strings.

BEST FOR

  • •Fetching web pages and converting them to Markdown for LLM context.
  • •Making arbitrary HTTP API requests with custom methods, headers and bodies.
  • •Downloading web content to files without consuming LLM tokens.

ABOUT MCP-SERVER-REQUESTS

MCP server providing HTTP request capabilities is cataloged as an MCP server attributed to coucya. An MCP server that lets LLMs fetch web content and send arbitrary HTTP requests. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server providing HTTP request capabilities are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which HTTP methods does the http_request tool support?

It supports GET, POST, PUT, PATCH and DELETE.

Can the server use a custom User-Agent?

Yes, a custom User-Agent can be specified, and random User-Agent generation is also supported.

Upstream README

View this exact version on GitHub

README.md · 750053f77171 · Fetched 2026-11-13 10:27:42 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

中文


mcp-server-requests

An MCP server that provides HTTP request capabilities, enabling LLMs to fetch and process web content.

Features

  • fetch: Web content fetching tool
    • Supports converting web content to Markdown format
    • Supports filtering web content (non-visual elements like script, style, meta)
    • Feeds into LLM context, reducing token consumption through Markdown conversion or filtering non-visual elements
  • fetch_to_file: Web content saving tool
    • Web content is not fed into LLM context, avoiding excessive token consumption
  • http_request: Generic HTTP request tool
    • Full HTTP method support (GET, POST, PUT, PATCH, DELETE)
    • Supports custom request headers
    • Supports text and JSON request bodies
    • Returns complete HTTP response information (status, headers, body) for LLMs
  • Supports custom User-Agent
  • Supports random User-Agent generation
  • Supports using MCP Root capability, controlled by --use-root, usable with MCP Clients that have root capability

Installation

git clone https://github.com/coucya/mcp-server-requests.git
cd mcp-server-requests
pip install .

Usage

MCP Server Configuration

{
    "mcpServers": {
        "mcp-server-requests": {
            "command": "python",
            "args": [
                "-m",
                "mcp_server_requests"
            ]
        }
    }
}

Command Line

0. Start MCP Server

Start the MCP server directly:

python -m mcp_server_requests

Options

  • --user-agent TEXT: Specify custom User-Agent string
  • --random-user-agent [browser=xxx;os=xxx]: Use randomly generated User-Agent
  • --force-user-agent: Force using command line specified User-Agent, ignoring LLM provided UA
  • --list-os-and-browser: List available browsers and OS for random User-Agent generation
  • --use-root: Enable workspace root support for file operations (requires MCP Client with root capability support)
  • --allow-external-file-access: Allow file operations outside workspace (only with --use-root)

Option Details

  • --user-agent and --random-user-agent are mutually exclusive and cannot be used together

  • User-Agent setup methods:

    • Custom string: --user-agent "Mozilla/5.0 (...)"
    • Fully random: --random-user-agent
    • Conditional random generation:
      • Specify browser type: --random-user-agent browser=chrome
      • Specify OS: --random-user-agent os=windows
      • Both browser and OS: --random-user-agent browser=chrome;os=windows
      • Note: Browser and OS parameters are case insensitive
  • Use --list-os-and-browser to view available browsers and OS for --random-user-agent.

  • --force-user-agent option controls User-Agent priority:

    • When --force-user-agent is enabled: Force using command-line specified User-Agent (via --user-agent or --random-user-agent)
    • When --force-user-agent is disabled:
      • If LLM provides User-Agent in headers, use the LLM-provided one
      • Otherwise use command-line specified User-Agent
    • If none specified, use default User-Agent: Mozilla/5.0 (compatible; mcp-server-requests/{version})
  • --use-root enables file operations relative to workspace root:

    • Prerequisite: Requires MCP Client with root capability support
    • When enabled: fetch_to_file allows absolute paths or relative paths, relative paths are relative to workspace root
    • When disabled: fetch_to_file must use absolute paths, files are saved to specified absolute path locations
  • --allow-external-file-access: Controls whether file operations outside workspace are allowed (only usable with --use-root)

    • Prerequisite: Requires --use-root to be enabled, this option has no effect if --use-root is not enabled
    • When enabled: fetch_to_file can operate on files outside the workspace directory
    • When disabled: fetch_to_file can only operate on files within the workspace directory, even if absolute paths are provided, files outside the workspace cannot be operated on

1. fetch - Fetch Web Content

The fetch subcommand is equivalent to the MCP fetch tool functionality, used to demonstrate fetch capabilities.

python -m mcp_server_requests fetch <URL> [--return-content {raw,basic_clean,strict_clean,markdown}]

Options:

  • --return-content: Return content type (default: markdown)
    • raw: Return raw unprocessed HTML content (includes response headers)
    • basic_clean: Basic cleanup, removing non-display tags (script, style, meta, etc.) while preserving structure
    • strict_clean: Strict cleanup, removing non-display tags and most HTML attributes, keeping only essential structure
    • markdown: Convert HTML to clean Markdown format

Functionality

MCP Tool Details

1. fetch - Fetch Web Content

Fetch content from the specified URL and return it in the specified format.

Parameters:

  • url (required, string): Target URL, supports HTTP/HTTPS protocols
  • return_content (optional, enum): Content processing format, defaults to "markdown"
    • "raw": Return raw HTML content with complete HTTP response headers
    • "basic_clean": Basic cleanup, removing non-display tags (script, style, meta, etc.) while preserving HTML structure
    • "strict_clean": Strict cleanup, removing non-display tags and most HTML attributes, keeping only essential structure
    • "markdown": Convert HTML content to clean Markdown format

Returns: Content processed according to the specified format


2. fetch_to_file - Fetch Web Content and Save to File

Fetch content from the specified URL and save it to a file.

Parameters:

  • url (required, string): Target URL
  • file_path (required, string): File save path
    • When --use-root is enabled: Must be a relative path (relative to workspace root)
    • When --use-root is disabled: Must be an absolute path
  • return_content (optional, enum): Content processing format, defaults to "markdown", same options as fetch tool

Features:

  • Automatically creates parent directories for nested paths
  • All files saved with UTF-8 encoding
  • When --use-root is enabled, can work with --allow-external-file-access to control file access scope

Returns: Operation result or error message


3. http_request - Generic HTTP Request Tool

Send HTTP requests using any method and get complete responses.

Parameters:

  • url (required, string): Target URL
  • method (optional, enum): HTTP method, defaults to "GET"
    • "GET", "POST", "PUT", "PATCH", "DELETE"
  • query (optional, object): URL query parameters as key-value pairs, automatically URL-encoded
  • headers (optional, object): Custom HTTP request headers
  • data (optional, string): Text format request body data, mutually exclusive with json parameter
  • json (optional, any type): JSON format request body data, mutually exclusive with data parameter

Parameter Constraints:

  • data and json parameters cannot be used together
  • When using json parameter, Content-Type: application/json is automatically set
  • When using data parameter, it's recommended to manually set appropriate Content-Type

Returns: Complete HTTP response (status line, response headers, and response body)


Note: Individual HTTP method tools (http_get, http_post, http_put, http_patch, http_delete) have been removed and replaced by the unified http_request tool.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server providing HTTP request capabilities from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-requests)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research