MCP in a Minute · intermediate
MCP in a Minute: Permissions and security
MCP security is mostly about which servers you trust, which tools they expose, and what those tools can reach.
Last verified: 2026-09-06
In one sentence
Treat every MCP server as code with credentials: only connect what you trust, and only expose tools you would allow a junior engineer to run.
Why it matters
MCP tools can read data and trigger side effects outside the repo. A prompt injection in a webpage, ticket, or file can steer an agent toward those tools.
How it works
Reduce risk in layers:
- Server allowlist — do not install random servers;
- Least privilege — tokens scoped to the minimum APIs;
- Tool subset — disable dangerous tools when the client allows it;
- Human approval — require confirmation for mutating or irreversible actions;
- Environment split — different MCP configs for personal experiments vs company repos.
Local servers are not automatically safe; they still run with your user permissions.
Example
A safer issue-tracker setup:
- read-only token for fetching issue text;
- no “close issue” or “delete project” tools enabled;
- ask-before-write for comments if writes are required.
Agentic coding use
Coding agents already have shell access in many setups. MCP multiplies reach into SaaS systems. Your security model must include tool policy, not only file permissions.
Watch out
“Connected for a demo” servers tend to stay connected. Audit MCP configs the same way you audit CI secrets.