MCP security: the risks that matter when you open your app to AI assistants

decor-hero-right.svg.png
decor-hero-left.png

MCP security is less about the protocol than about what you connect to it. The Model Context Protocol is a connection standard. It now has a solid authorisation model, but it does not decide what your tools can do, which text a model trusts or how much a token is allowed to touch. So those decisions are yours. For a company opening its app to ChatGPT, Claude or its own in-app agent, the risks come down to three questions. What text can steer the model? What can the tools do? And what credentials do they hold? This article answers each one and ends with a checklist you can use before launch.

It is part of our guide to the Model Context Protocol for app owners.

Is MCP secure?

MCP is as secure as the server you build and the permissions you give it. For remote servers, the protocol builds authorisation on OAuth 2.1, so users sign in with your identity system and assistants receive scoped tokens. The remaining risks, such as prompt injection and over-broad tools, sit in your design and need deliberate controls.

What the 2026 specification already fixed

Early MCP servers often handled authentication in their own way, or not at all. The specification has tightened this step by step since 2025, and the current version, 2026-07-28, adds further hardening:

  • MCP servers are OAuth resource servers. Authorisation aligns with OAuth 2.1 and OpenID Connect, so you can plug in the identity provider you already use.
  • Tokens are bound to your server. The MCP security best practices say a server must not accept tokens that were not issued for it, and must not pass a client’s token straight through to another API.
  • Sessions are gone from the core. A server can run behind an ordinary load balancer, with the usual network controls, like any other HTTP service.

These are real improvements. At the same time, they mean the big remaining MCP security risks are not about the protocol at all.

Six MCP security risks to plan for

1. Prompt injection through tool output

A model treats everything in its context as information it may act on. For example, if your tool returns a product review, a support ticket or an email, and that text contains instructions, the model may follow them. This is indirect prompt injection, and it is more serious with MCP than in a chatbot because the model has tools to act with.

What to do: treat everything a tool returns as data, never as instructions. Do not let returned content trigger a write action without a check in your own code, and confirm sensitive actions with the user.

2. Tool poisoning

Tool descriptions are text the model reads in full, while users usually see only a short name. A malicious or compromised server can hide instructions there. Similarly, a variant sometimes called a rug pull changes a description after it was approved.

What to do: for servers you build, put tool descriptions under the same review and change control as code. For servers your team connects to, use trusted sources only and pin versions.

3. Tools and scopes that are too broad

A tool that can “update any customer field” or “run any query” will eventually be used in a way nobody planned. The OWASP Top 10 for LLM applications calls this excessive agency. Broad OAuth scopes have the same effect, because the wider the key, the worse it is to lose.

What to do: keep tools narrow and task-shaped. Request the smallest scopes that work, and separate read tools from write tools.

4. Token passthrough and the confused deputy

When an MCP server sits in front of another API, it can be tempting to forward the user’s token as it is. However, that breaks the trust boundary: the downstream API can no longer tell who is calling, and a stolen token works in more places. The specification forbids this pattern.

What to do: validate that every token was issued for your server, and use your own credentials, with their own audience, for calls to downstream APIs.

5. Write actions without confirmation

Payments, cancellations, deletions and messages sent on a user’s behalf cannot be undone. A model that misunderstands a request, or follows an injected instruction, should not be able to complete them alone.

What to do: require explicit user confirmation for anything irreversible. Add limits per user and per time window for every write tool.

6. No audit trail

When something goes wrong, you need to know which agent called which tool, for which user, with what arguments and with what result. Yet many early servers log none of it.

What to do: log every tool call from day one, without storing secrets in the logs. It is also the data you will use to improve your tools.

The OWASP MCP Top 10 covers these risks and a few more in detail. It is still in beta, so treat its wording as a draft, but it is a useful checklist for a security review.

Servers you build vs servers you connect

Two different teams usually face two different problems.

MCP server you buildMCP servers your team connects to
Typical caseYour app, opened to ChatGPT, Claude or partnersEmployees using assistants with third-party tools
Main risksOver-broad tools, prompt injection through your data, weak authorisation, no logsTool poisoning, malicious or changed servers, credentials stored on laptops
OwnerProduct and engineeringIT and security
First controlRead-only tools and OAuth scopesAn approved list of servers and pinned versions

So if your company does both, keep the two policies separate. The questions are different, and so are the people who answer them.

Security starts in the product decision

Tapptic view: Most MCP security work is product design. A server with five narrow, read-only tools has a small attack surface before anyone writes a security control. A server generated from fifty API endpoints has a large one, whatever the controls.

That is why we suggest starting read-only. “Show my order status” or “list my upcoming appointments” removes most of the risks above: nothing can be bought, cancelled or deleted. You then add write actions one at a time, each with its own confirmation, limits and log review. The same logic is behind our advice in how to connect your app to ChatGPT and Claude.

MCP security checklist before launch

  • ☐ Users sign in through OAuth 2.1 with your existing identity provider
  • ☐ Your server accepts only tokens issued for it and never forwards them
  • ☐ Each tool does one task; there is no generic “query” or “update anything” tool
  • ☐ Read and write tools are separate, with separate scopes
  • ☐ Every irreversible action needs explicit user confirmation
  • ☐ Write tools have rate limits per user
  • ☐ Tool output is treated as data; no write action is triggered by returned text alone
  • ☐ Tool descriptions are reviewed like code, and changes are tracked
  • ☐ Every tool call is logged with user, arguments and result, without secrets
  • ☐ Someone owns the server after launch: monitoring, updates and specification changes

Who should own MCP security?

Three roles, together. The product owner decides which tools exist and what each is allowed to do. Security reviews scopes, logging and the threat model. Engineering implements authorisation, validation and limits. When one of the three is missing, the usual result is either a server that is too open or one that never ships.

FAQ: MCP security

Is MCP safe to use with customer data?

It can be. Use OAuth 2.1 with narrow scopes, start with read-only tools, confirm sensitive actions and log every call. The protocol supports all of this, but none of it is automatic.

What is tool poisoning in MCP?

Tool poisoning is hidden instructions placed in a tool’s description or parameters. The model reads them, while the user usually does not see them. It mainly affects teams that connect to third-party MCP servers.

Does MCP expose my API keys to the AI model?

Not if the server is built correctly. Credentials stay on the server, and the model only sees tool names, descriptions and results. Your server must still avoid putting secrets in tool output or logs.

Do I need a security review before launching an MCP server?

Yes, if it touches customer data or can take actions. Review it the way you would review a new public API, plus the AI-specific risks in this article.

Where to go next

To decide whether an MCP server is worth building at all, read is MCP worth it for your app?. For how MCP relates to the API you already have, see MCP vs API. And for the full picture, start with our Model Context Protocol guide.

Tapptic classic logotype in full
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.