The Model Context Protocol solved a real, boring problem: every agent needed its own bespoke glue to reach every tool and data source, and none of it was reusable. MCP standardizes that connection with a common way for an AI host to discover and call tools, read resources, and fetch prompts from a server. The productivity win is obvious, which is why MCP servers are proliferating inside organizations. The security consequence is just as real: a standard interface to your tools and data is also a standard interface for an attacker, and much of it is being deployed faster than anyone is reviewing it.
The pieces, and why each exists
MCP has a small cast. A host (the agent, IDE, or app) runs an MCP client that speaks the protocol. It connects to one or more servers, each of which exposes some mix of tools (actions the model can invoke), resources (data it can read), and prompts (reusable templates). The server is the interesting part for us: it is the thing holding credentials to a real backend (a database, a SaaS API, a filesystem) and deciding what the agent may do there. Three questions cover most of what matters for security: who is the server willing to talk to (authentication), what is it willing to let them do (scopes), and how do the messages travel (transport).
Authentication: who gets to call the server
The earliest MCP deployments largely skipped this: a local server over stdio felt trusted, so many exposed tools with no authentication at all. That assumption breaks the moment a server is reachable over the network or shared between users. Recent versions of the specification address it for HTTP-based transports with an authorization framework based on OAuth 2.1: the server acts as an OAuth resource server, the client obtains an access token from an authorization server, and calls carry that token. The specification makes authorization optional, and it tells stdio servers to take credentials from the environment instead. The framework helps only if you adopt it: a remotely reachable MCP server with no authentication is an open door to whatever backend it holds credentials for.
Scopes: what the server lets the agent do
This is where MCP meets the confused-deputy problem head-on. The server holds real credentials to a backend; the agent decides what to ask for by reading text it does not fully trust. If the server exposes broad, coarse tools, such as “run any query” or “read any file”, then an injected instruction that reaches the agent can drive those tools with the server's full authority. Two abuses are specific to this layer. Tool poisoning hides instructions in a tool's own description or metadata, which the model reads as it decides what to call. Token passthrough, where a server accepts a token it was not issued for and forwards it downstream, turns the server into a confused proxy into systems it should not reach; the specification forbids it. The defense is narrow, task-specific tools and per-action authorization at the server, in place of a single god-tool guarded by hope.
Transport: how the messages travel
The current specification defines two standard transports. stdio connects to a local subprocess with no network, but the server runs with the host's local privileges, so a malicious or compromised server package is code execution on the box. Streamable HTTP (which replaced the earlier HTTP+SSE transport and can stream with server-sent events) exposes the server over the network, which brings the usual web concerns: use TLS, authenticate, and do not bind to a public interface by accident. The specification also tells servers to validate the Origin header, to defend against DNS rebinding, and to bind local servers to localhost. A remote MCP server that is unauthenticated or plaintext is easy to hijack or eavesdrop on, and because it fronts a real backend, the payoff for doing so is high.
Deploying MCP without opening a door
- Authenticate every server. Adopt the OAuth-based authorization flow for HTTP transports, and never expose an unauthenticated server beyond a genuinely trusted local boundary.
- Expose narrow tools. Fine-grained, least-privilege tools with per-action checks beat one broad tool, because the server's scope is your blast radius.
- Secure the transport. TLS for anything remote, bind local servers to localhost, and treat a third-party server package as code you are choosing to run.
- Vet tools and their metadata. Review tool descriptions and updates for hidden instructions, and do not let a server forward tokens it was not the audience for.
MCP is good engineering: it makes agents composable, and it will keep spreading. Standardizing the connection between models and the real world standardizes the attack surface too, and the protocol's own security features only help the teams that turn them on. Servers stood up without review, holding live credentials and reachable over the network, are shadow infrastructure nobody has inventoried. You cannot secure an MCP server you do not know is running.
Primary source. Authorization, Model Context Protocol (specification version 2025-11-25).