Web search and web fetch changedthird-party/claude-desktop/web-tools
Nearest release: v2.1.334, published an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 1 Dec 2026 20:12 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 1 Dec 2026 20:37 UTC.
Upstream edited
Recorded here
Lines+20added
Lines−6removed
From line
7
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits27to this page, all time
### Route Web Fetch through your own MCP server
The whole hunk
from line 7, old and new numbered
/
from line 7
77* **Web Search** runs a search-engine query and returns ranked results.
88* **Web Fetch** retrieves the contents of a specific URL.
99
10In Claude Desktop on third-party (3P), both are subject to your configuration: search depends on your inference provider, and fetch depends on the egress allowlist you set.
10In Claude Desktop on third-party (3P), both are subject to your configuration: search depends on your inference provider, and fetch depends on the egress allowlist you set, or on your own MCP server if you route Web Fetch through it.
1111
1212## Web Search
1313
from line 126
126126
127127## Web Fetch
128128
129In Cowork and Chat, Web Fetch runs in the Claude Desktop main process on the user's device. The model supplies only the target URL; it cannot set headers, a request body, or credentials. Each request carries the app's own browser-style `User-Agent` header, which includes `Claude/<app version>`. The app checks every fetch, including redirect targets, against `coworkEgressAllowedHosts` before it sends the request. For Code sessions, see [How the egress allowlist applies in Code sessions](#how-the-egress-allowlist-applies-in-code-sessions).
129In Cowork and Chat, Web Fetch runs in the Claude Desktop main process on the user's device. The model supplies only the target URL; it cannot set headers, a request body, or credentials. Each request carries the app's own browser-style `User-Agent` header, which includes `Claude/<app version>`. The app checks every fetch, including redirect targets, against `coworkEgressAllowedHosts` before it sends the request. For Code sessions, see [How the egress allowlist applies in Code sessions](#how-the-egress-allowlist-applies-in-code-sessions). If you [route Web Fetch through your own MCP server](#route-web-fetch-through-your-own-mcp-server), that server makes the requests instead, and `coworkEgressAllowedHosts` doesn't limit them.
130130
131Cowork and Chat refuse every fetch while the key is unset or empty. To permit fetches:
131Unless you route Web Fetch through your own MCP server, Cowork and Chat refuse every fetch while the key is unset or empty. To permit fetches:
132132
133133| Goal | Set `coworkEgressAllowedHosts` to |
134134| - | - |
135135| Allow specific domains | `["docs.example.com", "*.example.corp"]` |
136136| Allow all hosts (no sandbox filtering) | `["*"]` |
137| Block all fetches, in Code sessions too | `[]` and add `"WebFetch"` to `disabledBuiltinTools` |
137| Block all fetches, in Code sessions too | `[]` and add `"WebFetch"` to `disabledBuiltinTools`. If you route Web Fetch through your own MCP server, also [stop that server's fetches](#route-web-fetch-through-your-own-mcp-server). |
138138
139139Wildcards match one or more leading subdomain labels (`*.example.com` matches `a.example.com` and `a.b.example.com`, but not `example.com`). A listed host that many organizations share, such as a cloud provider's API endpoint, is reachable from the agent's shell with any account's credentials. A command can then send data to an account outside your organization.
140140
from line 148
148148
149149In [Code](https://claude.com/docs/third-party/claude-desktop/code.md) sessions, Claude Code's Web Fetch tool also asks `api.anthropic.com` whether each domain is on Anthropic's blocklist before fetching, and refuses the fetch if that lookup cannot complete. If your devices cannot reach `api.anthropic.com`, or you do not want fetched hostnames sent there, set [`skipWebFetchPreflight`](https://claude.com/docs/third-party/claude-desktop/configuration#skipwebfetchpreflight) to `true`. The key requires Claude Desktop 1.37937.0 or later. Cowork sessions do not perform this lookup.
150150
151### Route Web Fetch through your own MCP server
152
153To have your own server fetch every page that Web Fetch reads for Claude, add `replacesBuiltinTools` to that server's remote or local entry in [`managedMcpServers`](https://claude.com/docs/third-party/claude-desktop/configuration#managedmcpservers), with the fetch tool's name as the server lists it. For example, `"replacesBuiltinTools": { "WebFetch": "fetch_page" }`. Your tool receives the page's `https` address in an argument named `url` and returns the page as text.
154
155Claude and users still see Web Fetch in Chat, Cowork, and Code sessions. Older versions of Claude Desktop either ignore the key or turn Web Fetch off.
156
157* **What limits a fetch**: your server decides which hosts it reaches, including private addresses and redirect targets. `coworkEgressAllowedHosts` and the sandbox don't limit these fetches, even while the list is unset or empty.
158* **What still applies**: a `WebFetch` entry in [`builtinToolPolicy`](https://claude.com/docs/third-party/claude-desktop/configuration#builtintoolpolicy), each [user's setting for Web Fetch](#user-settings-for-web-tools), and Claude Code permission rules and hooks for `WebFetch`. Claude Code runs no hook under your tool's name. In the server entry's `toolPolicy`, `"ask"` for your tool makes Web Fetch ask, and `"blocked"` turns Web Fetch off. If a deny or ask rule names a site, such as `WebFetch(domain:example.com)`, every fetch fails unless your tool returns the page's final address as `destination_url` in its structured content.
159* **Also add `"WebFetch"` to `disabledBuiltinTools`**: sessions that use your tool keep Web Fetch despite this entry. The entry removes Web Fetch where Claude would otherwise fetch pages directly, which covers versions that ignore the key, Claude Code in the terminal when it [follows your console settings](https://claude.com/docs/third-party/claude-desktop/admin-console-claude-code-reference.md#console-settings-that-claude-code-follows), and users whose [permission policy](https://claude.com/docs/third-party/claude-desktop/admin-console.md#per-group-permission-policies) leaves the server out. A permission policy that sets its own `disabledBuiltinTools` must list `"WebFetch"` too.
160* **When Web Fetch stops**: Web Fetch is off while more than one entry has `replacesBuiltinTools`, while the value can't be read, and for a user while the server's connector is switched off in that user's app. A fetch fails while the server isn't connected. In each case, Web Fetch doesn't request the page directly.
161* **To turn Web Fetch off**: list `"WebFetch"` in `disabledBuiltinTools`, and remove the server's entry or set your tool to `"blocked"`. If you remove only `replacesBuiltinTools`, Claude can still call your tool like any other MCP tool.
162
151163### How the egress allowlist applies in Code sessions
152164
153165In [Code](https://claude.com/docs/third-party/claude-desktop/code.md) sessions, `coworkEgressAllowedHosts` reaches Claude Code's own Web Fetch tool and shell sandbox as managed settings, unless [Claude Code managed settings that you deploy separately](https://claude.com/docs/third-party/claude-desktop/code.md#interaction-with-claude-code%E2%80%99s-own-managed-settings) take precedence:
from line 192
180192["WebSearch", "WebFetch"]
181193```
182194
195`"WebFetch"` doesn't remove Web Fetch while you [route Web Fetch through your own MCP server](#route-web-fetch-through-your-own-mcp-server).
196
183197With the web tools removed and `coworkEgressAllowedHosts` empty, commands in the agent's sandboxed shell reach no host other than those a [plugin declares for its command-line tool](#web-fetch). In Code sessions where [Claude Code's sandbox doesn't run](#how-the-egress-allowlist-applies-in-code-sessions), shell commands can reach any host your network allows.
184198
185199The agent can still read and write local files, run code against them, and call any MCP servers you've provisioned. See the [Locked down profile](https://claude.com/docs/third-party/claude-desktop/configuration.md#recommended-security-profiles).
from line 211
197211Your configuration sets the minimum for each tool:
198212
199213* **`WebSearch` or `WebFetch` set to `"ask"` in [`builtinToolPolicy`](https://claude.com/docs/third-party/claude-desktop/configuration#builtintoolpolicy)**: the user selects **Always ask** or **Blocked**, next to the line **Restricted by your admin**
200* **`WebSearch` or `WebFetch` listed in [`disabledBuiltinTools`](https://claude.com/docs/third-party/claude-desktop/configuration#disabledbuiltintools)**: the tool has no row, so the user has nothing to set
214* **`WebSearch` or `WebFetch` listed in [`disabledBuiltinTools`](https://claude.com/docs/third-party/claude-desktop/configuration#disabledbuiltintools)**: the tool has no row, so the user has nothing to set. The **Web fetch** row stays while you [route Web Fetch through your own MCP server](#route-web-fetch-through-your-own-mcp-server).
201215
202216The **Web search** row appears where your provider or gateway runs Web Search and `disabledBuiltinTools` doesn't list it, and controls that tool. When you configure the [built-in web search](#built-in-web-search), that server has a row of its own under **Customize > Connectors** and under **Connectors** in the **+** menu, and users control search from that row.
203217
No line in this hunk matches that.