Independent analysis by NHI Mgmt GroupSource article: Credal, “MCP vs API Security” (May 19, 2026)

TL;DR: MCP traffic can look like ordinary API traffic, but Credal’s analysis shows that natural-language payloads, runtime tool choice, and indirect prompt injection evade gateway-era controls and make conventional API security insufficient. Least-privilege scoping only works when call patterns are predictable, and MCP breaks that assumption.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Credal's blog post: MCP looks like API traffic on the wire, but natural-language tool calls, runtime choice, and prompt injection defeat gateway-era assumptions.

Why it matters: IAM and security teams need to govern agent actions, not just endpoints, because MCP makes authorisation, logging, and inspection depend on intent and runtime context.


Context

MCP is a protocol for agent-to-tool interaction, but the governance problem is not the protocol label. The failure begins when teams treat language-model driven calls as if they were conventional application requests and assume existing API controls will see enough to govern them. Agentic AI identity matters here because the consumer is deciding tools at runtime, not following a fixed client script.

The key governance gap is predictability. API programmes are built around stable clients, fixed payload structures, and inspectable contracts, while MCP interactions can change tool choice, sequence, and arguments from one session to the next. Once that happens, control design has to move from endpoint inspection to runtime action governance.


Key questions

Q: How should security teams protect MCP tools from hidden prompt injection?

A: Treat MCP tool metadata as untrusted input. Normalize text, remove invisible or control characters, validate the source of each tool, and restrict the agent to approved functions only. Add logging for tool selection and execution so hidden instructions cannot move unnoticed from description into action.

Q: Why do API gateways miss many MCP attack paths?

A: API gateways usually validate requests at the transport or HTTP layer, while MCP abuse often happens after authentication inside the model runtime, where a tool is selected or a parameter is reshaped. Gaps appear when the gateway cannot see runtime tool selection, delegated context, or chained calls to downstream systems, so controls must also inspect tool invocation policy, scoped tokens, and server-side authorisation.

Q: How does action-level authorisation work for agentic systems?

A: Action-level authorisation checks each discrete agent action against the specific human-approved scope, tool, data set, or transaction before execution. The control typically binds the agent’s runtime decision to a policy decision point, using short-lived credentials, explicit consent, and revocation so the agent cannot exceed the permitted action even after initial login.

Q: What should teams log for MCP incident response?

A: Teams should log the agent identity, the human accountable owner, the tool or MCP server called, the exact action requested, input parameters, data objects touched, policy decision, credential used, and the result. Good incident response also needs correlation IDs, timestamps, context window or prompt excerpts where allowed, and revocation events for tokens or permissions.


Technical breakdown

Why MCP call graphs are not stable like API flows

API security assumes a client with known behaviour, so defenders can model expected calls, payload shapes, and error conditions ahead of time. MCP changes that by letting a language model choose tools at runtime, often based on prompts that include untrusted input. The same tool set can produce very different access patterns, data volumes, and destinations across sessions. That means the security object is no longer just the endpoint or token. It is the sequence of tool use, the arguments passed, and the context that induced the action. Read API Security vs MCP Security.

Practical implication: Model MCP risk around action sequences and context, not just around endpoint inventory and token scope.

How prompt injection becomes a tool-level attack path

Prompt injection works when attacker-controlled text is treated as if it were a legitimate instruction to the model. In MCP, that text can arrive through email, documents, chat, or any other input the agent processes before calling tools. Because the model may combine benign task intent with malicious embedded instructions, the resulting tool chain can look valid from a network perspective while producing exfiltration or misuse. Traditional filters that only inspect transport, headers, or endpoint identity do not see the instruction-level manipulation that changes the action being taken. See the Agentic AI Security Guide.

Practical implication: Inspect and gate the instruction content that drives tool use, not only the traffic that carries it.

Why runtime authorization for agents must be action-specific

Static OAuth-style grants work when a caller is known and the allowed operations are stable. MCP breaks that assumption because the authorised actor is an agent that decides which tools to invoke, in what order, and with which parameters after the initial grant. That creates a mismatch between coarse authorisation and fine-grained runtime behaviour. The result is that a valid login or token can still lead to data exposure if the authorisation layer never evaluates the specific action the agent is about to take. See the Agentic AI Identity Guide.

Practical implication: Move from coarse server access to per-action authorisation controls that evaluate the intended tool use before execution.


NHI Mgmt Group analysis

MCP turns access control into a runtime governance problem: The decisive issue is no longer whether a token is valid, but whether the next tool call should exist at all. Conventional API security assumes the request path is predictable enough to pre-authorise; MCP breaks that premise because the model chooses the action sequence after the grant. The implication is that control design must shift from session-level trust to action-level governance.

