SecureTools Logo
DashboardList Your Software
All Articles
SecureToolssecuretools.live
Technical Explainer•AI Security

MCP Server File Access: A Security Review Guide for Teams

Mohamed SirajMohamed Siraj(Founder, SecureTools.live)
•
Published November 2026
•
14 min read
Person writing notes beside a laptop while planning a technical review
TL;DR

An MCP server is a connector that lets an AI client read from, and sometimes write to, other systems such as your file storage. The Model Context Protocol security guidance names concrete risks: local servers that run commands with your privileges, confused deputy attacks on OAuth proxies, token passthrough, server-side request forgery during discovery and over-broad scopes. Before approving a server, decide whether it runs locally or remotely, inspect what it can do, check how it authorizes and scopes tokens, and require logs and a tested way to revoke it.

In This Article
  1. 01What you are actually approving
  2. 02Step 1: Decide whether the server is local or remote
  3. 03Step 2: Review local servers as software installs
  4. 04Step 3: Review remote servers' authorization
  5. 05Step 4: Check scopes and tool permissions
  6. 06Step 5: Look for SSRF and network exposure
  7. 07Step 6: Demand evidence for logging and revocation
  8. 08A one-page MCP review form
  9. 09Approving in stages
  10. 10Mistakes to avoid
  11. 11How this fits with the rest of your controls

The Model Context Protocol, usually shortened to MCP, is an open standard that lets AI applications connect to outside tools and data through small servers. One MCP server might expose a folder of documents, another a cloud drive, another a ticketing system. For a business, this is convenient: a single connector can let an assistant search, read and sometimes edit files.

It also means each connector is a new door into your data. This guide explains how to review an MCP server before it is allowed near company files. It draws primarily on the protocol's own Authorization specification and Security Best Practices page, supported by OWASP's excessive agency guidance. It is not a vulnerability assessment of any named server, and it does not tell you which servers are safe. The protocol is evolving: the documentation we read notes, for example, that dynamic client registration is deprecated as of protocol version 2026-07-28 while the attacks it enables still apply to proxy servers that support it. Check the current specification before you rely on any detail here.

If you are new to the underlying idea of limiting what an agent can do, start with our least-privilege checklist for AI agent file access, then come back to this technical review.

What you are actually approving

When someone on your team asks to install an MCP server, you are approving three things at once:

  1. 1Code that runs somewhere. On a laptop, on a server you manage or on a vendor's cloud.
  2. 2A set of tools it exposes. Each tool is an action the AI can request, such as "read file," "search drive" or "delete file."
  3. 3Credentials it holds or obtains. API keys, OAuth tokens or the user's session.

Each deserves its own review. The first decides who could attack the server, the second decides what damage a mistaken or manipulated AI could do, and the third decides what an attacker gains if the server is compromised.

Hands arranging sticky notes on a desk next to a laptop and mouse
A review works best on paper first: what runs where, what it can touch and which credentials it holds.

Step 1: Decide whether the server is local or remote

The MCP Authorization specification says authorization is optional for implementations. For HTTP-based transports, implementations should conform to it. For servers using the standard-input transport, the specification says they should not follow it and should instead retrieve credentials from the environment. In plain terms, a local server on someone's laptop usually uses whatever credentials are in that environment, while a remote server is expected to run a proper OAuth flow.

That difference shapes the risk.

QuestionLocal serverRemote server
Where does the code run?On the user's machine, with the client's privilegesOn a vendor's or your own server
Typical credential sourceEnvironment variables or local configOAuth tokens issued by an authorization server
Main attack surfaceMalicious or buggy code on the endpointToken theft, proxy flaws, server compromise
VisibilityOften little; users see a commandServer logs, if the operator keeps them
Update pathWhoever installed itThe operator

Step 2: Review local servers as software installs

The Security Best Practices page treats local servers as an attractive target, since they can have direct access to the user's system and may be reachable by other processes on the machine. It describes three attack paths: a malicious startup command in a client configuration, a malicious payload inside the server itself and an insecure local server left running on localhost and reached through DNS rebinding.

The risks it lists are blunt: arbitrary code execution with the client's privileges, no visibility into which commands are run, command obfuscation, data exfiltration and data loss.

The document's recommended mitigations give you a checklist for evaluating a client and a server:

  • Show the exact command. If a client supports one-click local server setup, it must display the full command, mark it as potentially dangerous and require explicit approval. If your client does not, do not use one-click setup.
  • Sandbox it. Run the server in a sandbox with minimal default privileges, restricted access to the file system and network, and ways to grant more only when needed. Use containers or application sandboxes as appropriate for the platform.
  • Restrict transport. Local server developers should use the standard-input transport to limit access to the client, or restrict an HTTP transport appropriately.
  • Warn on risky patterns. Commands that use elevated privileges, delete files, make network calls or touch sensitive locations such as home directories and SSH keys deserve extra scrutiny.

