MCP Server Security: What You Control and What You Don't
MCP itself cannot enforce its security rules. The spec says so. Here is what the protocol protects, what it leaves to you, and how to decide.
- published
MCP server security is not a switch you flip. It is a set of choices you make when you pick a server, connect a client to it, and approve what it does. The MCP documentation says MCP servers expose your data and tools, and that MCP lets agents take actions on the user's behalf when necessary. That is the whole reason security matters here. A connected server can reach things, and can do things. If you want the background on how the two sides talk, read what MCP clients and servers offer each other first. This page covers the safety side of that trade.
What the protocol itself does not do
The first thing to know is that MCP will not save you on its own. The specification says MCP itself cannot enforce its security principles at the protocol level. It also says the protocol enables powerful capabilities through arbitrary data access and code execution paths.
So the rules live somewhere else. In the spec, the host asks for consent and the user keeps control. The specification says the protocol connections are stateful and servers and clients negotiate capabilities. That negotiation tells each side what the other can do.
Why tools are the main risk
The specification is blunt about tools. It says tools represent arbitrary code execution and must be treated with appropriate caution. A tool call is not a lookup. It is code that runs.
That is why the specification says hosts must obtain explicit user consent before invoking any tool. In practice, the user must say yes before the host runs a tool.
Consent and control are the model
The security model in the spec rests on consent and control. The specification says users must explicitly consent to and understand all data access and operations. Users must also retain control over what data is shared and what actions are taken. And it says hosts must obtain explicit user consent before exposing user data to servers.
Read those together and the job is clear. Before you connect a server, know what data it will see. Before a tool runs, make sure someone approved it. If you cannot answer who consented and to what, that is the gap to close.
Authentication: the connection token
Zapier's quickstart describes a connection token. Zapier's quickstart says a connection token is long-lived, tied to one server, and lets its holder run the server's tools.
That makes the token the keys to the car. The quickstart says never to distribute a connection token or a connection-token URL. Treat it like a password. If it leaves your hands, someone else can run those tools.
Zapier's quickstart also says your MCP client asks you to approve the first Zapier tool run. It says an organization's admin or owner may need to approve the Zapier connector first. Those approval steps are the consent model working as designed. Do not rush past them.
Permissions: pick the apps and actions
Consent at connection time is not enough. You also decide what the agent can reach after that. Zapier says Zapier MCP manages app credentials outside the model and lets you control which apps and actions the agent can use. It also says you can choose which apps and actions your agent can use and remove access at any time.
In Zapier MCP, pick only the apps and actions the client's work needs. Then check that list again later. Access you forgot about is access you no longer control.
Untrusted tool descriptions
Servers describe their own tools. Those descriptions can include annotations. The specification says tool descriptions such as annotations should be considered untrusted unless they come from a trusted server.
This matters more than it sounds. A description tells the model what a tool does, and the model may act on it. So vet the server before you trust its words about itself.
Auditability: what ran
Security does not end at setup. You also need to look back. Zapier says MCP action History gives you a record of what ran. A record like that shows what the agent did. Check it when something looks off, and check it sometimes when nothing does.
Where to go next
To learn where a server can run, read how to host an MCP server and local MCP server. For real servers you can study, see MCP server examples.
The short version of all this: the protocol carries the power, and you carry the rules. Consent to each connection. Guard the token. Narrow the permissions. Distrust descriptions from strangers. Keep a record.