Dev.to AI 🤖 Ai 👁 0 📖 5 min read

MCP server allowlists in Claude Code, GitHub Copilot and Cursor

Cross-posted from Socketlist. Disclosure: I run Socketlist, a free directory of MCP servers. If I've got a client's behaviour wrong, tell me in the comments and I'll fix the original. An MCP allowlist decides which MCP

Cross-posted from Socketlist. Disclosure: I run Socketlist, a free directory of MCP servers. If I've got a client's behaviour wrong, tell me in the comments and I'll fix the original.

An MCP allowlist decides which MCP servers people in your organisation may run. It does not install anything: a server still has to be added by a user, a plugin or an admin, and the allowlist then lets it load or blocks it. Claude Code and GitHub Copilot share one format, allowedMcpServers and deniedMcpServers. Cursor sets its allowlist in the team dashboard instead.

Checked against each vendor's documentation on November 27, 2026. These features change often, so follow the source links before you roll out a policy.

Claude Code

Admins put the lists in a managed settings source, such as server-managed settings or a deployed managed-settings.json. Each entry has one key:

  • serverUrl matches a remote (HTTP or SSE) server by URL, exactly or with * wildcards. A hostname written out in full matches only the default port, so https://mcp.example.com/* covers port 443 only.
  • serverCommand matches a local (stdio) server by its command and arguments, as one array, compared exactly and in order. ["npx", "-y", "server"] does not match ["npx", "server"]. The env block is not compared.
  • serverName matches the label a user gives a server. Anthropic's docs warn this is not a security control, because anyone can call any server github.

Leaving allowedMcpServers unset allows every server. Setting it to an empty array allows none. Without allowManagedMcpServersOnly: true, allowlists from every settings scope merge, including a user's own settings, so a user can widen yours. Denylists always merge and always win. To hand everyone a fixed set of servers instead of filtering, Claude Code has a separate managed-mcp.json file.

{
  "allowedMcpServers": [
    {
      "serverUrl": "https://mcp.example.com/*"
    },
    {
      "serverCommand": [
        "npx",
        "-y",
        "@playwright/mcp@latest"
      ]
    }
  ],
  "deniedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/"
      ]
    }
  ],
  "allowManagedMcpServersOnly": true
}

Source: Claude Code docs, managed MCP.

GitHub Copilot

For Copilot Business and Enterprise, the generally available control is the same pair of lists in your enterprise's managed-settings.json. GitHub says most enterprises keep that file in a .github-private repository, and it can also be pushed to machines with device management. The MCP servers in Copilot policy must be on for any server to run.

Copilot clients check servers in this order: built-in default servers (such as GitHub's own MCP server) are always allowed; anything matching deniedMcpServers is blocked; if allowedMcpServers exists, anything not matching it is blocked; and a server whose URL or command still contains an unresolved variable such as ${VARIABLE} is blocked, because the client cannot verify it. A malformed policy file is treated as an empty allowlist, which blocks everything except the built-ins.

Copilot connectors are remote MCP servers too, so once you define an allowlist they need serverUrl entries, or they are blocked.

The older route, an MCP registry URL plus the Registry only policy, is still in public preview and matches servers by name. GitHub now recommends the managed-settings allowlist and suggests setting the registry policy to Allow all once you use it, so there is a single source of truth.

Sources: Configuring an MCP server allowlist for your enterprise, Restrict MCP server access to a custom registry.

Cursor

Cursor's MCP allowlist is for Enterprise admins and lives in the dashboard under Team Settings > MCP Configuration, not in a file. Command entries approve local stdio servers by command pattern, URL entries approve remote servers by URL pattern, and an optional tool allowlist limits which of a server's tools can run automatically (empty means all). Local servers also get a per-server network mode: allow all, allowlist, deny all, or no sandbox. Like the others, approving a configuration does not install or distribute the server.

Source: Cursor docs, Model Context Protocol.

Side by side

Claude Code GitHub Copilot Cursor
Where it lives Managed settings Enterprise managed-settings.json Team dashboard
Local servers serverCommand, exact array serverCommand, exact array Command pattern
Remote servers serverUrl with * serverUrl with * URL pattern
Denylist deniedMcpServers, always wins deniedMcpServers, checked first Network denylist for user MCPs
Per-tool limits Through permission rules Not in the allowlist Tool allowlist per server

Building the list

  1. Start from what people already run. Collect the servers in your teams' .mcp.json, .cursor/mcp.json and user configs (where each client keeps them: Claude Code, Cursor, VS Code), then decide which to keep. An allowlist that blocks everyone's daily tools on day one gets worked around.
  2. Prefer the vendor's hosted endpoint. A serverUrl entry for a vendor's own domain is easier to reason about than a package that runs on every laptop.
  3. Decide how you pin. Because serverCommand matches exactly, npx -y pkg, npx -y pkg@latest and npx -y [email protected] are three different entries. Pinning a version means updating the entry when you upgrade.
  4. Deny the risky shapes. GitHub's own example blocks the filesystem server pointed at /, even if another entry would allow it.
  5. Check upkeep before you approve. Each Socketlist server page shows when the code was last pushed, whether there is a SECURITY.md, the licence and adoption, plus the allowlist entry that matches its setup snippet. Our score is a triage signal, not a security audit; the security checklist covers what to check by hand.

Entries for popular servers

Built from each server's entry in the official MCP Registry (the same command as its setup snippet on Socketlist). Data as of November 11, 2026. Check the README before you approve one, since publishers change their recommended commands.

Server Score Entry
ffmpeg-skill 100 {"serverCommand":["npx","-y","ffmpeg-skill","mcp"]}
XcodeBuildMCP 99 {"serverCommand":["npx","-y","xcodebuildmcp"]}
designlang 98 {"serverCommand":["npx","-y","designlang","mcp"]}
Figma-Context-MCP 97 {"serverCommand":["npx","-y","figma-developer-mcp","--stdio"]}
Chrome DevTools MCP 95 {"serverCommand":["npx","-y","chrome-devtools-mcp"]}
CodeBurn 95 {"serverCommand":["npx","-y","codeburn","mcp"]}
e2e 95 {"serverCommand":["npx","-y","e2e","mcp"]}
Pascal 3D Editor 93 {"serverCommand":["npx","-y","@pascal-app/mcp"]}, {"serverUrl":"https://editor.pascal.app/api/mcp"}
Claude Code Ultimate Guide 91 {"serverCommand":["npx","-y","claude-code-ultimate-guide-mcp"]}
Oh My Posh Validator 90 {"serverUrl":"https://ohmyposh.dev/api/mcp"}, {"serverUrl":"https://ohmyposh.dev/*"}
Codebase Memory 90 {"serverCommand":["npx","-y","codebase-memory-mcp"]}
TradingMCP 90 {"serverUrl":"https://mcp.tradingmcp.ai/mcp"}, {"serverUrl":"https://mcp.tradingmcp.ai/*"}
agent-device 90 {"serverCommand":["npx","-y","agent-device","mcp"]}
AIHawk 90 {"serverCommand":["uvx","aihawk"]}
ha-mcp 90 {"serverCommand":["uvx","ha-mcp"]}

Every other listed server has its entry on its own page. Find one with search or by category.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.