For a business, the simple rule is to treat installing a local MCP server like installing any program that runs with the user's rights: approve it from a known source, pin the version and review what it can reach. Our guide to browser extension permissions applies similar reasoning to another kind of add-on.

Step 3: Review remote servers' authorization

For remote servers, the specification describes an OAuth-based design. A protected MCP server acts as an OAuth 2.1 resource server, the MCP client acts as an OAuth client and a separate authorization server issues access tokens. Servers must publish protected resource metadata that points to their authorization server, and clients discover the authorization server through it.

You do not need to implement this to review it. Ask the vendor:

  • Which authorization server issues tokens, and is it our identity provider or theirs?
  • Does the server validate that each token was issued for this server (the audience)?
  • Are tokens short-lived? How are refresh tokens protected?
  • Do we sign in as individual users, so actions are attributed to a person?

Token passthrough

The Security Best Practices document calls "token passthrough" an anti-pattern, in which an MCP server accepts tokens from a client without validating that the tokens were issued to the server, then passes them to a downstream API. It says the pattern is explicitly forbidden in the authorization specification and lists risks: circumventing security controls such as rate limits that depend on the token audience, loss of accountability because the server cannot tell clients apart and breaking trust boundaries between services. If a vendor's design relies on passing user tokens straight through to your file storage, ask for details of how audience is validated.

The confused deputy problem

The same document describes a confused deputy attack against MCP proxy servers that connect to third-party APIs. It becomes possible when all of these conditions exist: the proxy uses a static client ID with a third-party authorization server, it allows clients to register dynamically, the third-party authorization server sets a consent cookie after the first authorization and the proxy does not obtain proper per-client consent. An attacker can then send a crafted link whose redirect points to the attacker's server. Because the browser still holds the earlier consent cookie, the consent screen is skipped and the authorization code goes to the attacker.

The specification's required protections include per-client consent stored per user, a consent page that names the requesting client, shows the scopes and redirect address, and has protection against cross-site request forgery and clickjacking, exact-match validation of redirect addresses, and careful state parameter handling. You are unlikely to verify these yourself, but a vendor that operates a proxy should be able to say that it implements them.

Step 4: Check scopes and tool permissions

The same security guidance addresses scope minimization. It warns that tokens carrying broad scopes, for example a wildcard that covers all file operations, increase the damage if stolen, make revocation more disruptive and blur audit trails. Its recommended approach is a progressive, least-privilege scope model: start with a minimal set of low-risk discovery and read operations, then request more only when a privileged operation is attempted, log those elevations and accept reduced-scope tokens.

Translate that into questions for any file-related server:

  • Can we approve read-only access?
  • Can access be limited to one folder, one shared drive or one project?
  • Which tools does the server expose? Are there delete, share or permission-change tools we can switch off?
  • Does the server request all scopes at once, or only as needed?

OWASP's excessive agency guidance lists the same concerns as functionality and permission minimization, and recommends executing extensions in the user's own context and requiring human approval for high-impact actions. A server that exposes a delete tool to an agent that reads untrusted documents is an obvious risk.

Step 5: Look for SSRF and network exposure

The Security Best Practices page also warns about server-side request forgery during OAuth metadata discovery. A malicious server can supply URLs that point to internal addresses, cloud metadata endpoints or local services, which could lead a client to make requests into places it should not. Mitigations include validating and restricting discovery URLs, blocking private and loopback destinations and being careful with redirects.

For your team, the implication is that where the client runs matters. A client running on a laptop inside the office network, or a server with access to cloud credentials, should be allowed to contact only approved MCP servers. Keep an allowlist and avoid letting people add arbitrary server addresses.

Person sketching interface wireframes on a whiteboard
Sketch the data flow before approving: client, server, authorization service, file system.

Step 6: Demand evidence for logging and revocation

For files, the key questions come after approval:

  • What is logged? Tool calls, files accessed, the user identity and timestamps. Ask whether you can export them and for how long they are kept.
  • Can we see who used it? Shared credentials make attribution impossible.
  • How do we revoke it? Disabling a connection should invalidate tokens and stop queued work. See our revoke-and-verify drill.
  • What happens to cached or copied content? Ask whether the server stores copies of documents, for how long and where.

A one-page MCP review form

Use this form for each new server. Mark every line as answered, unknown or not applicable.

  1. 1Name, version and source of the server, and who maintains it.
  2. 2Where it runs and under which account.
  3. 3Tools exposed, with those that can write, delete or share highlighted.
  4. 4Data it can reach, by folder or system.
  5. 5Authentication method and token audience validation.
  6. 6Scopes requested and whether a read-only option exists.
  7. 7Sandboxing and network limits for local servers.
  8. 8Consent flow that names the client and scopes, for remote proxies.
  9. 9Logging and retention.
  10. 10Revocation process and the time it takes to take effect.
  11. 11Updates and vulnerability disclosure contact.
  12. 12Approval, with owner name and review date.

