Learning resourcesReviewed · Anthropic

Control MCP server access for your organization

This Claude Code guide helps organization administrators control connected tools, but its restrictions depend on client version and how each session receives its servers. It explains fixed MCP server deployments, organization-provided remote servers, allowlists and denylists, authentication precautions, and documented validation steps.

Researched 12 Nov 2026

In short.

This official Claude Code guide helps IT administrators manage their teams’ tool connections, but its controls have exceptions that can leave some servers available. It distinguishes exclusive deployments through managed-mcp.json, additional remote servers through managedMcpServers, and policy filters through allowedMcpServers and deniedMcpServers. Its most consequential details concern locking allowlists against user changes, matching actual URLs or commands, protecting credentials, and accounting for desktop and cloud delivery paths. Configuration behavior and security effectiveness are not assessed through execution.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected documentation page at [https://code.claude.com/docs/en/managed-mcp.md], including its deployment patterns, authentication precautions, version notices, policy exceptions, matching semantics, diagnostics, monitoring guidance and configuration summary. Linked pages, linked software, subscription terms and third-party service terms are excluded. No commands, configurations, servers, connectors or monitoring exports were executed; all described runtime behavior remains unverified.

The overview

identity

Control MCP server access for your organization is an Anthropic documentation page for administering Claude Code’s connections to external tools and services through MCP servers. The resource is available at [https://code.claude.com/docs/en/managed-mcp.md].

Its scope includes distributing servers, restricting which configured servers load, handling authentication, explaining policy failures to users, and observing tool usage. It contains settings, deployment paths, configuration examples and expected command responses.

assessment

The guide is useful when an organization needs to choose between a fixed server set, optional approved connections, and centrally supplied connections that coexist with users’ own servers. Its practical strength is explaining where those approaches differ, including exceptions and failure behavior.

An important configuration trap appears in the examples: the longer example described as a hard allowlist does not include allowManagedMcpServersOnly. The page’s separate instructions establish that this flag must accompany the managed allowlist to prevent users from broadening it through their own settings.

The page explicitly says Anthropic does not security-audit or manage MCP servers. Anthropic reviews connectors against its listing criteria before adding them to the Anthropic Directory, but that review is not a security audit, and administrators still need to evaluate each server they approve. Server security and enforcement effectiveness remain unassessed here.

users

The primary audience is IT administrators, platform engineers and security teams responsible for Claude Code across an organization. Developers can also use it to understand why a server disappears, why an addition is rejected, or why organization-provided connections behave differently from personal ones.

Beginners should distinguish deploying a server from permitting one: an allowlist filters existing configurations and does not install the listed servers. Experienced administrators will need to examine settings precedence, client versions, command-line overrides and the differences between terminal, desktop, SSH and cloud sessions.

capabilities

managed-mcp.json establishes an exclusive server set, subject to documented exceptions. It can define remote servers and local processes. An empty server map suppresses ordinary user and plugin configurations, although provided servers, host-registered in-process servers and enabled exceptions can remain available.

managedMcpServers supplies remote servers through administrative settings while users retain their own configurations. Interactive sessions can receive additions, reconnect after definition changes, and disconnect removed servers as updated settings arrive.

Allowlists and denylists filter servers by URL, exact launch command and arguments, or name. Other documented approaches include plugin-only MCP configuration, an approved catalog distributed through an internal list or managed plugin marketplace, and denylist-only operation.

Optional OpenTelemetry export can include MCP server and tool names when OTEL_LOG_TOOL_DETAILS=1 is set. The page describes aggregating those events and counters in a collector to inspect usage; it reports no observed usage results.

Using it

requirements

Deploying managed-mcp.json requires a process able to write to the documented system location with administrator privileges. Fleet delivery can use device management or operating-system policy tools. This standalone file cannot be delivered through server-managed settings.

managedMcpServers requires Claude Code v2.1.259 or later. Its entries must use HTTP or SSE over HTTPS; streamable-http is accepted as an HTTP alias. Entries cannot contain command, args, env or headersHelper, and no value may contain a ${VAR} reference. Server names permit letters, numbers, hyphens and underscores. Invalid entries are dropped individually with notices available through /status.

Reading an allowlist lock and its list across different administrative sources requires v2.1.273 or later. The documented pinned-environment matching rules require v2.1.219 or later. Allowing Claude in Chrome alongside the managed file requires v2.1.282 or later and a device-managed setting.

The page does not establish subscription entitlements or contractual requirements for each administrative delivery method. Required organizational access and service credentials depend on the chosen servers and deployment.

mechanism

Claude Code combines applicable allowlists and denylists, checks the denylist first, and then applies the allowlist where required. allowManagedMcpServersOnly retains only the managed allowlist; denylists still merge across settings scopes. In-process type: sdk servers skip these checks entirely.

Organization-provided managedMcpServers entries skip the allowlist. managed-mcp.json entries also skip it unless they use environment-variable expansion outside env. Built-in servers and a Claude Tag session’s Slack tools have further allowlist exemptions. Denylists still apply to these groups except in-process SDK servers.

For remote servers, the presence of any serverUrl allowlist entry makes URL matching mandatory. For local stdio servers, the presence of any serverCommand entry makes command matching mandatory. Name matching is only a fallback for a transport without its stricter entry type. Names are user-assigned labels, so name-only rules cannot reliably identify the underlying server.

Commands must match every argument in order; their env values are not compared. URL hostname matching ignores case and a trailing domain dot, while paths remain case-sensitive. A literal hostname without a port matches the scheme’s default port; a hostname containing a wildcard matches every port unless constrained. A URL pattern without a path covers every path on its matched host and port.

Policy URL and command variables expand from a pinned environment, while configured server values expand from the live process environment. The page recommends literal values for enforcement. Provided servers override same-name local configurations and same-URL plugin or claude.ai connections; a same-name managed-mcp.json definition takes precedence over a provided server. managedSourcesBehavior set to merge can combine provided servers across administrative sources, with the higher-ranked definition winning as a whole.

setup

For exclusive deployment, place an object containing mcpServers in the platform’s managed-mcp.json location: /Library/Application Support/ClaudeCode/managed-mcp.json on macOS, /etc/claude-code/managed-mcp.json on Linux and WSL, or C:\Program Files\ClaudeCode\managed-mcp.json on Windows. The page uses the same server-definition format as a project .mcp.json.

For additional organization-provided remote servers, place the managedMcpServers object in an accepted administrative settings source. User, project and local settings cannot supply this key. Claude Desktop has a managed setting with the same name, managedMcpServers, but its value is an array with a different entry shape; Claude Code expects an object keyed by server name, does not accept the array form, and records a notice instead of loading it, so do not copy one into the other.

Keep shared-file credentials out of env blocks: any user on the machine can read managed-mcp.json. The guide describes per-user environment expansion, OAuth, per-user headers or headersHelper as alternatives for that file. managedMcpServers does not accept environment references or headersHelper; its literal header values remain readable to users who can access the settings.

For an enforceable approved list, deploy allowedMcpServers together with allowManagedMcpServersOnly set to true. Use URL and exact command entries to identify permitted endpoints and processes. Add deniedMcpServers where explicit blocking is required, including managed servers that otherwise bypass the allowlist.

example

For a team that should choose only between GitHub and Sentry remote connections, the page supports a managed allowlist containing serverUrl patterns [https://api.githubcopilot.com/*] and [https://mcp.sentry.dev/*], combined with allowManagedMcpServersOnly set to true. Users still need to add the connections or receive them through another deployment mechanism. Managed and built-in allowlist exemptions still apply.

For a stricter fixed deployment, the documented managed-mcp.json example defines GitHub and Sentry HTTP servers plus an internal stdio server launched from /usr/local/bin/company-mcp-server. That approach also lets administrators set the local server’s environment, which command matching alone does not constrain.

Port handling can change a deny rule’s effect. The pattern [https://staging.example.com/*] blocks HTTPS on port 443 only, while [https://staging.example.com:*/*] covers every HTTPS port on that host. These are documented examples; their behavior has not been executed or independently verified.

Assessment & evidence

limitations

The controls have delivery-path boundaries. Desktop-delivered connectors in local and SSH sessions arrive in-process and are governed through claude.ai organization settings. allowAllClaudeAiMcps affects connectors Claude Code fetches itself; it does not restore cloud-host-delivered connectors suppressed by managed-mcp.json. In-process SDK servers bypass the listed allowlist and denylist checks.

With a readable, parseable managed-mcp.json deployed, --mcp-config causes a workstation startup failure. Cloud sessions instead start with managed servers and omit host-delivered configurations, reporting omitted servers on stderr rather than inside the session. --strict-mcp-config causes startup failure in both cases.

Provided servers are not guaranteed to remain active. Users can disable them or block them through their own denylist. Without the exclusive file, --mcp-config can replace a same-name provided server for one run, and --strict-mcp-config omits provided servers.

Server-managed settings introduce timing dependencies. Cached provided-server settings wait for confirmation and are withheld if confirmation fails. On a first launch, an already-started non-interactive run can finish before provided servers arrive. Running non-interactive sessions also retain a removed provided server until they end. Gateway sign-in loads policy before session startup.

Previously configured servers can disappear without explaining that policy caused the change. The guide therefore advises communicating restrictions to affected users. It supplies no measured evidence about deployment reliability, enforcement completeness or server trustworthiness.

reasoning

The most useful decision is whether the organization needs to control definitions, permissible destinations, or convenience. A fixed managed-mcp.json suits centrally controlled definitions, including local processes and their environment. A locked allowlist suits optional user-configured connections to approved destinations. managedMcpServers suits distributing remote connections while preserving personal configurations.

Combining these mechanisms requires understanding exemptions and precedence. In particular, an allowlist does not narrow most organization-delivered servers. Explicit deny entries or different managed files per group are the documented ways to prevent those servers from loading. Environment-sensitive local processes also need closer control than an exact command rule alone supplies.

alternatives

The page offers several alternatives within Claude Code. Denylist-only operation blocks identified servers while leaving other configurations available. A soft allowlist can be broadened through user settings. An approved catalog combines a locked allowlist with separately shared installation commands or a managed plugin marketplace; Claude Code has no built-in MCP server registry.

Plugin-only configuration uses strictPluginOnlyCustomization for the mcp surface. It blocks direct additions through user and project MCP files, and also stops skills-directory plugins from loading as plugins. Other plugin servers remain available, and organization-provided managedMcpServers still load. The page provides no comparative evaluation of other products’ administration controls.

evidence

The supporting evidence is the complete page at [https://code.claude.com/docs/en/managed-mcp.md], captured on 12 November 2026 at 22:30:13.445 UTC. It includes configuration examples, platform paths, version boundaries, matching rules, user-visible messages and monitoring instructions.

The described outcomes are product documentation claims. Configuration examples are unexecuted, and runtime behavior, enforcement effectiveness and service availability remain unverified. Linked security, authentication, settings and deployment pages were outside the supplied evidence.

Access & freshness

costs

The page provides no prices for Claude Code access, administrative features, connected services, device management or telemetry collection. Subscription eligibility, server charges, infrastructure costs and total operating cost are unknown. Its reference to cost and token counters concerns monitoring data and does not establish a price for using these controls.

rights

The supplied page contains no explicit license or redistribution grant for its documentation or the third-party server software it references. Those rights remain unknown from this evidence. Authentication examples and endpoint listings also do not establish a user’s entitlement to access the connected services.

freshness

The supplied capture is dated 12 November 2026. The page supplies no publication or last-updated date, and changes after that capture are unknown. Its version references should be treated as feature boundaries rather than evidence of the latest available Claude Code release.

Upgrade behavior matters for existing restrictions. Before v2.1.259, every managed-mcp.json server was checked whenever an allowlist existed. Before v2.1.305, servers using variable expansion only inside env were also checked. Under the newer behavior described, most managed-file servers bypass the allowlist and can begin loading after an upgrade without a prompt. Existing restrictions that relied on those older checks need explicit deny entries or separate managed files.

actions

Before applying the guide, identify the client versions, session types and connector delivery paths in use. Choose a deployment pattern, verify that its administrative source is supported, and decide how users will authenticate without exposing personal secrets in shared files. Review existing managed servers for dependence on older allowlist behavior.

For an exclusive deployment, the page recommends checking claude mcp list and attempting an HTTP server addition with claude mcp add. Expected results are the managed and provided server set, plus rejection of the addition before endpoint contact. If personal servers still appear, check the file location and parent-directory permissions; if managed definitions are missing, inspect MCP config diagnostics for read or parse failures.

Use /status and claude doctor for relevant settings notices, account for the documented in-process and built-in exceptions, and tell users which connections will disappear. If usage visibility is needed, configure OpenTelemetry and OTEL_LOG_TOOL_DETAILS=1. These are suggested validation and rollout steps; no resulting receipts or runtime findings are available.

Evidence for this report

selected-page.txtselected · checked 2026-11-12