A deniedMcpServers entry in managed settings blocks a server by serverUrl or serverCommand, and nothing overrides a denylist match. Prefer URL or command entries, because serverName is only a label users choose. Running interactive sessions drop a server once they read the changed settings.
Read in this order
- OfficialControl MCP server access for your organization (Claude Code docs)Covers denylist entry types, URL matching, evaluation order and the empty managed-mcp.json option.