Approving in stages

A staged approach lowers risk without blocking useful work:

  1. 1Sandbox trial. Run the server against synthetic documents in a test workspace. Observe what it calls and logs.
  2. 2Read-only pilot. Give a small group read access to a narrow folder.
  3. 3Expanded access. Add write capability only for specific tools with human approval.
  4. 4Periodic review. Re-check scopes, tools and the vendor's release notes on a schedule.

Mistakes to avoid

  • Treating a popular server as trusted. Popularity is not a review.
  • Pasting a one-line install command without reading it. The specification's own examples show how an innocent-looking command can hide a second one.
  • Letting an assistant hold a high-privilege token "because it is easier."
  • Forgetting about updates. A server you approved in January may add tools in June.
  • Skipping logs. Without logs, you cannot prove what happened if something goes wrong.
Hand on a mouse next to an open notebook during a review session
Approval is a decision with a name and a date on it, not a one-time click.

How this fits with the rest of your controls

An MCP server is just one connection. Combine this review with zero trust principles, data loss prevention, strong sign-in and logging as described in our audit log guide. This article provides general information, not a security certification or legal advice, and the specification text changes; verify details against the current version before relying on them.

Frequently Asked Questions

It is a connector that exposes a system, such as a file store, to an AI application through the Model Context Protocol. It lists tools the AI can request, like reading or searching files, and may hold credentials to access the underlying system.

They have different risks. The protocol's security guidance says local servers can have direct access to the user's system and may run commands with the client's privileges, so sandboxing and clear consent matter. Remote servers shift risk toward tokens, authorization flows and the operator's security.

It is when an MCP server accepts tokens from a client without checking they were issued for that server, then forwards them to a downstream API. The security guidance says it is forbidden in the authorization specification because it can bypass controls and break accountability.

It is an attack on MCP proxy servers that use a static client ID with a third-party authorization server. If the proxy does not obtain per-client consent, an attacker can reuse an earlier consent cookie to steal an authorization code through a crafted link.

Whenever the job allows it. The guidance recommends starting with minimal scopes and increasing only when needed, and OWASP recommends minimizing the functions and permissions of extensions.

It continues to change. The documentation notes, for example, that dynamic client registration is deprecated as of protocol version 2026-07-28. Check the current specification and your vendor's release notes before relying on specific behavior.

Sources

  • Model Context Protocol: Security Best Practices
  • Model Context Protocol: Authorization
  • OWASP Gen AI Security Project: LLM06:2025 Excessive Agency
  • NIST: AI Risk Management Framework

Keep Reading

AI Agent File Access: A Least-Privilege ChecklistThe AI File Agent That Keeps Working After You Revoke AccessBrowser Extension Permissions and File Access RiskSecure File Transfer Audit Logs
Mohamed Siraj

About the Author: Mohamed Siraj

Mohamed is the founder of SecureTools.live. He leads the team in building secure, compliant, and privacy-first directory tooling for software teams, finance professionals, and enterprise security leaders worldwide.

Connect on LinkedIn
Advertise
Advertise
4 of 4 spots left
SecureTools Logo

Practical comparisons, security guidance, verified capabilities, and research for file security and document tools.

Compare tools, understand encryption controls, and choose the right software for your privacy needs.

SOLUTIONS

  • Categories
  • All Tools
  • Open Source
  • Extensions
  • Plugins & MCP
  • Alternatives
  • All Solutions→

PROVIDERS & COMPARISONS

  • Secure File Sharing
  • Encrypted Cloud Storage
  • Virtual Data Rooms
  • Electronic Signatures
  • PDF & Redaction Tools
  • Zero-Knowledge Encryption

RESOURCES

  • Resources & Security Hub
  • Enterprise Security Guide
  • Editorial Standards
  • Security Standards
  • Cryptographic Research
  • File Formats & Specs
  • Blog & Guides
  • Write for Us
  • Contact

POPULAR ARTICLES

  • Bitwarden vs 1Password
  • Cryptomator vs Boxcryptor
  • Nextcloud vs ownCloud
  • What Is Zero-Knowledge?
  • 7-Zip vs PeaZip Guide
  • How to Redact PDFs Safely
ASK AI:Analyze and compare software security tools with prefilled query
ChatGPTChatGPTClaudeClaudePerplexityPerplexityGrokGrok
© 2026 SecureTools.live. All rights reserved.
Editorial Policy·Contact·althunt.io@gmail.com·Write for Us·Sitemap·llms.txt

SecureTools.live evaluates and audits software discovery platforms against documented security, privacy, and zero-knowledge criteria.