# fetchmcp [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/labtoolsstudio/fetchmcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 282  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fetchmcp

## Description
Drop-in fetch MCP: clean Markdown from any URL, with JS rendering and anti-bot.

## Tools
Capabilities this server exposes over MCP:

- **read_url** — Fetch a web page and return its content as clean, LLM-ready Markdown. Full content by default (no truncation). Handles HTML, plain text, Markdown, and JSON responses. JavaScript-heavy pages are rendered automatically in a real browser when the static HTML is an empty SPA shell. Returns an honest typed error when the site blocks access or the content cannot be read — it never silently returns partial or fake content.
- **read_docs** — Fetch a documentation or reference page and return only its main content as clean Markdown, stripping navigation sidebars, headers, footers, and other page chrome. Use this for API docs, guides, and reference pages. For general web pages use read_url. Same JS-rendering, anti-bot, and honest-error behavior as read_url.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "fetchmcp": {
    "command": "npx",
    "args": ["-y","@labtoolsstudio/fetchmcp"]
  }
}
```

## Documentation

## What fetchmcp MCP server does

The fetchmcp MCP server exposes web retrieval over MCP for agents that need readable page content rather than raw browser output. It connects to HTTP and HTTPS URLs and converts pages into Markdown. The `read_url` tool is intended for general web pages, while `read_docs` applies additional cleanup for documentation by removing navigation sidebars, headers, and footers.

Responses can be limited with `max_length` or read in segments with `start_index`. `read_url` can also return raw HTML when requested. Both tools accept extra request headers, which supports cases such as authenticated pages requiring an authorization header or cookie.

## How it works

The fetchmcp MCP server uses an escalating retrieval path. It first performs a normal request, extracts the useful article or page content with Readability, and converts that result to Markdown. This path does not require a browser download and handles static pages directly.

If the response looks like an empty single-page application shell, encounters selected bot protection, or returns status codes such as 403, 429, or 503, the server can switch to a stealth Chromium browser through Patchright. Browser installation is lazy: Chromium is downloaded the first time a page needs JavaScript unless configuration changes that behavior.

An optional FlareSolverr endpoint provides another step for challenges the browser cannot clear. The fetchmcp MCP server reports typed outcomes instead of presenting a CAPTCHA, error page, or incomplete shell as valid content. Possible statuses include `blocked`, `blocked_ssrf`, `needs_js`, `http_error`, `timeout`, `network_error`, `unsupported_content`, and `empty`.

## Setup and configuration

Install it through an MCP client using `npx`:

```json
{
  "mcpServers": {
    "fetchmcp": {
      "command": "npx",
      "args": ["-y", "@labtoolsstudio/fetchmcp"]
    }
  }
}
```

No browser is downloaded during the normal initial installation. Set `FETCHMCP_PREINSTALL_BROWSER=1` to download Chromium during installation, or set `FETCHMCP_SKIP_BROWSER_DOWNLOAD=1` to remain static-only. In static-only mode, JavaScript pages return `needs_js`.

`FETCHMCP_TIMEOUT_MS` controls the per-request timeout and defaults to 30,000 milliseconds. `FETCHMCP_MAX_RETRIES` controls retries for network failures and selected rate or service errors, defaulting to two. Set `FETCHMCP_ALLOW_PRIVATE_IP=1` only when trusted private or localhost resources are needed. `FETCHMCP_FLARESOLVERR_URL` points to a self-hosted FlareSolverr service.

## Tools and capabilities

- `read_url`: fetches a page as Markdown, with options for rendering, raw HTML, headers, length limits, and paging.
- `read_docs`: fetches documentation with navigation, header, and footer cleanup.
- JavaScript rendering can be forced with `render: true`, disabled with `render: false`, or selected automatically when needed.
- Private and metadata IP addresses are refused by default for SSRF protection.
- Network retries use backoff and honor `Retry-After` when available.

The fetchmcp MCP server is suited to agents that need full-page retrieval beyond a fixed 5,000-character response limit, provided the target site permits access.

## Limitations and notes

Pages protected by stronger bot defenses may remain inaccessible. FlareSolverr can be configured for some additional challenges, but the material does not promise access to every protected site. Disabling browser downloads prevents JavaScript rendering. Private-network access is intentionally blocked by default and should only be enabled for trusted environments.

The repository documents an MIT license. Development commands include TypeScript compilation, unit tests for block detection and SSRF behavior, and live end-to-end tests against real sites.

_Full upstream README: https://allmcps.com/mcp/fetchmcp/readme_

