What it is
The Fetch server is a reference implementation from the MCP project. It has a single fetch tool, plus a fetch prompt, that downloads a URL, converts HTML to markdown and returns it in pages controlled by max_length and start_index.
- Maintainer
- Reference server (MCP project)MCP project reference servers (github.com/modelcontextprotocol)
- Source
- modelcontextprotocol/servers92,573 GitHub stars · not stated on GitHub licence
- Transport
- stdio (default), Streamable HTTP (optional)
- Packages
- mcp-server-fetch pypi · latest 2026.12.5 · 900,044 downloads last month
- Latest release
- v2.7.0 2026-12-05
- Public advisories
- 6GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: no
- Deletes: no
- Runs code: no
- Network: yes
- Sends: no
It reads nothing from your disk. Its reach is the network, and what it brings back becomes model input.
| Tool | What it can do | Notes |
|---|---|---|
fetch | Reads, Network | Fetches a URL and returns markdown. Annotated read-only, idempotent and open-world. |
One tool, plus one prompt, per the README and src/mcp_server_fetch/server.py.
Credentials and least privilege
No credential. Optional arguments include --proxy-url, --user-agent, --ignore-robots-txt, --allowed-hosts and --allow-private-ips.
Public security advisories
Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range.
| Advisory | Severity | Summary | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-3xw7-4r9f-3qf8 | Moderate | fetch: small page OOMs the server during HTML-to-Markdown conversion | < 2026.12.5 | 2026.12.5 |
| GHSA-8hv3-6wmw-hg7m | Moderate | fetch: robots.txt User-agent groups cause quadratic memory blowup | < 2026.12.5 | 2026.12.5 |
| GHSA-ggc4-rvqq-2xjh | Low | fetch: robots.txt is ignored when it starts with a UTF-8 BOM | < 2026.12.5 | 2026.12.5 |
| GHSA-m4f6-xq5r-g74q | Low | fetch: punycode charset in Content-Type hangs the server for 16 min | < 2026.12.5 | 2026.12.5 |
| GHSA-g7v6-hfx3-8rv6 | Low | Incomplete fix for GHSA-3rxj-6jhw-qfv7: robots.txt path normalisation in mcp-server-fetch still misses backslash and path-parameter spellings | >= 2026.10.10, < 2026.11.27 | 2026.11.27 |
| GHSA-66qx-2266-pmj6 | Low | fetch server: SSRF guard treats the well-known NAT64 prefix 64:ff9b::/96 as public, so a metadata address is reachable on NAT64/DNS64 egress | >= 2026.10.10, <= 2026.10.19 | 2026.10.24 |
What stands out
- By default it refuses addresses that are not globally routable (loopback, private ranges, link-local, shared address space), checks every redirect hop, and connects only to an address it checked. The README says
--allow-private-ipsturns this off. - A request sent through a proxy is the stated exception: the proxy resolves the hostname, so the server cannot check where it lands.
- It obeys robots.txt for tool fetches by default, and
--ignore-robots-txtturns that off. - Any page it fetches is untrusted text that goes straight to the model, so a hostile page can try to steer the agent.
Safe-install checklist
Install command from the project's docs: uvx mcp-server-fetch.
- Pin the version. Use an exact version, not
latest:uvx mcp-server-fetch==2026.12.5. Python package, run with uvx. - Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
- Leave
--allow-private-ipsand--ignore-robots-txtoff. If you need internal docs, use--allowed-hostsfor just those hosts, if your version supports it. - Do not combine it with a tool that can send data out, such as a shell, a mailer or a git push, unless you approve each action. That is the usual prompt-injection path.
- Treat the output as untrusted. A pinned, current version matters here, because the advisories below are about the network guard and parsing.
- Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can Fetch MCP server do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; reaches the open web or a third-party service beyond the account you connect it to. It reads nothing from your disk. Its reach is the network, and what it brings back becomes model input.
Does Fetch MCP server need a token or API key?
No credential. Optional arguments include `--proxy-url`, `--user-agent`, `--ignore-robots-txt`, `--allowed-hosts` and `--allow-private-ips`.
Has Fetch MCP server had public security advisories?
Yes. 6 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.
How do I keep Fetch MCP server from changing under me?
Pin the version, for example uvx mcp-server-fetch==2026.12.5. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
