Control MCP server access for your organization changedmanaged-mcp
Nearest release: v2.1.335, published under 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 2 Dec 2026 22:53 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 2 Dec 2026 23:07 UTC.
Upstream edited
Recorded here
Lines+7added
Lines−5removed
From line
40
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits39to this page, all time
The whole hunk
from line 40, old and new numbered
/
from line 40
4040
4141## Exclusive control with managed-mcp.json
4242
43When you deploy a `managed-mcp.json` file, Claude Code loads only these MCP servers:
43When you deploy a `managed-mcp.json` file, the MCP servers that can still load include:
4444
4545* The servers the file defines
4646* Servers you [provide through `managedMcpServers`](#provide-servers-through-managed-settings)
from line 47
4747* In-process servers that the app that started the session registers, such as the VS Code extension's own server or the [connectors the desktop app delivers](https://code.claude.com/docs/en/mcp.md#how-connectors-reach-claude-code)
4848* The server that Claude Code creates when a [mod](https://code.claude.com/docs/en/plugins/mods/overview.md) [adds tools](https://code.claude.com/docs/en/plugins/mods/api.md#add-a-tool). To block the tools that your users' mods add, [stop user-installed mods from loading](https://code.claude.com/docs/en/plugins/mods/admin.md#stop-user-installed-mods-from-loading).
4949* The built-in [Claude in Chrome](https://code.claude.com/docs/en/chrome.md) server, if you [allow it alongside the managed set](#allow-claude-in-chrome-alongside-the-managed-set)
50* On a self-hosted runner with Claude Code v2.1.301 or later, the `claude-code-remote` server, with [only its repository tools](https://code.claude.com/docs/en/self-hosted-environments-configuration.md#turn-off-built-in-session-tools)
5051
51Users can't add, modify, or use any other MCP servers, including plugin-provided servers and servers passed with the [`--mcp-config` CLI flag](https://code.claude.com/docs/en/cli-reference#cli-flags). The file also suppresses the claude.ai connectors Claude Code fetches itself unless you [allow them alongside the managed set](#allow-claude-ai-connectors-alongside-the-managed-set).
52From their next launch, users can't use the servers in `.mcp.json` and `~/.claude.json` files or in [plugins](https://code.claude.com/docs/en/mcp.md#plugin-provided-mcp-servers). They also can't add servers with the [`--mcp-config` CLI flag](https://code.claude.com/docs/en/cli-reference#cli-flags). The file also suppresses the claude.ai connectors Claude Code fetches itself unless you [allow them alongside the managed set](#allow-claude-ai-connectors-alongside-the-managed-set).
5253
5354### Deploy managed-mcp.json
5455
from line 101
100101When a session receives servers through `--mcp-config` while a `managed-mcp.json` that Claude Code can read and parse is deployed, what the user sees differs between a workstation and a cloud session:
101102
102103* On a workstation, Claude Code exits at startup with `You cannot dynamically configure MCP servers when an enterprise MCP config is present`.
103* In [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) on a host where the file is deployed, such as a [self-hosted runner](https://code.claude.com/docs/en/self-hosted-environments-configuration.md#mcp-servers), Claude Code starts with the managed servers only and skips the claude.ai connectors and other servers the cloud host delivers through `--mcp-config`. Nothing in the session tells the user which servers were left out. Claude Code names them in a warning on its stderr, which a self-hosted runner records at the `debug` log level.
104* In [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) on a host with the file deployed, Claude Code skips the claude.ai connectors and other servers the cloud host delivers through `--mcp-config`, apart from [a few exceptions](#exclusive-control-with-managed-mcp-json). A [self-hosted runner](https://code.claude.com/docs/en/self-hosted-environments-configuration.md#mcp-servers) is one such host. Nothing in the session tells the user which servers Claude Code skipped. Claude Code names them in a warning on its stderr, which a self-hosted runner records at the `debug` log level.
104105
105106The `--strict-mcp-config` flag asks to replace the managed set. If a user passes it while such a file is deployed, Claude Code exits at startup on a workstation and in a cloud session alike.
106107
from line 365
364365
365366#### Servers that skip the allowlist check
366367
367Three groups of servers skip the allowlist check, in addition to the in-process `type: "sdk"` servers that skip [all three checks](#how-a-server-is-evaluated):
368Servers that skip the allowlist check include these groups, in addition to the in-process `type: "sdk"` servers that skip [all three checks](#how-a-server-is-evaluated):
368369
369370* The organization's own servers: every `managedMcpServers` entry, and any `managed-mcp.json` entry whose values use no `${VAR}` expansion outside `env`.
370371* Some built-in servers, such as the `ide` server Claude Code connects to in a running VS Code or JetBrains IDE, and Claude in Chrome in terminal sessions.
371372* A [Claude Tag](https://code.claude.com/docs/en/claude-tag.md) session's Slack tools: the servers it uses to read the thread and post its replies load without an allowlist entry.
373* On a self-hosted runner, the `claude-code-remote` server, which loads with [only its repository tools](https://code.claude.com/docs/en/self-hosted-environments-configuration.md#turn-off-built-in-session-tools) when no entry matches it.
372374
373375A `managed-mcp.json` server that uses `${VAR}` expansion in its command, arguments, URL, or headers is still checked. Claude Code also checks every server a user, a plugin, or claude.ai adds, and every server a user passes with `--mcp-config`. For the versions that changed which `managed-mcp.json` servers are checked, and how to keep one from loading, see [How allowlists and denylists apply to the managed set](#how-allowlists-and-denylists-apply-to-the-managed-set).
374376
No line in this hunk matches that.