MCPSecBench: A Systematic Security Benchmark and Playground for Testing Model Context Protocols
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Large Language Models (LLMs) are increasingly integrated into real-world applications via the Model Context Protocol (MCP), a universal open standard for connecting AI agents with data sources and external tools. While MCP enhances the capabilities of LLM-based agents, it also introduces new security risks and significantly expands their attack surface. In this paper, we present the first formalization of a secure MCP and its required specifications. Based on this foundation, we establish a comprehensive MCP security taxonomy that extends existing models by incorporating protocol-level and host-side threats, identifying 17 distinct attack types across four primary attack surfaces. Building on these specifications, we introduce MCPSecBench, a systematic security benchmark and playground that integrates prompt datasets, MCP servers, MCP clients, attack scripts, a GUI test harness, and protection mechanisms to evaluate these threats across three major MCP platforms. MCPSecBench is designed to be modular and extensible, allowing researchers to incorporate custom implementations of clients, servers, and transport protocols for rigorous assessment. Our evaluation across three major MCP platforms reveals that all attack surfaces yield successful compromises. Core vulnerabilities universally affect Claude, OpenAI, and Cursor, while server-side and specific client-side attacks exhibit considerable variability across different hosts and models. Furthermore, current protection mechanisms proved largely ineffective, achieving an average success rate of less than 30%. Overall, MCPSecBench standardizes the evaluation of MCP security and enables rigorous testing across all protocol layers.
Key facts. Cited by 51 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 15 of its 39 references that are in the map. First posted on arXiv 17 Aug 2025.
Builds on
15 of 39 references.
Closest ancestors · 6
Same direction, newest first
- 2025MCP-Guard: A Multi-Stage Defense-in-Depth Framework for Securing Model Context Protocol in Agentic AI14 Aug
- 2025A Large-Scale Evolvable Dataset for Model Context Protocol Ecosystem and Security Analysis30 Jun
- 2025We Should Identify and Mitigate Third-Party Safety Risks in MCP-Powered Agent Systems16 Jun
- 2025MCP Guardian: A Security-First Layer for Safeguarding MCP-Based AI System17 Apr
- 2025MCP Safety Audit: LLMs with the Model Context Protocol Allow Major Security Exploits2 Apr
- 2025Firewalls to Secure Dynamic LLM Agentic Networks3 Feb
Other references · 9
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2025Model Context Protocol (MCP) at First Glance: Studying the Security and Maintainability of MCP Serverscited by 65
- 2024Large Language Model Safety: A Holistic Surveycited by 59
- 2025Enterprise-Grade Security for the Model Context Protocol (MCP): Frameworks and Mitigation Strategiescited by 42
- 2025MCPWorld: A Unified Benchmarking Testbed for API, GUI, and Hybrid Computer Use Agentscited by 38
- 2025MCIP: Protecting MCP Safety via Model Contextual Integrity Protocolcited by 34
- 2025ETDI: Mitigating Tool Squatting and Rug Pull Attacks in Model Context Protocol (MCP) by using OAuth-Enhanced Tool Definitions and Policy-Based Access Controlcited by 20
- 2025We Urgently Need Privilege Management in MCP: A Measurement of API Usage in MCP Ecosystemscited by 15
- 2025A Survey on Agent Workflow -- Status and Futurecited by 14
Built on by
Citing papers per year: 2025: 8; 2026: 43.
51 papers.
Sort:
By area:
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocationscited by 38
- 2025MCP-SafetyBench: A Benchmark for Safety Evaluation of Large Language Models with Real-World MCP Serverscited by 34
- 2026Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystemscited by 31
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2026Breaking the Protocol: Security Analysis of the Model Context Protocol Specification and Prompt Injection Vulnerabilities in Tool-Integrated LLM Agentscited by 19
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commitcited by 17
- 2025Are Your Agents Upward Deceivers?cited by 16
- 2026TraceSafe: A Systematic Assessment of LLM Guardrails on Multi-Step Tool-Calling Trajectoriescited by 16
- 2026AIRGuard: Guarding Agent Actions with Runtime Authority Controlcited by 13
- 2026Model Context Protocol Threat Modeling and Analyzing Vulnerabilities to Prompt Injection with Tool Poisoningcited by 10
- 2026AgentAtlas: Beyond Outcome Leaderboards for LLM Agentscited by 10
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
38 more
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2025Agentic Services Computingcited by 6
- 2025Trusted AI Agents in the Cloudcited by 6
- 2026SkillHarm: Lifecycle-Aware Skill-Based Attacks via Automated Constructioncited by 6
- 2025Formalizing the Safety, Security, and Functional Properties of Agentic AI Systemscited by 5
- 2026SMCP: Secure Model Context Protocolcited by 5
- 2026Don't believe everything you read: Understanding and Measuring MCP Behavior under Misleading Tool Descriptionscited by 5
- 2026AgentCheck: A Reproduce-Intervene-Mitigate Workbench for LLM Agents over MCPcited by 5
- 2025MCPZoo: A Large-Scale Dataset of Runnable Model Context Protocol Servers for AI Agentcited by 4
- 2026MCPShield: A Security Cognition Layer for Adaptive Trust Calibration in Model Context Protocol Agentscited by 3
- 2026A Formal Security Framework for MCP-Based AI Agents: Threat Taxonomy, Verification Models, and Defense Mechanismscited by 3
- 2026HarnessSafe: Evaluating Safety Across Persistent Carriers in Agent Harnessescited by 3
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Securitycited by 2
- 2026Description-Code Inconsistency in Real-world MCP Servers: Measurement, Detection, and Security Implicationscited by 2
- 2025Can LLM Infer Risk Information From MCP Server System Logs?cited by 1
- 2026Give Them an Inch and They Will Take a Mile:Understanding and Measuring Caller Identity Confusion in MCP-Based AI Systemscited by 1
- 2026ShieldNet: Network-Level Guardrails against Emerging Supply-Chain Injections in Agentic Systemscited by 1
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agentscited by 1
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactionscited by 1
- 2026From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementationcited by 1
- 2026MCPThreatHive: Automated Threat Intelligence for Model Context Protocol Ecosystemscited by 0
- 2026Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolutioncited by 0
- 2026Same Payload, Different Channel: Measuring Trust Asymmetry in Tool-Using Language Modelscited by 0
- 2026Understanding How Enterprises Adopt the Model Context Protocol for LLM-Driven Software Engineeringcited by 0
- 2026Hardware Keystores for AI Agent Signing Workflows: A Zero-Trust MCP Enforcement Architecturecited by 0
- 2026When Agents Act on Web3: An Attack-Surface Survey of MCP, Skills, and Tool Callingcited by 0
- 2026AEGIS: Preventing Cross-Domain Resource Abuse in MCPcited by 0
- 2026TrustShiftProbe: Characterizing, Benchmarking, and Defending Staged Trust Attacks on MCP Serverscited by 0
- 2026Public-Sharing Labels and Verbatim Field Egress in an MCP-to-A2A Agent Configuration: A Controlled Multi-Model Studycited by 0
- 2026A Large-Scale Empirical Study of Quality Assurance Practices and Gaps in AI Agentscited by 0
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMscited by 0
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelinescited by 0
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluationcited by 0
- 2026When Valid Tool Calls Change Meaning: Formation-Consistent Dispatch for LLM Agentscited by 0
- 2026Deny Without Disabling: Authorization-Paired Evaluation and Control for Multi-Agent Systemscited by 0
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agentscited by 0
- 2026Securing Computer-Use Agents Against Branch Steering Attackscited by 0
- 2026COPEX: Benchmarking LLM Robustness to Adversarial Context Across Model Context Protocol Layerscited by 0
50 most cited of 51 All 51 (JSON)
- 2026Agent-Canary-Mas: End-to-End Evaluation of Protocol Risk in Long-Horizon Multi-Agent Systems11 Oct 2026
- 2026COPEX: Benchmarking LLM Robustness to Adversarial Context Across Model Context Protocol Layers3 Oct 2026
- 2026Securing Computer-Use Agents Against Branch Steering Attacks2 Oct 2026
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents1 Oct 2026
- 2026Deny Without Disabling: Authorization-Paired Evaluation and Control for Multi-Agent Systems30 Sep 2026
- 2026When Valid Tool Calls Change Meaning: Formation-Consistent Dispatch for LLM Agents28 Sep 2026
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluation21 Sep 2026
- 2026From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementation19 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs16 Sep 2026
- 2026A Large-Scale Empirical Study of Quality Assurance Practices and Gaps in AI Agents15 Sep 2026
- 2026Public-Sharing Labels and Verbatim Field Egress in an MCP-to-A2A Agent Configuration: A Controlled Multi-Model Study1 Sep 2026
38 more
- 2026TrustShiftProbe: Characterizing, Benchmarking, and Defending Staged Trust Attacks on MCP Servers24 Aug 2026
- 2026AEGIS: Preventing Cross-Domain Resource Abuse in MCP20 Aug 2026
- 2026When Agents Act on Web3: An Attack-Surface Survey of MCP, Skills, and Tool Calling18 Aug 2026
- 2026HarnessSafe: Evaluating Safety Across Persistent Carriers in Agent Harnesses7 Aug 2026
- 2026Hardware Keystores for AI Agent Signing Workflows: A Zero-Trust MCP Enforcement Architecture6 Aug 2026
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactions23 Jul 2026
- 2026AgentCheck: A Reproduce-Intervene-Mitigate Workbench for LLM Agents over MCP13 Jul 2026
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agents21 Jun 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
- 2026Understanding How Enterprises Adopt the Model Context Protocol for LLM-Driven Software Engineering8 Jun 2026
- 2026Description-Code Inconsistency in Real-world MCP Servers: Measurement, Detection, and Security Implications3 Jun 2026
- 2026SkillHarm: Lifecycle-Aware Skill-Based Attacks via Automated Construction1 Jun 2026
- 2026Same Payload, Different Channel: Measuring Trust Asymmetry in Tool-Using Language Models30 May 2026
- 2026AIRGuard: Guarding Agent Actions with Runtime Authority Control27 May 2026
- 2026AgentAtlas: Beyond Outcome Leaderboards for LLM Agents19 May 2026
- 2026Comment and Control: Hijacking Agentic Workflows via Context-Grounded Evolution11 May 2026
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agents30 Apr 2026
- 2026MCPThreatHive: Automated Threat Intelligence for Model Context Protocol Ecosystems15 Apr 2026
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Security8 Apr 2026
- 2026TraceSafe: A Systematic Assessment of LLM Guardrails on Multi-Step Tool-Calling Trajectories8 Apr 2026
- 2026A Formal Security Framework for MCP-Based AI Agents: Threat Taxonomy, Verification Models, and Defense Mechanisms7 Apr 2026
- 2026ShieldNet: Network-Level Guardrails against Emerging Supply-Chain Injections in Agentic Systems6 Apr 2026
- 2026Model Context Protocol Threat Modeling and Analyzing Vulnerabilities to Prompt Injection with Tool Poisoning23 Mar 2026
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations11 Mar 2026
- 2026Give Them an Inch and They Will Take a Mile:Understanding and Measuring Caller Identity Confusion in MCP-Based AI Systems8 Mar 2026
- 2026MCPShield: A Security Cognition Layer for Adaptive Trust Calibration in Model Context Protocol Agents15 Feb 2026
- 2026Don't believe everything you read: Understanding and Measuring MCP Behavior under Misleading Tool Descriptions3 Feb 2026
- 2026SMCP: Secure Model Context Protocol1 Feb 2026
- 2026Breaking the Protocol: Security Analysis of the Model Context Protocol Specification and Prompt Injection Vulnerabilities in Tool-Integrated LLM Agents24 Jan 2026
- 2026Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystems24 Jan 2026
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commit9 Jan 2026
- 2025MCP-SafetyBench: A Benchmark for Safety Evaluation of Large Language Models with Real-World MCP Servers17 Dec 2025
- 2025MCPZoo: A Large-Scale Dataset of Runnable Model Context Protocol Servers for AI Agent17 Dec 2025
- 2025Trusted AI Agents in the Cloud5 Dec 2025
- 2025Are Your Agents Upward Deceivers?4 Dec 2025
- 2025Can LLM Infer Risk Information From MCP Server System Logs?8 Nov 2025
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025Formalizing the Safety, Security, and Functional Properties of Agentic AI Systems15 Oct 2025
50 newest of 51 All 51 (JSON)
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocationscited by 38
- 2025MCP-SafetyBench: A Benchmark for Safety Evaluation of Large Language Models with Real-World MCP Serverscited by 34
- 2026Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystemscited by 31
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2026Breaking the Protocol: Security Analysis of the Model Context Protocol Specification and Prompt Injection Vulnerabilities in Tool-Integrated LLM Agentscited by 19
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commitcited by 17
- 2025Are Your Agents Upward Deceivers?cited by 16
- 2026TraceSafe: A Systematic Assessment of LLM Guardrails on Multi-Step Tool-Calling Trajectoriescited by 16
- 2026AIRGuard: Guarding Agent Actions with Runtime Authority Controlcited by 13
- 2026AgentAtlas: Beyond Outcome Leaderboards for LLM Agentscited by 10
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
12 most cited of 45 All 45 (JSON)
- 2026Agent-Canary-Mas: End-to-End Evaluation of Protocol Risk in Long-Horizon Multi-Agent Systems11 Oct 2026
- 2026COPEX: Benchmarking LLM Robustness to Adversarial Context Across Model Context Protocol Layers3 Oct 2026
- 2026Securing Computer-Use Agents Against Branch Steering Attacks2 Oct 2026
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents1 Oct 2026
- 2026When Valid Tool Calls Change Meaning: Formation-Consistent Dispatch for LLM Agents28 Sep 2026
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluation21 Sep 2026
- 2026From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementation19 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026A Large-Scale Empirical Study of Quality Assurance Practices and Gaps in AI Agents15 Sep 2026
- 2026Public-Sharing Labels and Verbatim Field Egress in an MCP-to-A2A Agent Configuration: A Controlled Multi-Model Study1 Sep 2026
- 2026TrustShiftProbe: Characterizing, Benchmarking, and Defending Staged Trust Attacks on MCP Servers24 Aug 2026
- 2026AEGIS: Preventing Cross-Domain Resource Abuse in MCP20 Aug 2026
12 newest of 45 All 45 (JSON)
- 2026HarnessSafe: Evaluating Safety Across Persistent Carriers in Agent Harnessescited by 3
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agentscited by 1
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMscited by 0
- 2026Deny Without Disabling: Authorization-Paired Evaluation and Control for Multi-Agent Systemscited by 0
- 2026Deny Without Disabling: Authorization-Paired Evaluation and Control for Multi-Agent Systems30 Sep 2026
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs16 Sep 2026
- 2026HarnessSafe: Evaluating Safety Across Persistent Carriers in Agent Harnesses7 Aug 2026
- 2026MCPHunt: An Evaluation Framework for Cross-Boundary Data Propagation in Multi-Server MCP Agents30 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2025MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents
- 2025MCPXKIT: The Unified Toolkit for Analyzing Model Context Protocol Security
- 2026Compatibility at a Cost: Systematic Discovery and Exploitation of MCP Clause-Compliance Vulnerabilities
- 2025Beyond the Protocol: Unveiling Attack Vectors in the Model Context Protocol (MCP) Ecosystem
- 2025Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions
- 2025AgentBound: Securing Execution Boundaries of AI Agents
- 2025A First Look at the Security Issues in the Model Context Protocol Ecosystem
- 2025MCPGuard : Automatically Detecting Vulnerabilities in MCP Servers