HOW-TO GUIDE
How to allowlist MCP servers in Claude Code, Copilot, and Cursor by command
Based on a guide by Dekita on DEV Community · Dec 1, 2026
You'll end with: An MCP allowlist in each client that names the exact command or URL your team approved, plus a three-item check before a new server connects.
Why it's worth having: Clients match the exact command string, so a pinned version and a bare package name are two entries, and an unlisted spelling is blocked next session.
At a glance
WHO IT'S FOR
IT admins, security engineers, and engineering leads who manage AI coding agents.
LEVEL
Advanced
COST
Free to read. Copilot Enterprise and Cursor Enterprise are paid plans; Claude Code needs a paid plan.
YOU NEED
Admin access to Claude Code managed settings, Copilot Enterprise, or the Cursor Team dashboard · Your approved server list
The method, in short
- 1Put the policy where each client reads it: managed-mcp.json for Claude Code, managed-settings.json for Copilot, the dashboard for Cursor.
- 2Enter local servers by their exact command and arguments, and remote servers by URL, with wildcards where allowed.
- 3List servers you never want in the denylist; a deny entry wins over any allow entry.
- 4Before you approve a server, name its publisher and repo, prefer the owner's hosted endpoint, and record the pinned version.
Read the full guide from Dekita on DEV Community
The post has each client's setting names, a worked version-pinning example, and the full audit.
Credit: Dekita on DEV Community