An MCP server can make a capability easy for an AI application to discover and call. That convenience can create a dangerous mental shortcut: “The model only sees a tool named read_notes, so the process can only read notes.” That conclusion does not follow from the protocol.

MCP standardizes communication between an AI application and servers that expose tools, resources, or prompts. A server tool may read a database, modify files, or call another service. The actual authority comes from the server implementation, its runtime identity, configured credentials, and the machine’s operating-system controls. A tool schema describes an interface; it does not turn an overprivileged process into a restricted one.

Follow the authority to its source

For a local server launched as a child process, start by asking what user account runs it and what that account can access. If the server runs as you, it may inherit access to your files and environment. A wrapper that advertises only two MCP tools does not remove a bug in the server or a dependency that reads elsewhere.

For a remote server, inspect the credentials and network access it holds. A narrowly named tool can still forward sensitive data if its implementation or endpoint is compromised. Review where arguments and results travel, how authorization is scoped, and whether the server accepts arbitrary URLs or paths.

The MCP security best practices cover local server compromise, confused-deputy behavior, and scope minimization. MCP’s server concepts describe tools that perform actions and resources that provide read-only access. Review each server's implementation to see how those interfaces map to its permissions.

Trace one server from launch to tool call

Before connecting a server to an agent, write down answers to these questions:

  1. What starts it? Record the exact executable, arguments, package version or commit, and environment variables. For package runners, understand whether each launch can resolve a new version.
  2. What identity does it run as? Identify the OS user, working directory, inherited environment, mounts, and credentials visible to the process.
  3. What can each tool change or disclose? Read the implementation for filesystem access, subprocesses, HTTP requests, writes, and credential use. Tool descriptions are not implementation evidence.
  4. What input is untrusted? Tool arguments, retrieved files, issue text, and server responses can contain hostile instructions. Treat model-visible text as data and validate values before acting.
  5. How do you stop or revoke it? Know how to disconnect the server, terminate the process, revoke tokens, and inspect its logs.

Put limits below the model

Prefer small tools with explicit operations over generic access. read_project_file with a server-enforced root and file-size cap is easier to inspect than run_shell. A database tool that accepts a fixed query shape is easier to limit than one that executes arbitrary SQL. Reject unknown names and malformed arguments in the host, even if the model was given a schema.

Then reduce the process’s OS authority. Run it under a dedicated account, expose only the required directory, use read-only mounts for reference data, and avoid passing unrelated secrets in its environment. Restrict network egress where practical. These controls apply even if a model is manipulated or the server has a bug.

Use human confirmation for irreversible or externally visible actions such as sending messages, deleting data, or changing production state. Show the recipient and message, the files to delete, or the proposed configuration change so the person can inspect the effect before approving it.

Log the tool name, validated arguments with sensitive values redacted, result status, and the identity that authorized the call. If a tool writes the wrong file, that record should tell you which request selected it and which account performed the write. Keep secrets and full private documents out of those logs by default.