Demystifying MCP: Why a Protocol Is Not a System Capability

    This article demystifies the Model Context Protocol (MCP) by separating protocol capability from system capability. It explains why MCP is best understood as a form of control-inverting RPC, where the model rather than deterministic code decides what to call, and examines three production pitfalls: collapsed trust boundaries and the confused deputy problem, prompt injection through tool outputs, and the mismatch between stateless calls and stateful business logic. It then outlines a layered hardening architecture covering access, policy, execution, observability, and governance, and concludes with three practical questions for deciding whether MCP is a reliable piece of the architecture or whether system capabilities must be built first.

    Introduction: A Typical Expectation Mismatch

    Amid the wave of productionizing large language models, the Model Context Protocol (MCP) is going through a very typical technology diffusion cycle. It was originally designed to solve one problem: how models can connect to external tools and data in a standard way. It was quickly elevated to an “architectural silver bullet.” As a result, we see claims like these: use MCP to unify tool invocation across all agents, use MCP to fix context chaos, use MCP to build a general-purpose agent platform.

    These judgments are not entirely wrong, but they carry a dangerous assumption: treating “protocol capability” as “system capability.” A protocol only specifies how messages are expressed; it is not responsible for whether a decision is safe. This article attempts a thorough demystification of MCP along three dimensions—architecture layers, system responsibilities, and engineering implementation—and arrives at a clear conclusion: MCP is a necessary but limited piece of the puzzle, not a complete answer.

    1. Architecture View: MCP Is Essentially an RPC with Inverted Control

    In a classic microservices system, control of the call chain always stays in the hands of deterministic code. Even with complex service orchestration (long-running transaction compensation, workflow engines), the decision logic remains an auditable, replayable, testable code path: given the same input, the output is the same, and failures can be retried.

    After MCP is introduced, the key change in the call chain is not the transport format (forms like JSON-RPC have long been mature), but “who decides what to call”:

    • The initiator of the call is no longer code, but the model;
    • The call condition is not if/else, but probabilistic inference;
    • The call arguments are not the result of structured input validation, but the product of natural language parsing.

    This is a typical inversion of control, but control is not handed to a framework—it is handed to an unpredictable model. Here is an illustrative MCP request:

    1. {"jsonrpc":"2.0","method":"tools/call","params":{
    2. "name":"database_query",
    3. "arguments":{"sql":"DELETE FROM users WHERE id = 'U123'; --"}
    4. },"id":1}

    From a protocol perspective, there is nothing wrong with it: the message is valid, the method name is correct, and the argument structure is clear. From an architecture perspective, however, this is a serious accountability gap. MCP does only one thing—it forwards the intent generated by the model to the backend as-is. It does not, and cannot, perform argument semantic validation, permission checks, or business context consistency verification.

    Once the backend service trusts the forwarding behavior of the MCP Server by default, the system undergoes a dangerous equivalence transformation: you are not “connecting a tool to the model,” you are exposing an internal RPC interface to an uncontrollable decision maker. The correct engineering statement is this: MCP propagates “uncertainty” from the model side to the service side without absorbing it at any layer.

    2. Three Major Pitfalls in Production

    Pitfall 1: Collapsed Trust Boundary—MCP Is a Confused Deputy by Nature

    An MCP Server usually holds real credentials (database accounts, cloud API keys, internal system tokens) and executes requests with high-privilege identity. The model itself holds no permissions, yet it can perform unauthorized actions through the Server’s hands. This is the classic “confused deputy” problem: an authorized party is induced to act on behalf of an unauthorized one.

    The root cause is a mismatch of the permission subject: what the audit log records is the Server’s identity, while the real source of the decision is the model output. The fix is to rebuild the trust boundary:

    • Isolate credentials from the tool process, split them by least privilege, and forbid one high-privilege key from opening every door;
    • Re-authenticate on every call using the “end user identity + tenant context” rather than reusing the Server identity;
    • Force manual confirmation or two-person review for high-risk actions (deletion, transfers, bulk export, permission changes).

    Pitfall 2: Input as Instruction—Prompt Injection Becomes a New Attack Surface

    Tool return values, retrieved web pages, documents, and logs can all carry content like “ignore previous instructions” once they enter the context. In a traditional application, input is data; in an agent system, input is simultaneously program instructions. The boundary between data and instructions is completely broken.

    Viable mitigations include: explicitly labeling external content as untrusted data and fixing that convention in the system prompt; applying structured trimming and length limits to tool output; inserting an independent policy decision step before critical actions (this step consumes only structured signals, not free text); and prohibiting write-type tools in high-risk sessions.

    Pitfall 3: Loss of Control over Context and State—A Stateless Protocol Cannot Support Stateful Business

    MCP calls are stateless fragments, while business often demands strong consistency: check the balance before deducting, validate inventory before placing an order. The intermediate results the model “remembers” across multiple turns are unreliable, leading to parameter drift, duplicate calls, missing calls, and out-of-order execution.

    The engineering solution is to pull state back into deterministic code: use a workflow/orchestration layer to fix the order of critical steps and constrain the model to “filling in blanks” rather than “deciding the flow”; introduce an idempotency key and a deduplication window for each call; and adopt compensating transactions rather than relying on the model’s discipline for scenarios that involve multi-step consistency.

    3. A Practical Hardened Reference Architecture

    A relatively sound layering approach is as follows:

    1. Access layer: unified protocol adaptation and identity pass-through, stripping untrusted content;
    2. Policy layer: a whitelist gateway that exposes only explicitly registered tools and parameter schemas (strict schema validation, enum narrowing, no concatenated statements);
    3. Execution layer: least-privilege credentials, sandboxed execution, idempotency, and rate limiting;
    4. Observability layer: end-to-end tracing (the basis for model decisions, tool input and output, approval records), integrated with logging services and monitoring alerts, with threshold alerts on abnormal call rates and permission-denial rates;
    5. Governance layer: a tool registry plus change review, managing “adding a tool” the way you manage an interface launch.

    Illustrative policy validation code:

    1. def guard(tool, args, ctx):
    2. if tool not in ALLOWED_TOOLS: raise Deny("tool not registered")
    3. validate_schema(tool, args) # structure + type + enum
    4. assert_tenant(ctx.tenant_id, args) # bind tenant and data domain
    5. if tool in HIGH_RISK: return require_approval(ctx, args)
    6. return allow(tool, args, ctx)

    4. Conclusion: Put MCP Back Where It Belongs

    The value of MCP is standardizing “access,” not intelligent “decision making.” It reduces the repeated cost of tool integration and makes the tool ecosystem reusable; but it provides no permission model, no consistency guarantee, and no trusted input. If an enterprise expects the protocol itself to solve governance problems, it will ultimately accumulate risk in production.

    The pragmatic test comes down to three questions: Can this call be replayed if it fails? Can this unauthorized action be intercepted and attributed to a person? Can this multi-step operation recover safely after an interruption? If all three can be answered, MCP is that reliable piece of the puzzle; if any one cannot, build the system capability first, then talk about unifying the protocol. In the cloud, the general-purpose capabilities needed to implement the layering above are usually already available—container platforms to host sandboxed execution, message queues for peak shaving and retries, and logging plus monitoring alerts to support a closed audit loop. The key is to organize them into clear responsibility boundaries, rather than expecting a single protocol to handle everything.