Article contents
What is MCP security?
MCP security
The Model Context Protocol (MCP) is an open protocol that lets AI applications connect to outside tools and data through MCP servers. MCP security is making those connections safe: each server is one you trust, gets only the access it needs, cannot trick the agent into misusing other tools, and cannot be used to reach systems it should not.
Why MCP changed the security picture2,3,5
Before MCP, each integration was custom code. Now one agent can connect to many servers in minutes, some running locally on a developer's machine and some running remotely over HTTP. That speed is the point, and it also means a single unreviewed server can sit next to your most sensitive tools.
The protocol moves fast. As of November 2026 the current version of the specification is dated 2026-07-28. Its authorization rules apply to HTTP-based servers and build on OAuth 2.1, which is still an IETF draft, and on Resource Indicators (RFC 8707). Authorization is optional at the protocol level, and local servers that talk over standard input and output are expected to get credentials from their environment instead.
The main MCP attacks, explained1,7,8
Tool poisoning
Instructions are hidden in a tool's description. People reviewing the tool do not see them, but the model reads them and follows them, for example by quietly including a private file in a request. Invariant Labs documented this in April 2025.
Rug pull
A server changes a tool's description or behavior after you approved it, turning a trusted tool malicious. Approval at install time is not enough on its own.
Cross-server influence
A malicious server's tool descriptions change how the agent uses tools from a different, trusted server connected at the same time.
Token passthrough
A server accepts a token that was not issued for it, or forwards a user's token unchanged to other services. The specification says MCP servers must not accept tokens that were not explicitly issued for them.
Confused deputy
A proxy server that uses one shared client ID with a third-party service is tricked into authorizing an attacker. The specification calls for per-client consent before forwarding authorization.
Session and state hijacking
An attacker reuses a session ID or state handle to act as someone else. The specification says possession of a state handle must not be treated as authentication.
Server-side request forgery
Malicious URLs in authorization metadata make the client fetch internal addresses. Block private and reserved addresses and validate every redirect.
Local server compromise
A one-click install runs a command on your machine with your permissions. Clients should show the exact command before running it, and local servers should run in a sandbox.
Real vulnerabilities in MCP tooling10,11
Both were fixed. They affected widely used tools around MCP, not every MCP server, and show why MCP components need patching like any other software.
Local and remote MCP servers need different controls1,4
Human in the loop is in the specification6
The MCP tools specification says that for trust, safety and security there should always be a human in the loop with the ability to deny tool invocations. It also says clients must treat tool annotations, such as a hint that a tool is read-only, as untrusted unless they come from trusted servers.
Note the words: should, not must. The specification describes the intent; it does not enforce it. Whether a person can actually deny a tool call depends on the client and the platform your agents run on. Annotations are useful hints for a review screen, not controls.
MCP security best practices checklist
Based on the MCP specification's security best practices and OWASP's MCP guidance. Adapt to how your agents connect.
- Keep an approved list of MCP servers, each with a named owner
- Prefer servers from publishers you can verify. A registry listing is discovery, not a security review
- Pin server versions and read tool names and descriptions before approving; re-approve when they change
- Run local servers in a sandbox with limited file, network and system access
- Show and check the exact command before installing a local server
- Include the resource parameter so each token is issued for one specific server
- Reject any token that was not issued for your server, and never forward a user's token downstream
- Start with minimal scopes and step up only when a tool needs more, logging each elevation
- Authenticate every request; never treat a session ID as proof of identity
- Block requests to private and internal addresses and restrict outbound traffic
- Require a person to approve tool calls that send, pay, delete or change records
- Record every tool call with the server, tool, parameters and result
- Patch MCP clients, proxies and developer tools, and track which versions you run
- Be able to disconnect a server and revoke its credentials in one step
Further reading from OWASP and the MCP project12,8,9
The official MCP Registry is still in preview, and it hosts metadata that points to packages rather than reviewing their code. OWASP maintains an MCP Security Cheat Sheet covering tool poisoning, rug pulls and cross-server influence, and in November 2025 the OWASP GenAI Security Project published a practical guide to securely using third-party MCP servers, covering authentication, authorization, client sandboxing, secure discovery and governance workflows.
Where Quaspar fits
Quaspar is the governance layer for AI agents, and it governs what agents do with the tools and systems they are connected to. Each agent's permissions (which tools, which data, and whether it can only read or also change things) are set when it is created and enforced by Quaspar, never by the model. An automated check reviews each new agent's design, and risky capabilities default to requiring approval. Runs have hard limits on tool calls, run time and daily AI spending. Outgoing messages, submissions and changes to connected systems wait in Workspace for a person, and an administrator can cancel any run or pause any agent instantly. Every run, tool call, approval and rejection goes into an activity record written by Quaspar, not by the agent. Credentials for connected tools are write-only, and disconnecting a tool deletes its stored credentials.
Quaspar does not audit the code of third-party MCP servers or other tools; you still decide which ones to trust. Quaspar is in private preview and is not SOC 2 certified.
Next step
Quaspar is the governance layer for AI agents and is in private preview. Request access to set agent permissions, route important actions to people and keep a record of what every agent did.
Request Studio accessSources
Authoritative references
Rules, standards, and guidance can change. The links below were reviewed on November 23, 2026.
- 1Model Context Protocol. Security Best Practices
- 2Model Context Protocol. Versioning
- 3Model Context Protocol. Authorization (specification 2026-07-28)
- 4Model Context Protocol. Authorization: Security Considerations (specification 2026-07-28)
- 5IETF / RFC Editor. RFC 8707: Resource Indicators for OAuth 2.0
- 6Model Context Protocol. Tools (specification 2026-07-28)
- 7Invariant Labs. MCP Security Notification: Tool Poisoning Attacks
- 8OWASP Cheat Sheet Series. MCP Security Cheat Sheet
- 9OWASP GenAI Security Project. CheatSheet – A Practical Guide for Securely Using Third-Party MCP Servers 1.0
- 10GitHub Advisory Database. CVE-2025-6514: mcp-remote exposed to OS command injection
- 11Model Context Protocol on GitHub. CVE-2025-49596: MCP Inspector proxy server lacks authentication
- 12Model Context Protocol. The MCP Registry
