Claude Code "blocks MCP servers that run on this computer": disableLocalMcpServers#
Published by Alex Sorokoletov
disableLocalMcpServers is a managed setting that lets an administrator stop MCP servers that run on this computer. When an admin sets it to true, a stdio MCP server loads only if the allowedMcpServers list in the highest administrator settings names it. A blocked server shows "Your organization blocks MCP servers that run on this computer unless your admin allows them." It shipped in v2.1.335.
What it blocks#
A stdio MCP server is one Claude Code launches as a process on the machine, declared with a command and args in .mcp.json, user settings, or project settings. Those are the servers this setting governs. Remote MCP servers reached over HTTP or SSE run elsewhere, so they are not what "servers that run on this computer" means and this setting does not cover them.
With disableLocalMcpServers set to true in managed settings, each stdio server is checked against the allowedMcpServers list of the highest administrator source that sets one. A server the list names loads. A server the list does not name is dropped, and its tools never reach the session. The status line reports it as "Blocked by enterprise policy (allowedMcpServers/deniedMcpServers)".
One entry is exempt: a server declared in an enterprise managed-mcp.json whose command and args hold no variable. That server is provided by the organization, so it loads even when disableLocalMcpServers is on. A managed-mcp.json entry that interpolates a variable into its command or arguments is not exempt and still needs the allowlist.
Who can set it#
This is an administrator control. Claude Code honors disableLocalMcpServers only when it comes from an administrator's managed settings file, not from a user's settings, a project's .claude/settings.json, the Windows HKCU registry hive, or a --managed-settings argument on the command line. Setting it anywhere else has no effect.
It is one of the restrictive managed flags, alongside allowManagedMcpServersOnly, disableClaudeAiConnectors, allowManagedPermissionRulesOnly, and disableAllHooks. In an organization managed through Anthropic's Enterprise Admin Console, it is the Allow local MCP servers toggle: turning that off is the same as setting disableLocalMcpServers to true.
How an admin turns it on#
In the managed settings file, set the flag and name the stdio servers the organization permits:
{
"disableLocalMcpServers": true,
"allowedMcpServers": {
"company-internal": {}
}
}
With that in place, only company-internal loads from the user's or project's .mcp.json; every other stdio server is dropped. To block all local servers and allow none, set the flag with an empty or absent allowedMcpServers.
The managed settings file lives where the platform reads policy: /Library/Application Support/ClaudeCode/managed-settings.json on macOS, /etc/claude-code/managed-settings.json on Linux, and C:\ProgramData\ClaudeCode\managed-settings.json on Windows. A user cannot override it from their own settings.
How a blocked user gets a server back#
A user who sees "Your organization blocks MCP servers that run on this computer unless your admin allows them" cannot turn the setting off; it is read only from administrator settings. The server has to be added to the administrator allowedMcpServers list, or provided through managed-mcp.json with no variable in its command, by whoever manages the organization's policy.
What takes effect#
| Server | With disableLocalMcpServers on |
|---|---|
Stdio server named in managed allowedMcpServers | Loads |
Stdio server not in allowedMcpServers | Dropped; "Blocked by enterprise policy" |
Enterprise managed-mcp.json entry, no variable in command or args | Loads |
Enterprise managed-mcp.json entry with a variable in command or args | Needs the allowlist |
| Remote MCP server over HTTP or SSE | Not governed by this setting |
Setting placed in user, project, HKCU, or --managed-settings | Ignored |
Should an organization turn it on#
Turn it on when stdio MCP servers are a concern because they run arbitrary local processes with the user's environment, and the organization wants a named allowlist instead. Pair it with a short allowedMcpServers for the servers the team needs. Leave it off when developers are trusted to add their own local servers, or use deniedMcpServers to block named servers while leaving the rest available. For remote servers, which this setting does not reach, control access with allowedMcpServers, deniedMcpServers, or disableClaudeAiConnectors.
FAQ#
Q: What does "Your organization blocks MCP servers that run on this computer unless your admin allows them" mean?
A: Your administrator set disableLocalMcpServers in managed settings. A stdio MCP server now loads only if the administrator's allowedMcpServers list names it. The server you tried to use is not on that list.
Q: Can I turn off disableLocalMcpServers myself?
A: No. Claude Code reads it only from an administrator's managed settings, not from your user or project settings, the Windows HKCU hive, or --managed-settings. An administrator has to name your server in allowedMcpServers or provide it through managed-mcp.json.
Q: Does it block remote MCP servers?
A: No. It governs stdio servers that run as a process on the computer. Remote servers reached over HTTP or SSE are controlled separately by allowedMcpServers, deniedMcpServers, and disableClaudeAiConnectors.
Q: Does a managed-mcp.json server still load?
A: Yes, when its command and args contain no variable. The organization provides that server, so it is exempt. An entry that interpolates a variable still needs the allowlist.
Q: How is it different from allowManagedMcpServersOnly?
A: allowManagedMcpServersOnly reads allowedMcpServers from managed settings only, so users cannot extend the allowlist. disableLocalMcpServers is narrower: it drops stdio servers the managed allowedMcpServers does not name, and exempts variable-free managed-mcp.json entries.
Q: Which version added it?
A: v2.1.335, published December 2, 2026. The changelog describes the behavior as stopping local MCP servers when "Allow local MCP servers" is off, without naming the disableLocalMcpServers key.
Sources: Claude Code changelog, v2.1.335
Related: Claude Code MCP Skills Guide | MCP tool-result instructions | Claude Code v2.1.335 analysis