PTS security notes / MCP servers / Fetch MCP server

Is Fetch MCP server safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

It makes outbound web requests for your model and hands the page text back as input, so the risk is mostly prompt injection from pages it fetches and which addresses it may reach. By default it refuses private, loopback and link-local addresses, including cloud metadata endpoints. Keep that default, pin a current version, and leave --allow-private-ips off.

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.

It reads nothing from your disk. Its reach is the network, and what it brings back becomes model input.

ToolWhat it can doNotes
fetchReads, NetworkFetches 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.

AdvisorySeveritySummaryAffectedFixed in
GHSA-3xw7-4r9f-3qf8Moderatefetch: small page OOMs the server during HTML-to-Markdown conversion< 2026.12.52026.12.5
GHSA-8hv3-6wmw-hg7mModeratefetch: robots.txt User-agent groups cause quadratic memory blowup< 2026.12.52026.12.5
GHSA-ggc4-rvqq-2xjhLowfetch: robots.txt is ignored when it starts with a UTF-8 BOM< 2026.12.52026.12.5
GHSA-m4f6-xq5r-g74qLowfetch: punycode charset in Content-Type hangs the server for 16 min< 2026.12.52026.12.5
GHSA-g7v6-hfx3-8rv6LowIncomplete 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.272026.11.27
GHSA-66qx-2266-pmj6Lowfetch 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.192026.10.24

What stands out

Safe-install checklist

Install command from the project's docs: uvx mcp-server-fetch.

  1. Pin the version. Use an exact version, not latest: uvx mcp-server-fetch==2026.12.5. Python package, run with uvx.
  2. Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
  3. Leave --allow-private-ips and --ignore-robots-txt off. If you need internal docs, use --allowed-hosts for just those hosts, if your version supports it.
  4. 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.
  5. Treat the output as untrusted. A pinned, current version matters here, because the advisories below are about the network guard and parsing.
  6. Snapshot the tool list. Save the tools/list output 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.
  7. 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.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages