The OWASP MCP Top 10 (MCP01 through MCP10) gives security and platform teams a dedicated threat taxonomy for the Model Context Protocol. While the OWASP Agentic Top 10 focuses on autonomous reasoning and multi-agent failure modes (ASI01–ASI10), the OWASP MCP Top 10 zooms straight into the protocol layer where agents discover tools, exchange OAuth tokens, invoke stdio or HTTP servers, and pull external context into the model window.
If your engineering teams connect Claude Code, Cursor, Codex CLI, or production agents to GitHub, Slack, SQL databases, or internal APIs over MCP, this guide maps every MCP01–MCP10 risk to concrete detection signals, runnable checks, and inline gateway controls. You can also score your current posture in two minutes with our browser-local OWASP MCP Top 10 checklist tool.
Complete OWASP MCP Top 10 (MCP01–MCP10) Defense Matrix
| ID | OWASP MCP Risk | Primary Attack Mechanism | Concrete Engineering Control |
|---|---|---|---|
| MCP01 | Token Mismanagement & Secret Exposure | Long-lived API keys hardcoded in mcp.json, leaked in logs, or echoed into model context |
Move upstream credentials to a server-side secret vault or MCP gateway; issue short-lived, audience-bound OAuth 2.1 tokens; block secret patterns on tool outputs |
| MCP02 | Privilege Escalation via Scope Creep | Agents inherit broad user or admin tokens and accumulate write/delete permissions over time | Enforce per-connection tool allow-lists, separate read-only vs mutating tools, and prune unused permissions on a schedule |
| MCP03 | Tool Poisoning | Hidden prompt-injection instructions embedded in tools/list descriptions or JSON schema fields |
Hash-pin approved tool schemas before runtime; hold new or mutated tool definitions for human review before exposing them to models |
| MCP04 | Supply Chain & Dependency Tampering | Unpinned npx -y / uvx packages, typosquatted MCP registries, or compromised upstream servers |
Pin exact immutable versions or container digests; prohibit unpinned package runners in production; maintain a signed AIBOM |
| MCP05 | Command Injection & Execution | Unsanitized LLM arguments concatenated into shell commands, SQL queries, or file paths inside an MCP server | Reject shell-wrapper launchers (sh -c, bash -c); use parameterized APIs and strict JSON Schema argument validation at the gateway |
| MCP06 | Prompt Injection via Contextual Payloads | Malicious instructions buried inside fetched tickets, PRs, emails, or docs hijack the agent's next tool call | Inspect tool outputs for injection patterns; require human approval on high-impact downstream actions (writes, payouts, external sends) |
| MCP07 | Insufficient Authentication & Authorization | Unauthenticated tools/list or HTTP MCP endpoints, missing RFC 8707 audience checks, or token passthrough |
Require OAuth 2.1 + PKCE + RFC 8707 resource indicators on HTTP MCP servers; forbid blind token passthrough to downstream APIs |
| MCP08 | Lack of Audit and Telemetry | No durable record tying an agent identity, caller, tool arguments, and policy verdict together | Route MCP calls through a central control plane that produces tamper-evident, offline-verifiable decision records and forwards alerts to your SIEM |
| MCP09 | Shadow MCP Servers | Developers install local stdio servers or third-party cloud MCP endpoints outside IT/security visibility |
Discover servers from IDE configs, GitHub/GitLab repositories, and egress telemetry; require gateway registration for corporate data access |
| MCP10 | Context Injection & Over-Sharing | Combining two individually safe tools (e.g., internal DB read + external email send) leaks sensitive data across trust boundaries | Apply sequence rules that catch read-then-exfiltrate pairs across tools; isolate tenant context windows and redact PII on responses |
Deep Dive: The 4 Controls That Neutralize 80% of MCP Risk
1. Eliminate Hardcoded Secrets & Token Passthrough (MCP01 & MCP07)
The fastest way an MCP deployment fails an audit is placing a static personal access token inside a developer's mcp.json or forwarding a user's OAuth token straight through an MCP server to a downstream SaaS API.
- Never put static secrets in client configs. Scan existing
mcp.jsonfiles locally with the MCP config security checker to catch tokens, shell wrappers, and unpinnednpx -ycommands before they reach Git. - Bind tokens to the exact MCP resource. On Streamable HTTP MCP servers, validate the
audclaim against your server's canonical resource URI using RFC 8707 resource indicators so a token minted for a low-risk docs server cannot be replayed against a billing server. - Keep upstream provider and SaaS credentials off the agent host. Terminate agent authentication at an MCP gateway that exchanges scoped runtime identity for least-privilege upstream access.
2. Pin Tool Schemas & Block Silent Rug Pulls (MCP03 & MCP04)
In an MCP03 tool poisoning or rug pull attack, a remote MCP server returns a benign tools/list response during security review and later swaps the tool description to instruct the LLM to read ~/.ssh/id_rsa or exfiltrate secrets into a benign-looking parameter.
# Example policy: fail closed on unapproved MCP tool schema changes
mcp_policy:
server: "crm-mcp-prod"
mode: "enforce"
tool_baseline:
pin_sha256: true
on_schema_drift: "block_and_flag_review"
allowed_tools:
- name: "contacts.search"
max_calls_per_minute: 30
- name: "tickets.create_note"
require_approval: false
denied_tools:
- "contacts.export_all"
- "admin.*"
Pair declarative allow-lists with automated SHA-256 baseline verification in CI — see our runnable script in MCP rug pull attacks and tool pinning defense.
3. Enforce Argument Validation & Step-Up Approvals (MCP02, MCP05, MCP06)
Indirect prompt injection (MCP06) succeeds when an agent reads untrusted text (a support ticket, GitHub issue, or web page) and immediately calls a mutating tool with attacker-chosen arguments. Even a clean MCP server with zero code bugs will happily execute a valid email.send or payments.refund call if the policy layer does not check who is calling, what arguments were supplied, and what happened earlier in the session.
- Split read and write connections: Give read-only agents a connection that exposes only
*.listand*.gettools. - Validate argument schemas strictly: Reject unexpected shell metacharacters, path traversal sequences (
../), and non-allowlisted domains on URL parameters. - Hold irreversible calls for human approval: Require step-up approval before high-value refunds, bulk exports, production deployments, or external messages leave the environment.
- Add sequence rules for MCP10: Detect and block toxic tool combinations inside a sliding window (for example, reading a sensitive table followed by calling an external webhook or email tool).
4. Close the Visibility Gap on Shadow Servers & Forensics (MCP08 & MCP09)
You cannot govern MCP servers you do not know exist. Security teams should combine three discovery inputs:
- Repository discovery: Scan GitHub and GitLab repositories for
mcp.json,.cursor/mcp.json, and MCP client registrations. - Unregistered caller telemetry: Surface new agents and servers hitting your internal gateways or egress proxies so they land in a review inbox.
- Decision-level audit trails: Praesidia records the decisions it makes on MCP tool calls routed through it in an append-only, hash-chained audit trail with offline verification — giving incident responders and auditors concrete proof of which agent invoked which tool, under which policy version, and with what outcome.
Step-by-Step Rollout Plan (First 14 Days)
- Days 1–3 (Inventory & Scan): Run the MCP config security checker across engineering starter configs and score your current program on the OWASP MCP Top 10 checklist.
- Days 4–7 (Observe Mode): Register your top 3 highest-risk MCP servers behind a governed MCP gateway in observe mode to baseline actual tool usage without breaking developer workflows.
- Days 8–10 (Pin & Narrow): Lock each server's approved
tools/listbaseline, remove unused mutating tools (MCP02), and replace static tokens with scoped runtime credentials (MCP01). - Days 11–14 (Enforce & Alert): Switch destructive and external-egress tools to enforce mode with step-up approvals and forward security events to your SIEM via signed webhooks.
How Praesidia Maps to OWASP MCP Top 10
Praesidia acts as an inline control plane across the MCP and model path:
- Discover (
MCP09): Surfaces MCP servers from repository scans, registrations, and unregistered callers into a single inventory. - Govern (
MCP02,MCP03,MCP04): Maintains an approved tool baseline per MCP server, flags schema drift for review, proposes least-privilege permission reductions from unused tools, and exports signed CycloneDX AIBOMs. - Secure (
MCP01,MCP05,MCP06,MCP07,MCP10): Enforces per-connection tool allow-lists, argument and content guardrails, rate limits, human step-up approvals, and sequence rules on calls routed through it. - Prove (
MCP08): Produces signed, hash-chained decision records for governed calls that your team can verify offline.
Start on the free Developer workspace with the MCP server governance guide or follow the MCP server quickstart.
Common questions
What is the difference between the OWASP MCP Top 10 and the OWASP Agentic Top 10?
The OWASP MCP Top 10 (MCP01–MCP10) covers protocol, server, credential, and tool-catalog vulnerabilities specific to the Model Context Protocol (such as tool poisoning, shadow MCP servers, and token mismanagement). The OWASP Agentic Top 10 (ASI01–ASI10) covers broader autonomous agent risks such as goal hijacking, rogue multi-agent delegation, memory poisoning, and cascading failures. Production agent teams need controls for both.
Can system prompts prevent MCP03 tool poisoning or MCP06 indirect prompt injection?
No. System prompts share the same untrusted context channel as tool descriptions and retrieved documents. Stopping MCP03 and MCP06 requires deterministic controls outside the model: cryptographic tool-schema pinning, per-connection tool allow-lists, output guardrails, and human approval gates on high-impact tool calls.
How should teams detect shadow MCP servers (MCP09) without blocking developer productivity?
Combine repository scanning (checking GitHub and GitLab for mcp.json and client manifests) with an internal curated registry behind an MCP gateway. Start in observe mode so developers keep working while security baselines which servers and tools are in use, then tighten policy on servers that touch production or customer data.
Where can I benchmark my MCP servers against MCP01–MCP10 right now?
You can run the free browser-local OWASP MCP Top 10 checklist to score all ten categories and export a Markdown gap report, and paste any mcp.json or tools/list payload into the MCP config security checker without uploading secrets to a remote server.