MCP SECURITY
What is MCP security?
MCP security is the practice of protecting AI applications and agents that connect to external tools, data, and services through Model Context Protocol.
Security teams need to understand not only the MCP connection itself, but also the tools, credentials, permissions, systems, and actions behind it.
THE DEFINITION
MCP security protects the path from agent to action.
MCP security is the practice of protecting AI systems that use Model Context Protocol to connect to tools, data sources, and external services. It includes securing MCP servers and clients, understanding tool permissions and credentials, limiting access, treating tool output as untrusted, controlling sensitive actions, and monitoring how agents use MCP.
MCP security commonly includes:
- MCP server inventory
- Tool inventory
- Ownership
- Authentication
- Authorization
- Credential management
- Least privilege
- Prompt injection defense
- Tool-output validation
- Runtime action control
- Human approval
- Data protection
- Red teaming
- Auditability
THE PROTOCOL
What is Model Context Protocol?
Model Context Protocol, or MCP, is a standard that allows AI applications to connect to external tools, data sources, and services through a common interface.
Without a shared protocol, every AI application needs its own integration for every system it uses. MCP gives those connections one shape, which makes it easier to expose capabilities to AI systems, and easier for those systems to reach more of the business.
For a security leader, the practical meaning is simple: an MCP connection is a new, standardized way for an AI system to read and act on enterprise systems.
ARCHITECTURE
How does MCP work?
An AI application uses an MCP client to connect to one or more MCP servers. Each server exposes tools and resources, and those tools reach the external systems where data lives and actions happen.
THE CLIENT
What is an MCP client?
An MCP client is the component inside an AI application that connects to an MCP server and makes tools or resources available to the AI system.
The client sits on the path between the agent and the MCP server, so it decides much of what the agent is exposed to.
Security concerns include:
- Which servers the client trusts
- Which tools become available to the agent
- How server metadata is handled
- What information is sent to the server
THE SERVER
What is an MCP server?
An MCP server exposes tools, resources, or capabilities that an AI application can access through Model Context Protocol.
Because it can sit between the agent and sensitive systems, an MCP server is often an important security boundary.
An MCP server may be:
THE TOOL
What is an MCP tool?
An MCP tool is a capability exposed by an MCP server that an AI application or agent can invoke.
A tool turns model intent into an external action.
WHY IT MATTERS
Why is MCP security important?
MCP can expand what an AI system knows — and what it can do.
Connecting an agent to an MCP server can add capability in several places at once. Each one moves the security boundary outward.
THE TRUST MODEL
What does an MCP connection actually trust?
Approving an MCP connection extends trust down a chain. Each layer raises its own question, and an answer at one layer says nothing about the next.
- 01AGENT
Which agent is requesting access?
- 02MCP CLIENT
Which servers does it trust, and what does it send them?
- 03MCP SERVER
Who operates it?
- 04TOOL
What capability does it expose?
- 05CREDENTIAL
Which identity does it use?
- 06SYSTEM
What can it reach?
- 07DATA / ACTION
What can it change or move?
RISK TAXONOMY
What are the main MCP security risks?
The risks follow the trust path: what a server is, what its tools expose, what the credentials behind them can reach, and what content comes back.
AUTHENTICATION
How does authentication fit into MCP security?
Authentication answers one question: who or what is connecting?
For remote servers, the MCP specification defines an optional authorization flow based on OAuth 2.1. Local servers that run over standard input and output take their credentials from the environment they run in instead.
Either way, a valid authenticated connection does not mean every available action should be allowed.
Identities can exist at several layers:
ACCESS DECISIONS
Authentication and authorization are not the same
Authenticated does not mean authorized for every tool or action.
Explore Runtime SecurityCREDENTIALS
What credentials sit behind MCP tools?
An MCP tool usually authenticates to its downstream system with a credential of its own. The agent may never receive that credential directly. If it can invoke the tool, it can still exercise the permissions behind it.
The MCP security guidance forbids one shortcut outright: a server passing a client’s token straight through to a downstream API, which hides who is really acting.
Effective agent access includes permissions exercised indirectly through MCP tools.
Explore Agent Identity & PermissionsLEAST PRIVILEGE
Apply least privilege to MCP tools
- Read invoiceNeeded
- Modify invoiceNot needed
- Issue refundNot needed
- Export customerNot needed
- Delete invoiceNot needed
Security teams should minimize exposed tools, downstream permissions, writable resources, accessible datasets, and external actions. Limit the tools an agent can see and the permissions each tool runs with.
Explore Overprivileged AgentsTOOL OUTPUT
Should MCP tool output be trusted?
Not automatically. A tool can be approved and still return content that nobody approved. Tool responses carry whatever the downstream system holds, and that content may be untrusted.
Trust the connection selectively; validate the content separately.
Tool output may include content from:
PROMPT INJECTION
How can prompt injection happen through MCP?
Instructions can arrive inside the content an MCP tool returns. This is an indirect prompt injection pattern: the malicious instructions come through external content rather than a direct user prompt.
The defense is not only to filter content. It is to limit what the agent can do next if manipulated content gets through.
Explore Indirect Prompt Injection Prompt InjectionTOOL POISONING
What is MCP tool poisoning?
Tool poisoning is manipulation of the information associated with a tool in a way that causes an AI agent to misunderstand the tool or use it unsafely.
Agents decide which tool to use, and how, from what the tool says about itself. That makes the tool’s self-description part of the attack surface. Review it as you would code, and watch for changes after approval.
THIRD-PARTY SERVERS
How should organizations evaluate third-party MCP servers?
Third-party does not automatically mean unsafe. It means the trust boundary should be explicit.
- Who operates the server?
- Where is it hosted?
- What data does it receive or process?
- Which tools does it expose?
- What credentials does it use?
- What systems can it reach?
- How is the server updated?
- What dependencies does it use?
- Who owns the relationship internally?
- How is access revoked?
VISIBILITY
What is shadow MCP?
Shadow MCP refers to MCP servers or connections used inside an organization without full visibility, inventory, ownership, or security review.
You cannot assess MCP risk if you do not know the connection exists.
Explore Agent DiscoveryCommon sources:
DATA SECURITY
How can MCP expose sensitive data?
Data can move in two directions through MCP: from internal systems into the agent’s context, and from the agent out to wherever a tool can send it.
Security questions:
- What can the tool read?
- What can it write?
- What can it export?
- Where can it send data?
- Which identity enables access?
TOOL MISUSE
A trusted MCP tool can still be used unsafely
The server is legitimate. The tool is legitimate. The action is still inappropriate for the task. Approving a tool is not the same as approving every way it can be used.
Explore Tool MisuseEXCESSIVE AGENCY
MCP can expand agent autonomy
Adding a powerful MCP tool can turn an advisory agent into one that acts. That changes the security model, so permissions, autonomy, approval, and runtime policy should be reconsidered whenever a tool is added.
Explore Excessive AgencyA person reads the recommendation and decides.
The decision and the action now sit with the agent.
TOOL CHAINS
MCP security should consider tool chains
Risk can emerge from the sequence rather than the individual tool.
Each tool may be legitimate on its own. Combined, the workflow can become a data-exfiltration path.
RUNTIME SECURITY
Some MCP actions should be evaluated at runtime
A static permission says the finance service may issue payments. It cannot say whether this payment, of this size, requested by this agent, should go through now. Runtime policy can.
Context can include the agent, identity, tool, parameters, resource, data sensitivity, environment, destination, and autonomy level.
Explore Runtime SecurityHUMAN CONTROL
Which MCP actions should require human review?
Most MCP actions do not need a person in the loop. Review earns its cost where an action is hard to undo, moves data outside the organization, or carries legal, financial, or customer impact.
ADVERSARIAL TESTING
How do you red team MCP?
MCP red teaming tests the whole path, not just the model. For each scenario, it asks which server was involved, which tool was invoked, which identity authorized it, what the action affected, and whether runtime controls worked.
Explore AI Red TeamingPRACTICAL GUIDANCE
MCP security best practices
CHECKLIST
MCP security checklist
Run this for every MCP server an agent can reach, before production and whenever its tools change.
- Server owner known
- Server purpose documented
- Connected agents known
- Tools inventoried
- Tool permissions reviewed
- Credentials mapped
- Sensitive data identified
- External destinations understood
- Production access justified
- Tool output treated as untrusted
- High-impact actions controlled
- Human approval defined
- Logging enabled
- Red-team scenarios tested
- Decommissioning process defined
REFERENCE ARCHITECTURE
A practical MCP security architecture
Controls follow the path from the agent through the client, server, tools, and credentials to the systems, data, and actions at the end of it.
AUTHORITATIVE GUIDANCE
MCP security guidance and related frameworks
These resources provide shared language for MCP threat modeling, authorization, testing, and risk management. They do not imply endorsement of Eyrane.
EYRANE’S POINT OF VIEW
Secure the full MCP path
MCP security should not stop at whether a server connection is authenticated.
Security teams need visibility into the agent, tool, credential, downstream system, data, and action behind that connection.
Eyrane is focused on securing that complete path.
COMMON QUESTIONS
Questions about MCP security
What is MCP security?
MCP security is the practice of protecting AI systems that use Model Context Protocol to connect to tools, data sources, and external services. It covers MCP servers and clients, tool permissions, the credentials behind tools, untrusted tool output, sensitive actions, and monitoring of how agents use MCP.
What is Model Context Protocol?
Model Context Protocol (MCP) is a standard that lets AI applications connect to external tools, data sources, and services through a common interface, instead of a custom integration for each one.
What is an MCP server?
An MCP server exposes tools, resources, or prompts that an AI application can use through Model Context Protocol. It may be built internally, run locally, be hosted remotely, come from open source, or be operated by a vendor.
What is an MCP client?
An MCP client is the component inside an AI application that connects to an MCP server and makes that server’s tools and resources available to the AI system.
What is an MCP tool?
An MCP tool is a capability exposed by an MCP server that an AI application or agent can invoke, such as searching records, querying a database, creating a ticket, or sending a message.
Is MCP secure?
MCP is a protocol, not a security guarantee. Its specification includes an OAuth-based authorization flow for remote servers and published security best practices, but the risk of a connection depends on the server, its tools, the credentials behind them, and the controls around how an agent uses them.
What are the main MCP security risks?
The main MCP security risks include untrusted or compromised servers, tool poisoning, indirect prompt injection through tool output, excessive tool permissions, overprivileged credentials, tool misuse, data exposure, unsafe actions, third-party risk, and shadow MCP.
What is MCP tool poisoning?
MCP tool poisoning is manipulation of the information associated with a tool, such as its description, metadata, parameters, or output, in a way that causes an AI agent to misunderstand the tool or use it unsafely.
Can MCP cause prompt injection?
Yes. Content returned by an MCP tool or resource can contain instructions that influence an agent. Because the instructions arrive through external content rather than the user’s prompt, this is a form of indirect prompt injection.
Should MCP tool output be trusted?
Not automatically. Tool output can carry content from databases, web services, users, documents, and third-party systems. An approved tool can still return untrusted content, so the connection and the content should be evaluated separately.
How do MCP tools use credentials?
MCP tools often reach downstream systems through a service account, API key, OAuth token, cloud role, workload identity, or user-delegated token. The agent may never see the credential, but by invoking the tool it can exercise the permissions behind it.
What is shadow MCP?
Shadow MCP refers to MCP servers or connections used inside an organization without full visibility, inventory, ownership, or security review.
How can organizations secure MCP servers?
Inventory servers and owners, review exposed tools, map the credentials behind them, apply least privilege, treat tool output as untrusted, control high-impact actions at runtime, require approval where appropriate, log tool use, and red team the full path.
Should MCP actions require human approval?
Some should. Large financial transactions, external data transfers, destructive actions, production changes, and privileged administration often merit human review. Low-risk reads usually do not.
How do you red team MCP?
Red teaming MCP tests the full path from agent to action: manipulated tool output, misleading tool descriptions, excessive downstream permissions, untrusted server behavior, tool misuse, approval bypass, multi-tool chains, and data exposure.
MCP SECURITY
Secure every connection from agent to tool.
Understand MCP servers, tools, credentials, permissions, data, and runtime actions across your agentic environment.