Resources / MCP Server Risk Directory / Fetch MCP Server (mcp-server-fetch)
Is the Fetch MCP Server (mcp-server-fetch) safe? Risks, permissions and safe setup
Developers and researchers letting an agent read web pages and documentation as markdown. Here is what an AI agent can do through it, its published vulnerabilities and how to set it up safely.
Baseline risk
- Capabilities: 15 of 40
- Read-plus-exfiltrate: no
- Hidden instructions (publicly verified): none known
- Third-party publisher: +10
Before your own factors: version pinning, number of users and policy coverage. How we score
- Maker
- Model Context Protocol project (modelcontextprotocol/servers)
- Publisher
- MCP project reference server
- Runs
- Local (runs on the device)
- Transport
- stdio, streamable-http
- Authentication
- none (local process permissions)
- Tools
- 1
- Built-in limits
- --allowed-hosts restricts fetch targets; private-address guard on by default (disabled by --allow-private-ips); robots.txt obeyed for model-initiated calls unless --ignore-robots-txt
- License
- MIT
- Source
- github.com/modelcontextprotocol/servers/tree/main/src/fetch
- Last verified
- 2026-11-23
What an agent can do through it
| Tool | Type | What it does |
|---|---|---|
| fetch | Network | Fetches any URL and returns its content as markdown or raw (url, max_length, start_index, raw, timeout_ms) |
Known vulnerabilities
| ID | Issue | Published | Fixed in |
|---|---|---|---|
| GHSA-v38p-wf49-hx2j Moderate (CVSS 4.0 6.3) | fetch: private-address guard bypass via IDNA hostnames (check and connect resolve different names) Affected: >= 2026.10.10, <= 2026.10.19. | 2026-10-25 | 2026.10.24 |
| GHSA-66qx-2266-pmj6 Low (CVSS 3.1) | fetch server: SSRF guard treats the well-known NAT64 prefix 64:ff9b::/96 as public (metadata address reachable on NAT64/DNS64 egress) Affected: >= 2026.10.10, <= 2026.10.19. | 2026-10-25 | 2026.10.24 |
| GHSA-3jqg-r5pp-rmp2 Low (CVSS 3.1) | robots.txt enforcement bypass via HTTP redirects in mcp-server-fetch Affected: >= 0.6.1, <= 2026.10.19. | 2026-10-25 | 2026.10.24 |
| GHSA-3rxj-6jhw-qfv7 Low (CVSS 3.1) | mcp-server-fetch: IPv6 site-local fec0::/10 classified as public (SSRF guard classifier gap, CWE-918) Affected: >= 2026.10.10, < 2026.11.11. | 2026-11-11 | 2026.11.11 |
| GHSA-f9hh-cmx9-2f23 Low (CVSS 3.1) | mcp-server-fetch: robots.txt path-canonicalization bypass (e.g. //private fetched while Disallow: /private) Affected: >= 0.6.1, < 2026.11.11. | 2026-11-11 | 2026.11.11 |
Main risks
Fetched pages carry prompt injection into the agent
LLM01:2025 Prompt Injection
Every page the fetch tool returns is attacker-controllable text that lands directly in the model context. A hostile page can instruct the agent to call other connected tools.
Data leaves through URLs the model builds
LLM02:2025 Sensitive Information Disclosure
The fetch tool will request any URL the model writes, so secrets gathered by other tools can be appended to a query string sent to an attacker's host. Without --allowed-hosts there is no destination limit.
SSRF into internal networks and cloud metadata
ASI02 Tool Misuse and Exploitation
The README warns the server can access local and internal IP addresses. The private-address guard is on by default, but four advisories found guard and robots.txt bypasses, and --allow-private-ips turns it off entirely.
Unpinned install stays on a version with guard bypasses
ASI04 Agentic Supply Chain Vulnerabilities
The official uvx mcp-server-fetch and docker mcp/fetch examples have no version or tag. Fixes for SSRF guard gaps shipped in 2026.10.24 and 2026.11.11.
How to set it up safely
- Pin mcp-server-fetch to 2026.11.11 or later (for example uvx mcp-server-fetch==2026.11.11) and pin the Docker image tag.
- Set --allowed-hosts to the specific domains the agent needs.
- Never pass --allow-private-ips; keep the default private-address guard on.
- Do not use --ignore-robots-txt unless you have permission to crawl the target sites.
- Run it on a host or container without access to internal services or cloud metadata endpoints, or route it through --proxy-url with egress filtering.
- Keep the HTTP transport on its default 127.0.0.1:3001 bind.
- Do not combine it in one session with servers that read private data unless outbound hosts are restricted.
How we score
Baseline scores use the method from our guide to scoring every MCP server on employee laptops. Score the servers in your own environment with the free MCP Server Risk Checklist.
1. What the server can do (capped at 40)
- Sends messages externally: 15
- Fetches arbitrary URLs: 15
- Writes to code repositories: 15
- Reads and writes databases: 15
- Writes or deletes local files: 10
- Automates a browser: 10
- Reads and writes SaaS data: 10
- Reads local files: 5
- Runs code or commands: 15 (added for this directory)
- Changes cloud infrastructure: 15 (added for this directory)
- Moves money or changes payments: 15 (added for this directory)
2. What we found
- Read-plus-exfiltrate: reads sensitive data and can also send data out: 20
- Hidden instructions in a tool description (publicly verified): 30, and always Critical
- Third-party: not published by the maker of the system it connects to: 10
3. Band
0–24 Low · 25–49 Medium · 50–74 High · 75–100 Critical.
This is a baseline. The full method also adds points for unpinned package versions, how many employees use the server and whether a policy covers it; those depend on your setup, so check them in your own environment.
How AccuroAI helps
The AccuroAI Endpoint Agent finds the MCP servers configured in AI clients on managed devices and lists the tools each local server exposes. Each server gets a risk level with its capabilities, and you can block a server once in the console to enforce the block on every device: Claude Code and Cursor refuse calls to it, and for other clients the agent stops the server process. Tool calls from coding agents can be graded by risk, then allowed, confirmed with the employee or blocked.
MCP security · MCP server inventory · How to red team an MCP server
Questions about the Fetch MCP Server (mcp-server-fetch)
Is the Fetch MCP Server (mcp-server-fetch) safe to use?
It can be, with the right setup. At baseline it scores 25 (Medium) in the AccuroAI method because an agent using it can fetches arbitrary urls. Limit its scopes or tools, keep a person in the loop for write actions and pin the version you reviewed.
Does the Fetch MCP Server (mcp-server-fetch) have known vulnerabilities?
Yes. 5 published issues are listed on this page with the affected versions and the fix, as of 2026-11-23. Update to a fixed version and check the maker's advisories before approving a new release.
How do I restrict the Fetch MCP Server (mcp-server-fetch)?
Use the controls the maker provides: --allowed-hosts restricts fetch targets; private-address guard on by default (disabled by --allow-private-ips); robots.txt obeyed for model-initiated calls unless --ignore-robots-txt. Then grant the narrowest token or account, approve the server centrally and block other copies of it.
Related servers
Chrome DevTools MCP · Playwright MCP · All servers
Sources
- https://github.com/modelcontextprotocol/servers
- https://github.com/modelcontextprotocol/servers/tree/main/src/fetch
- https://github.com/modelcontextprotocol/servers/security/advisories
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-v38p-wf49-hx2j
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-66qx-2266-pmj6
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-3jqg-r5pp-rmp2
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-3rxj-6jhw-qfv7
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-f9hh-cmx9-2f23
Facts were verified on 2026-11-23 against the server’s own repository and documentation and public vulnerability records. Servers change often: check the maker’s latest release notes before approving a new version. This page is general security guidance, not a guarantee about any product.