Insights / Threads
MCP server security starts with who gets through the door
The risk in an MCP server is not the protocol. It is designing the server as if it were an API for people. An agent takes instructions from anywhere, an email, a PDF or another tool’s description, and that forces an uncomfortable starting assumption. The model can be manipulated, and the server has to hold anyway.
An agent is not a user in a hurry
An API built for people assumes that whoever presents the token means every call they make. With an agent that assumption fails. The intent may come from the user, or from text the model read three steps earlier.
OWASP ranks prompt injection first in its Top 10 for LLM Applications (LLM01:2025) and describes the indirect form as what happens when a model accepts input from external sources such as websites or files. In December 2025 it added a Top 10 for agentic applications, whose first three entries are agent goal hijack, tool misuse, and identity and privilege abuse. Of the mitigations OWASP lists for LLM01, two matter most to whoever designs the server. Least privilege, and human approval for high-risk actions.
The implication is architectural. Injection is not solved inside the model, so the server has to cap the damage a deceived agent can do.
We see the demand side of this in our own Search Console. Between August and November 2026, questions such as “how can companies safely integrate ai agents into business processes?” and “how can enterprises govern claude-powered ai agents?” reached the blog in positions 3 to 7. A small sample, but a consistent one. The people asking are not looking for a protocol tutorial. They want to know where control lives.
Least privilege is designed in the server, not in the prompt
Telling an agent to be careful is not a control. What the server does not allow cannot happen, however persuasive the text the model has just read.
Two decisions carry most of the effect.
Small scopes, with read and write kept apart
The MCP security best practices list wildcard scopes, publishing every scope up front and trusting the scopes claimed in a token without server-side authorization logic as common mistakes. A broad token that leaks opens everything at once, and revoking it stops everyone’s work.
We hold our own product to that. Kinmu AI Connect, the MCP server of Kinmu, the time tracking, leave and shift platform we build, works with two ceilings. The person’s role sets the maximum, and the scope of the token sets a second, lower limit. The convenient connection, OAuth with a consent screen, grants read access to the person’s own data and nothing else. Clocking in or requesting leave takes a key the person creates in the dashboard. Writing is a deliberate step, never a side effect of having connected.
Permissions are rechecked on every call
A token is a snapshot of what someone was allowed to do when it was issued. Hours can pass between that snapshot and the call, and in that time people change teams or leave.
In Kinmu the ceiling is the role the person holds today, not the one they held when they connected. When access to AI was restricted to administrators and managers on 18 November 2026, tokens held by people with the employee role stopped working without anyone having to revoke them one by one.
Tokens are keys, not sessions
The MCP specification leaves little room here. The token travels in the Authorization header on every request and must not appear in the URL. The server must validate that the token was issued for it and must neither accept nor pass along tokens meant for other services. Access tokens should be short-lived, and for public clients refresh tokens must rotate.
On top of that baseline, Kinmu AI Connect adds controls the specification leaves to each implementer.
- Refresh token lineage. Reusing one revokes its whole family, because reuse is the mark of possible theft.
- Cascade revocation. Withdrawing an authorization takes the tokens that depend on it down with it.
- HTTPS redirects only, and rate-limited registration of new clients.
Revocation does not rest with the individual alone either. The company sees the assistants authorized on its account and can cut any of them off immediately, as the help article for administrators explains.
Prompt injection and tool poisoning are not fixed with a warning
OWASP maintains a Top 10 specific to MCP, still in beta. It includes tool poisoning, defined as an adversary compromising the tools a model depends on or their outputs, and prompt injection through contextual payloads. The specification says the same from the other side. Clients must treat tool annotations as untrusted unless they come from a trusted server, and servers must validate inputs, enforce access controls, rate limit invocations and sanitize what they return.
For a decision-maker this reads two ways. If the company connects third-party servers, each one is another supplier, with a review on the way in and an offboarding on the way out. If the company publishes its own, anything the server returns that someone else wrote, a comment, a ticket or an uploaded document, is content that will land in front of the model. The controls below assume that one day that content will carry instructions.
No destructive operation without a person in front of it
The specification recommends that a human should always be able to deny a tool call. Since November 2026 the mechanism for asking is generally available in Claude and Claude Code. Elicitation lets the server pause a call and put a question to the user. Anthropic cites Supabase, which confirms costs before creating a paid project and before running destructive SQL, and GitHub, which has users type a repository’s name before an agent deletes it. We cover it in the thread on tasks and confirmations in MCP.
Until every client supports it, the fallback is design. What is not exposed needs no confirmation, and what is exposed can carry caps that bound what a manipulated agent could do.
The audit trail is written with the change, not after it
A log written afterwards, in another system, if all goes well, fails on the day it is needed. OWASP lists lack of audit and telemetry among its ten MCP risks for that reason. Without a trail there is nothing to investigate.
The studio’s client portal, an internal tool the team uses, has its own MCP server and applies the strictest version. It has no delete operations, writes carry revision control so nobody’s work gets overwritten, and the audit entry is stored in the same transaction as the change. If the server cannot record who did it, the change does not happen.
Twelve checks before you open an MCP server
The list works as it stands, for reviewing your own server or for questioning whoever builds it.
- Each person authorizes their own connection. No shared credentials.
- Tokens are issued for this server, and tokens for anything else are rejected.
- No token or sensitive value travels in a URL.
- Short-lived access tokens and rotating refresh tokens with reuse detection.
- Revocation per connection, available to the person and to an administrator.
- Separate scopes for reading and writing. Writing off by default.
- Permissions rechecked against the person’s current status on every call.
- Offboarding a person invalidates their tokens in the same action.
- No delete operations, or explicit human confirmation where they are unavoidable.
- Revision control on writes, so nobody’s changes get overwritten.
- Audit in the same transaction as the write, with the person and the resource affected.
- Rate limits per person, and third-party content treated as data, never as instruction.
What protects you is what the server refuses to do
None of the twelve checks depends on which model the agent runs or how well its prompt is written. That is the evidence they sit in the right place. A server designed this way can be offered to any compatible client without renegotiating security each time the assistant changes.
These controls are the technical half of a wider framework, covered in the thread on AI agent governance, and they weigh heavily in the choice between building your own server and using an existing connector. The full context is in the hub on MCP for business. And if there is a server to review or design, that is part of our AI agents service.
Frequently Asked Questions
The protocol handles authorization well, with OAuth 2.1, tokens bound to each server and scopes. The risk lies in how each server is designed. One that grants broad permissions, allows deletion without confirmation or trusts the model to behave is unsafe even if it follows the specification. One with minimal permissions rechecked on every call and a proper audit trail is reasonably safe.
Over-broad scopes, mishandled tokens, prompt injection through content the agent reads, poisoned tool descriptions or results from untrusted servers, destructive operations with no human confirmation and missing audit logs. OWASP maintains a beta Top 10 for MCP that covers most of them, and the MCP project publishes its own security best practices.
You cannot prevent a model from reading malicious text, so you limit what follows. Keep permissions minimal, separate read from write, require a human confirmation for sensitive operations, treat third-party content returned by tools as data and log every write. OWASP lists least privilege and human approval as the core mitigations.
Sent in the Authorization header on every request and never in the URL, issued for that specific server, short-lived and paired with rotating refresh tokens. The server must reject tokens issued for other services and must not forward its own tokens to upstream APIs. Reuse detection and per-connection revocation are worth adding.
Govern at the server, not in the prompt. Decide which connectors are approved, give each person their own authorization, keep write access off by default, recheck permissions on each call and make sure offboarding someone invalidates their tokens. Where a server supports it, the Enterprise Managed Auth extension lets an administrator authorize it once for everyone.
To go from theory to practice
AI agents, in production.
More information