Securing the Model Context Protocol: A Systematic Analysis of Attack Surfaces and Defense Gaps
Abstract
The emergence of agentic AI has reshaped the trust architecture of modern AI-based applications dramatically by allowing large language models to work with external tools, services, and datasets directly. In this new environment, the Model Context Protocol (MCP) becomes the cornerstone, offering a well-defined structure communication protocol. Within a year after the protocol's public release, the number of public MCP servers exceeded 22,000, and many major platforms, such as Claude Code, and Gemini CLI adopted it as a key integration interface. While this fast adoption reflects the advantages of using MCP, it also demonstrates an inherent contradiction in the basic assumptions behind the creation of the protocol, namely, its lack of security considerations. The initial specification did not include a set of standard security measures that would be needed to mitigate emerging attacks through the use of the protocol itself. As a result, MCP leaves room for numerous new threats based on the mediation of this protocol. As such, securing MCP should go beyond the simple prevention and include advanced threats arising due to security gaps within the protocol itself. In this paper, we present a systematic evaluation of MCP security by synthesizing recent research into a unified taxonomy of six attack families and twenty-three attack vectors. We further review empirical findings on success rates, vulnerability, safety-utility trade-offs, followed by an assessment of the effectiveness of current countermeasures based on a coverage matrix.
Keywords: Model Context Protocol, Agentic AI Security, LLM Vulnerabilities, Supply Chain Security, MCP Attacks