Seedlabs
Source research

MCPXkit: The Unified Toolkit for Analyzing Model Context Protocol Security

Yongjian Guo, Puzhuo Liu, Wanlun Ma, Zehang Deng, Xiaogang Zhu, Peng Di et al. · 2026 · 11 citationsRead the paper

All 8 authors

Xi Xiao, Sheng Wen

The Model Context Protocol (MCP) has emerged as a universal standard that enables AI agents to seamlessly connect with external tools, significantly enhancing their functionality. However, while MCP brings notable benefits, it also introduces significant vulnerabilities, such as Tool Poisoning Attacks (TPA), where hidden malicious instructions exploit the sycophancy of LLMs to manipulate agent behavior. Despite these risks, current academic research on MCP se curity remains limited, with most studies focusing on narrow or qualitative analyses that fail to capture the diversity of real-world threats. To address this gap, we present the MCP eXploit Toolkit (MCPXKIT), which categorizes and implements 28 distinct attack methods under four key classifications: direct tool injection, indirect tool injection, malicious user attacks, and LLM inherent attack. We further evaluated these attacks across three MCP client environments and seven models to quantify their attack success rates. Our experiments reveal key insights into MCP vulnerabilities, including agents' blind reliance on tool descriptions, sensitivity to file-based attacks, chain attacks exploiting shared context, and difficulty distinguishing external data from executable commands, and this situation is even worse in some reasoning models. These insights, validated through attack experiments, underscore the urgency for robust defense strategies and informed MCP design. Our contributions include 1) constructing a comprehensive MCP attack taxonomy, 2) introducing a unified attack framework MCPXKIT, and 3) con ducting empirical vulnerability analysis to enhance MCP security mechanisms. This work provides a foundational framework, supporting the secure evolution of MCP ecosystems.

What the full text shows

Working prototype
  • MCP agents exhibit blind reliance on tool descriptions, prioritizing textual descriptions over actual functionality due to LLM sycophancy. (Across 3 MCP client environments and 7 models)
  • File-based attacks have a higher success rate than malicious code execution because file operations often do not require user confirmation. (MCP client environments)
  • Lack of isolation in shared context allows for 'infection attacks' where agents replicate vulnerabilities from one tool into newly generated tools. (MCP shared context)
  • MCP agents struggle to differentiate between external data and executable instructions, leading to the execution of illogical data as commands. (MCP systems using third-party tools or outputs)
Setup
3 MCP client environments, 7 LLMs, and a taxonomy of 31 attack types.
How
The authors developed MCPXKIT, a plugin-based attack simulation framework that implements 31 distinct attack methods across four categories (direct injection, indirect injection, malicious user, and LLM inherent). They conducted quantitative efficacy analysis and root cause analysis across multiple models and clients.
Limitations
Some attacks are not yet implemented due to requirements for MCP Server Market additions or internal MCP Installer code modifications.

Summarized by Gemma 4 from the open-access full text · 4 Nov 2026. Read it