Predictable clients are no longer the right assumption for agent identity: Conventional IAM and API policy models were built for deterministic callers, while MCP creates a caller whose behaviour changes with context and prompt content. That is a different identity problem, not a slightly harder API problem. Teams should treat the agent as a runtime actor whose intent must be evaluated repeatedly, not as a static client that can be fully described in advance.

Tool semantics have become part of the attack surface: In API security, contracts are formal and relatively stable, but MCP tool descriptions are readable by the model and can be used to steer behaviour. That makes metadata, not just code, part of the security boundary. Practitioners need to recognise that natural-language tool descriptions create a control plane that can be poisoned, shadowed, or reinterpreted in ways classic gateway controls were never built to detect.

Intent-aware logging is now a governance requirement, not a nice-to-have: Standard logs tell you which endpoint was called, but they do not explain why the agent chose that path or what instruction shaped the call. Without prompt and intent context, post-incident review cannot reconstruct the causal chain. Security teams should treat intent capture as necessary evidence for agent oversight, just as audit trails are necessary for privileged human actions.

From our research library:

What this signals

Governance programmes built around static API trust will keep missing agent-driven exposure paths until they start treating tool choice as an event that must be authorised in the moment. The control plane has to move closer to execution, because runtime context now determines whether a call is benign or harmful.

Runtime tool governance: The security boundary for MCP is the point where prompt, tool, and action meet. Once that boundary is accepted, gateway-only controls become a partial control, not a complete one.

67% of organisations still rely heavily on static credentials despite the risks they pose to agentic AI deployments, according to the 2026 Infrastructure Identity Survey. That pattern makes runtime authorisation weaker, because static trust assumptions survive even when the actor deciding the action is no longer deterministic.


For practitioners

  • Define action-level authorisation for MCP tools Authorise the specific tool action, not just the server or token, so the policy can evaluate arguments, destination, and intended effect before execution.
  • Separate API controls from MCP controls Keep OAuth, TLS, rate limiting, and gateway policies in place, but add MCP-specific inspection for tool semantics, prompt context, and agent-driven call sequences.
  • Capture prompt context in audit logs Record the instruction context that led to each tool call so incident response can reconstruct why the agent acted, not only what endpoint it touched.
  • Treat tool descriptions as security-controlled content Review changes to tool metadata with the same care you apply to code and policy changes, because descriptive text can alter how the model behaves at runtime.

Key takeaways

  • MCP changes the security problem from protecting a predictable request path to governing an unpredictable runtime action path.
  • Gateway-era API controls remain useful, but they do not see prompt context or the tool semantics that determine agent behaviour.
  • Practitioners need action-level authorisation, intent-aware logging, and tighter review of tool metadata to govern MCP safely.

Related NHI Mgmt Group resources: AI Agents vs Agentic AI · Agentic AI Identity Guide · API Security vs MCP Security · Agentic AI Security Guide


Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, OWASP API Security Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseMCP runtime authorisation failures let agents exceed intended privileges through dynamic tool use.
Recommendation — Apply ASI03 to constrain agent tool use by action, context, and privilege boundary.
OWASP API Security Top 10API2 — Broken AuthenticationMCP inherits API auth assumptions but breaks them when tool choice happens after initial grant.
API6 — Unrestricted Access to Sensitive Business FlowsMCP agents can string together valid calls into unsafe business flows the gateway never expected.
Recommendation — Use API2 controls to harden token handling, then add agent-specific authorisation checks for MCP. Map MCP sequences to API6 and block risky multi-step flows before execution completes.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article centres on how MCP requires finer-grained authorisation than static API scopes provide.
Recommendation — Rework PR.AA-05 to evaluate each agent action, not just the initial client grant.
MITRE ATT&CKTA0006;TA0010 — Credential Access; ExfiltrationPrompt injection and agent misuse lead directly to data collection and exfiltration outcomes.
Recommendation — Track MCP misuse to TA0006 and TA0010 to prioritise detection around data access and export paths.

Key terms

  • Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
  • Intent-Aware Logging: Intent-Aware Logging is logging that records what an autonomous system was trying to do, not just that a request occurred. It captures the intended action, selected tool, arguments, policy decision, and the human or service identity behind the decision so investigators can reconstruct agent behaviour and access scope.
  • Prompt Injection (Agentic): An attack on applications built on large language models, where crafted text in a prompt or in content the model reads, such as a document, web page or email, overrides the intended instructions. OWASP lists it as LLM01:2025. It becomes most dangerous when an agent can call tools, because the injected instruction can run actions using the agent's own legitimate credentials.
  • Tool Poisoning: Tool poisoning is an attack in which malicious instructions are hidden inside tool descriptions, examples, or schemas that an AI agent reads when deciding what to do. The danger is not only in the tool's code, but in the metadata that shapes the agent's behaviour and trust decisions.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an identity or security programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org