---
title: "Fetch MCP Server: Read Web Pages as Markdown (uvx Setup)"
url: "https://mcpshelf.co/servers/fetch"
description: "The reference Fetch server turns any URL into clean markdown your assistant can read, page by page. uvx and Docker config, robots.txt, hosts, proxy."
updated: "2026-11-24"
site: "MCP Shelf"
---

# Fetch MCP Server

> One tool that fetches a URL and hands back the page as markdown.

Source: https://mcpshelf.co/servers/fetch  
Markdown: https://mcpshelf.co/servers/fetch.md  
Generated: 2026-11-24T21:04:31.276Z

## Facts

- **Name:** Fetch MCP Server
- **Tagline:** One tool that fetches a URL and hands back the page as markdown.
- **Description:** Fetch MCP Server is the Model Context Protocol project's reference server that downloads a web page and returns its content as markdown, in chunks, so a model can read any URL.
- **Repository:** https://github.com/modelcontextprotocol/servers
- **Package:** mcp-server-fetch 2026.11.18 (PyPI)
- **Install:** `claude mcp add fetch -- uvx mcp-server-fetch`
- **Transport:** stdio (local)
- **Auth:** No required keys or settings listed
- **Tools exposed:** 1: `fetch`
- **Category:** Browser and web data (https://mcpshelf.co/categories/browser-and-web)
- **Stats:** 92.2K GitHub stars, last commit 24 Nov 2026, 0 upvotes on MCP Shelf
- **Install check:** Started in our test
- **Listed:** 2026-11-24
- **Page updated:** 2026-11-24

## Full description

### What is Fetch MCP Server?

**Fetch MCP Server is the Model Context Protocol project's reference server that downloads a web page and returns its content as markdown, in chunks, so a model can read any URL.**

Fetch is one of the reference servers kept by the Model Context Protocol project. It does a single job well: give it a URL and it downloads the page, strips the layout and returns the content as markdown. Long pages come back in chunks, so the model can keep reading from where it stopped until it finds what it needs.

It is careful by default. It obeys robots.txt when the model asks for a page, refuses private and internal addresses (including cloud metadata endpoints) unless you allow them, and reads at most 5 MiB of any response. You can also limit it to a list of hosts.

|  |  |
| --- | --- |
| Made by | Model Context Protocol project (modelcontextprotocol/servers) |
| GitHub | https://github.com/modelcontextprotocol/servers |
| Licence | MIT |
| PyPI package | [mcp-server-fetch](https://pypi.org/project/mcp-server-fetch/) 2026.11.18 (18 Nov 2026) |
| GitHub stars | 92.2K |
| Last commit | 24 Nov 2026 |
| Tools | 1 |
| Runs on | Your computer |
| Install check | Started in our test |
| Category | [Browser and web data](https://mcpshelf.co/categories/browser-and-web) |
| Works with | Claude Code, Cursor, Claude Desktop, VS Code, Codex, Windsurf |
| Setup checked | 24 Nov 2026 |
| Page updated | 24 Nov 2026 |

**Our check:** We ran this exact config on 24 Nov 2026: it started and answered with 1 tools.

#### Try asking Fetch MCP Server

- "Read https://nextjs.org/blog and summarise the latest release post."
- "Fetch this changelog and tell me what changed in version 3: <link>"
- "Read this article and give me the five main points: <link>"

#### MCP Shelf take

> We started Fetch on our own test machine on 24 Nov 2026 and it answered with 1 tool. It only reads, so it cannot change anything on its own. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 100 tokens of context before you ask a thing. It is the most-starred of the 16 servers in its category on our shelf (92.2K stars).

— MCP Shelf tests (numbers from our own runs), tested on 24 Nov 2026

### What tools does Fetch MCP Server have?

We listed 1 tools on 24 Nov 2026. Every one of them only reads.

| Tool | Kind | What it is for |
| --- | --- | --- |
| `fetch` | reads | Downloads a URL and returns it as markdown, or as raw content with raw set to true. max_length caps each reply (5,000 characters by default) and start_index continues where the last one stopped. |

#### How clearly it describes its tools

1 of 1 tools have a description and 1 of 1 say whether they change things. The tool list takes at least ~100 tokens of context. Every tool says whether it only reads or can change things, so a client can ask before the risky ones.

### How do I install Fetch MCP Server?

#### Install steps from the Fetch MCP Server README

Copied from the project's [README on GitHub](https://github.com/modelcontextprotocol/servers/tree/HEAD/src/fetch#readme) on 24 Nov 2026 under its MIT licence.

##### Using uv (recommended)

When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will
use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-server-fetch*.

##### Using PIP

Alternatively you can install `mcp-server-fetch` via pip:

```
pip install mcp-server-fetch
```

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

```
python -m mcp_server_fetch
```

##### Configure for Claude.app

Add to your Claude settings:

**Using uvx**

```
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch"]
    }
  }
}
```

**Using docker**

```
{
  "mcpServers": {
    "fetch": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/fetch"]
    }
  }
}
```

**Using pip installation**

```
{
  "mcpServers": {
    "fetch": {
      "command": "python",
      "args": ["-m", "mcp_server_fetch"]
    }
  }
}
```

##### Configure for VS Code

For quick installation, use one of the one-click install buttons below...

For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`.

Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others.

> Note that the `mcp` key is needed when using the `mcp.json` file.

**Using uvx**

```
{
  "mcp": {
    "servers": {
      "fetch": {
        "command": "uvx",
        "args": ["mcp-server-fetch"]
      }
    }
  }
}
```

**Using Docker**

```
{
  "mcp": {
    "servers": {
      "fetch": {
        "command": "docker",
        "args": ["run", "-i", "--rm", "mcp/fetch"]
      }
    }
  }
}
```

#### What you need first

- uv, which runs it with uvx and fetches Python 3.11.5 or newer for you
- Optionally Node.js, for a sturdier HTML simplifier

#### Claude Code

Where: Your terminal, in the project folder

```bash
claude mcp add fetch -- uvx mcp-server-fetch
```

claude mcp add fetch -- uvx mcp-server-fetch

#### Cursor

Where: ~/.cursor/mcp.json, or .cursor/mcp.json in a project

```json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}
```

#### Claude Desktop

Where: claude_desktop_config.json (Settings → Developer → Edit Config)

```json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}
```

#### VS Code

Where: .vscode/mcp.json in your project

```json
{
  "servers": {
    "fetch": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}
```

In VS Code's mcp.json, put the entry under servers with the command uvx and the arg mcp-server-fetch. The README also shows a Docker version running mcp/fetch.

#### Codex

Where: ~/.codex/config.toml, shared by the Codex CLI, IDE extension and ChatGPT desktop app

```
[mcp_servers.fetch]
command = "uvx"
args = ["mcp-server-fetch"]
```

Or run: `codex mcp add fetch -- uvx mcp-server-fetch`

#### Windsurf

Where: ~/.codeium/windsurf/mcp_config.json

```json
{
  "mcpServers": {
    "fetch": {
      "command": "uvx",
      "args": [
        "mcp-server-fetch"
      ]
    }
  }
}
```

#### ChatGPT

Where: Not supported

ChatGPT on the web only connects to servers by URL. This one runs on your computer: the ChatGPT desktop app can start it from its MCP servers settings, with the same config as the Codex tab.

Add --allowed-hosts followed by host names to limit where it may go, or --ignore-robots-txt and --allow-private-ips only if you need them. Docker users can run mcp/fetch instead.

Checked against the project's own install docs on 24 Nov 2026: https://github.com/modelcontextprotocol/servers/tree/main/src/fetch#readme, https://pypi.org/project/mcp-server-fetch/

### How do I configure Fetch MCP Server?

| Setting | Kind | Required | What it does |
| --- | --- | --- | --- |
| `--allowed-hosts` | flag | no | Only lets it fetch from the hosts you list. *.example.com matches subdomains but not example.com itself. Example: `--allowed-hosts docs.python.org *.wikipedia.org` |
| `--ignore-robots-txt` | flag | no | Fetches pages even when the site's robots.txt disallows it. By default the model's requests obey robots.txt. |
| `--allow-private-ips` | flag | no | Allows loopback, private and link-local addresses, such as a local dev server. Off by default, which also blocks cloud metadata endpoints. |
| `--user-agent` | flag | no | Sends your own User-Agent instead of the ModelContextProtocol one. Example: `--user-agent=MyAgent/1.0` |
| `--timeout-ms` | flag | no | Changes the request timeout for every call, 30 seconds by default. Example: `--timeout-ms=60000` |
| `--proxy-url` | flag | no | Sends requests through a proxy. Without it, the standard HTTP_PROXY, HTTPS_PROXY and ALL_PROXY variables are used. |
| `--no-readability-js` | flag | no | Always uses the pure-Python HTML extractor, so the server never starts Node.js or installs packages from npm. |
| `--transport streamable-http` | flag | no | Runs it as a local HTTP service at http://127.0.0.1:3001/mcp instead of over stdio. |

### What can Fetch MCP Server read and change?

**It can read**

- Any public web page or file a URL points to, up to 5 MiB per response
- Each site's robots.txt, which it checks before the model's requests

**It can change**

- Nothing: it only sends GET requests and returns what comes back
- With Node.js installed, it may install its HTML simplifier from npm on first use

**Safer setup:** Keep the defaults, which obey robots.txt and refuse internal addresses, and add --allowed-hosts so the model can only read the sites you name.

### Good for

- Reading a docs page, changelog or article the model has not seen
- Giving a client with no web access a simple, free way to read links
- Restricting the model to a few trusted sites with --allowed-hosts

### Fetch MCP Server not working? Common fixes

**A page is refused because of robots.txt**
The server obeys robots.txt for the model's own requests. If you have the right to read the page, add --ignore-robots-txt to args.

**localhost or an intranet page is refused**
Private and internal addresses are blocked by default. Add --allow-private-ips. If you also use --allowed-hosts, list that host there too, since a request has to pass both checks.

**The answer stops partway through a long page**
That is the 5,000-character default. Ask the model to keep reading, which calls fetch again with start_index, or raise max_length.

**The server tries to reach the npm registry**
With Node.js on the machine it installs a JavaScript HTML simplifier the first time. Add --no-readability-js to stay on the Python extractor.

### What are the alternatives to Fetch MCP Server?

| Server | What it does | Tools | Runs on | Licence | Stars |
| --- | --- | --- | --- | --- | --- |
| [Fetch MCP Server](https://mcpshelf.co/servers/fetch) | One tool that fetches a URL and hands back the page as markdown. | 1 | Your computer | MIT | 92.2K |
| [Firecrawl](https://mcpshelf.co/servers/firecrawl) | Scrape pages, crawl sites and search, returned as clean Markdown. | 28 | Your computer or hosted | MIT | 7.7K |
| [Apify](https://mcpshelf.co/servers/apify) | Find and run ready-made Apify scrapers for maps, social media, shops and search. | 10 | Hosted or your computer | MIT | 13.6K |
| [Bright Data](https://mcpshelf.co/servers/bright-data) | Search and scraping through Bright Data, for sites that block ordinary requests. | 32 | Hosted or your computer | MIT | 2.7K |
| [Tavily MCP](https://mcpshelf.co/servers/tavily) | Tavily's search, page extraction, site mapping and crawling for agents. | 5 | Hosted or your computer | MIT | 2.5K |
| [Wigolo](https://mcpshelf.co/servers/wigolo) | Search, fetch, crawl and extract the web locally, with no keys or metered bill. | 10 | Your computer | AGPL-3.0-only | 5.5K |

### Fetch MCP Server FAQ

#### Is the Fetch MCP Server official?

Yes. It is one of the reference servers maintained by the Model Context Protocol project in the modelcontextprotocol/servers repository, published on PyPI as mcp-server-fetch.

#### Does the Fetch MCP Server need an API key?

No. It downloads pages directly from the sites, so there is no account, key or cost. You only need uv, or Python 3.11.5 or newer with pip.

#### Can it read pages that need JavaScript?

No. It downloads the HTML the server sends and converts it to markdown, without running scripts. For pages that only render in a browser, use a browser server such as Playwright or Chrome DevTools MCP.

#### Is the Fetch server safe to run?

It only reads, and by default it refuses private and internal addresses, checks every redirect, obeys robots.txt for the model's requests and stops at 5 MiB. Add --allowed-hosts to limit it to sites you trust.

#### How is it different from a search server?

Fetch reads a URL you or the model already have. It cannot search. Pair it with a search server such as Brave Search or DuckDuckGo when the model needs to find pages first.

#### How do I add the Fetch MCP Server to Claude Code?

Run claude mcp add fetch -- uvx mcp-server-fetch. uv downloads the package and a suitable Python the first time it starts.

#### How do I add the Fetch MCP Server to Cursor?

Add an entry named fetch to ~/.cursor/mcp.json with the command uvx and the args mcp-server-fetch, then reload Cursor's MCP servers. Use docker with run -i --rm mcp/fetch instead if you prefer Docker.

#### Can I use the Fetch MCP Server in VS Code?

Yes, with GitHub Copilot in Agent mode. Add a server named fetch with the command uvx and the args mcp-server-fetch to .vscode/mcp.json or your user MCP configuration.

#### Does the Fetch MCP Server work with Codex?

Yes. Run codex mcp add fetch -- uvx mcp-server-fetch, or add an [mcp_servers.fetch] table with the same command and args to ~/.codex/config.toml.

Full docs on GitHub: https://github.com/modelcontextprotocol/servers

## Notes for agents

Fetch these instead of parsing the HTML page:

- llms.txt: https://mcpshelf.co/llms.txt
- llms-full.txt: https://mcpshelf.co/llms-full.txt
- ai.txt: https://mcpshelf.co/ai.txt
- Full catalog (.md): https://mcpshelf.co/catalog.md
- API spec: https://mcpshelf.co/openapi.json
- MCP server: https://mcpshelf.co/mcp
- MCP manifest: https://mcpshelf.co/.well-known/mcp.json
- Developer docs: https://mcpshelf.co/developers

MCP endpoint (Streamable HTTP, no key): https://mcpshelf.co/mcp. REST API: https://mcpshelf.co/api/v1.

