Skip to content
AI Dev Toolkit.
Esc
  • Loading…

MCP server · Reference servers

Fetch MCP server

The Fetch MCP server is the Model Context Protocol project’s reference server for reading web pages. It fetches a URL and returns it as Markdown, in chunks, with private addresses blocked by default. It runs locally with uvx and needs no account, but pages it returns can carry prompt-injection text.

Maintainer
Model Context Protocol project (official)
Licence
MIT
Runs
Locally (uvx)
Sign-in
None
Last activity
2026-10-11

Overview

What can the Fetch MCP server do?

Fetch is a Python reference server from the MCP project. It has one tool, fetch, which downloads a URL and turns the HTML into Markdown, or returns the raw content if asked. Long pages are cut to a set length, and the model can ask for the next chunk with a start index, so it can read a page in parts until it finds what it needs. The same action is also offered as a prompt.

It suits quick lookups of a known URL when you don’t need a search engine or a full browser. By default it obeys robots.txt for model-initiated requests and refuses private, loopback, link-local and cloud metadata addresses, checking each redirect too. Flags let you ignore robots.txt, allow private addresses, set a custom user agent or use a proxy. Installing Node.js is optional and switches it to a different HTML simplifier.

Tools

Tools it gives the assistant

  • Fetch a URL and convert the page to Markdown
  • Return raw content without conversion
  • Read long pages in chunks with max_length and start_index
  • Offer the same fetch as a user prompt

Install

How do I install Fetch MCP in Claude Code, Cursor or VS Code?

You need:

  • uv (for uvx) or pip, with Python 3.10 or newer
  • Node.js (optional, for the alternative HTML simplifier)

Run in your project. --scope local keeps the servers private to you in this project; use user for every project.

Terminal
claude mcp add --scope local fetch -- uvx mcp-server-fetch
Native Windows (PowerShell)
claude mcp add --scope local fetch -- uvx mcp-server-fetch

Need another app? Open Fetch MCP Server in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.

Is the Fetch MCP server safe? Check before you install

  • It reaches any public host on the internet, so page content it returns can contain prompt-injection text.
  • Private, loopback and metadata addresses are refused by default; --allow-private-ips turns that guard off and the README notes it does not stop DNS rebinding.
  • --ignore-robots-txt makes it ignore site crawling rules; leave it off unless you have a reason.
  • A local MCP server runs with your user account’s permissions. Install it only from the source linked above. See how to choose a safe server.

FAQ

Fetch MCP questions

Is the Fetch MCP server official?

Yes. Model Context Protocol project publishes and maintains it, under the MIT licence. Install it only from the source linked on this page, not from a copy in another directory.

Is Fetch MCP server remote or local?

Local. Your MCP app starts it on your machine with uvx, and it runs with your user account’s permissions.

Does Fetch MCP server need an API key or account?

No. It needs no account, API key or sign-in to run. You also need: uv (for uvx) or pip, with Python 3.10 or newer; Node.js (optional, for the alternative HTML simplifier).

Why it’s listed

Why we list it

The simplest way to let an assistant read a web page, with sensible network guards, kept by the MCP project.

Related

All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?