What an MCP Server’s Permission Scope Actually Grants Before You Connect It

Rows of server racks in a data center

Before connecting an MCP server, the permissions worth reading are what it can reach, not just what it claims to do. The Model Context Protocol (MCP) is an open standard that lets an AI assistant call external tools and data sources through a common interface, and a “server” in that standard is whatever program exposes those tools, whether it’s a small local script or a hosted service with its own OAuth login. The scope it’s granted, not its name or its description, decides what a prompt injected into one of its tool outputs could actually do to your accounts and files.

What “permission scope” means for an MCP server

A scope, in OAuth terms, is a named unit of access an authorization server can grant, such as read-only access to one mailbox versus full read-write access to every mailbox in a workspace. Most MCP servers that connect to a third-party API, like an email or calendar provider, request scopes the same way any OAuth app would, and the MCP specification’s own security best practices page and OWASP’s MCP Security Cheat Sheet both call out over-scoped access as one of the most common real-world problems, not a theoretical one.

Four things worth checking before you connect

Each of these maps to a documented risk, not a hypothetical one, and each is something you can usually check from the server’s own consent screen or source before approving it.

  • Does it ask for broader scopes than the task needs? OWASP specifically names “full mail access instead of read-only” as the kind of over-broad request that creates aggregation risk: a token that can do more than the server’s stated job needs is worth more to an attacker if it leaks, and harder to revoke without disrupting everything else the token touches.
  • Is it a proxy to a third-party API, and if so, does it ask you to consent per client? The MCP specification documents a “confused deputy” attack where a proxy server using a shared, static client ID with a third-party service can let an attacker skip your consent screen entirely by reusing a cookie from an earlier, legitimate login. A server that proxies to a third-party API should show its own consent screen naming the specific access being requested, not silently forward you into the third party’s login.
  • If it runs locally, what commands does it actually execute, and are they sandboxed? A local MCP server runs with your own user-level privileges, which the specification compares directly to arbitrary code execution risk: a malicious startup command hidden in a client configuration can exfiltrate files or escalate privileges the same way any other local executable could. The specification’s own mitigation guidance is to run local servers with restricted file system and network access rather than trusting them with full privileges by default.
  • Does it treat its own tool outputs as untrusted? This one isn’t about the server’s permissions so much as what happens after you’ve granted them. OWASP’s cheat sheet warns that malicious instructions can hide in tool descriptions, parameters, or return values to manipulate the model, and that unsanitized tool output can trigger further unwanted tool calls downstream. A server whose documentation never mentions this is more likely to pass raw, unfiltered content straight back into your conversation.

Minimal scope vs. omnibus scope, side by side

The MCP specification’s guidance on scope minimization describes a progressive model: start with a minimal set of low-risk scopes, and let the server request more only when a specific, higher-risk operation is actually attempted. Here’s what that looks like in practice for a hypothetical file-access server, next to the pattern the specification calls a common mistake.

Omnibus scope request (common mistake)Progressive, minimal scope
Initial consent screen“files:*” — read, write, and delete across every connected folder“files:read-basic” — read-only access to folders you explicitly pick
When write access is requestedAlready granted up front, with no separate promptA new, specific consent prompt appears only when a tool call actually needs to write a file
Blast radius if the token leaksEvery connected folder, full read/write/deleteWhatever was explicitly approved, usually read-only on a subset
Revocation impactRevoking it breaks every workflow that used any part of the tokenRevoking a narrow scope leaves unrelated workflows running

The specification is blunt about why the left column is still common: publishing every possible scope up front, or bundling unrelated privileges “to preempt future prompts,” is easier to build than a server that asks again later. That convenience is exactly what you’re being asked to absorb the risk of when you click approve on a single, broad consent screen. A server built the second way costs its authors more engineering time, since it has to track per-operation scope state and surface new prompts mid-session instead of asking everything once; a server that skipped that work isn’t necessarily acting in bad faith, but it is asking you to carry the cost it saved itself.

Local servers and remote servers fail differently

A local server’s worst case is arbitrary code execution on your own machine, since it runs with your user’s own privileges and no network boundary protects you from it the way one protects you from a remote service. A remote server’s worst case usually runs through its OAuth flow instead: a confused-deputy redirect, a stolen token, or a server that accepts tokens issued for a different service entirely, a pattern the specification calls “token passthrough” and explicitly forbids. If you’re running your own MCP server rather than just connecting to one, hardening its network exposure before taking it off localhost and following the registry’s publishing steps both address pieces of this from the operator’s side rather than the connecting user’s side.

Why this matters more once you grant write access

A read-only scope that turns out to be over-broad is an exposure problem; a write-capable scope that turns out to be over-broad is a loss-of-data problem, which is a different order of consequence. That’s the same reasoning behind testing an AI agent’s write access against a staging environment before production, and it applies just as directly to auditing scopes on something as ordinary-seeming as a calendar assistant’s write permissions: the question in both cases is never whether the tool is useful, it’s what the worst plausible misuse of the access you’re about to grant actually looks like.

A fifth thing worth checking: session handling

Session IDs are a quieter risk than scopes, but the specification treats them seriously enough to spell out explicit requirements. A server that implements authorization must verify every inbound request and must not use sessions as a substitute for authentication, since a guessable or predictable session ID lets an attacker impersonate a legitimate client without ever touching a password or a token. The specification’s recommended mitigation is for session IDs to be generated with secure random number generators and bound to user-specific information, such as combining a session ID with an internal user ID, so that guessing a session ID alone isn’t enough to act as someone else. None of this is something you can verify from a consent screen, but it’s a reasonable question to ask a vendor directly, or to check in a server’s own security documentation, before connecting it to anything that holds real data.

A related, narrower risk shows up in how a server hands you its OAuth authorization URL. The specification documents attacks where a malicious server supplies a javascript: URL or a shell-injectable string as its authorization endpoint, which a poorly written client might open directly in a browser or pass to a shell command, leading to script execution or, in the worst documented case, full remote code execution when combined with a local proxy architecture. The mitigation sits mostly on the client you’re using to connect, which should validate that any authorization URL uses only http or https and reject schemes like javascript: or file: outright, but it’s worth knowing this class of attack exists if you’re ever asked to manually open a link an MCP server hands you.

FAQ

Does running a local server in a sandbox eliminate the risk? It reduces it rather than eliminating it. The specification’s own guidance recommends sandboxing, restricted file system access, and least-privilege execution as mitigations precisely because they lower the blast radius of a compromised server, not because any one of them makes arbitrary code execution impossible. Keeping the sandboxing technology itself up to date is listed as part of the mitigation, which implies it has known gaps worth patching.

Is a popular, widely-used MCP server automatically safe to connect? Popularity isn’t a security control. OWASP’s cheat sheet lists “rug pulls,” where a server’s tool definitions change after you’ve already approved them, and cross-server “tool shadowing” as separate risks that apply regardless of how many other people use the same server, and recommends pinning hashes of tool definitions and reviewing changes rather than trusting a server once and never checking again.

Photo: “Datacenter Server Racks” by Carl Lender, licensed CC BY 2.0, via Wikimedia Commons.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top