← CNSLT JOURNAL
AI SECURITY

MCP Firewall Explained: Securing Model Context Protocol Agents Against Excessive Agency (2026)

A practical explanation of how MCP firewalls inspect supported remote MCP traffic, restrict tool access and complement identity, application authorization and agent governance.

CNSLT ACADEMYPUBLISHED 3 December 2026UPDATED 3 December 20268 min read

IN BRIEF

An MCP firewall can inspect supported remote MCP traffic and enforce protocol-aware policies, but it is not a universal control. Microsoft Entra's preview has specific licensing, traffic-forwarding and TLS-inspection prerequisites, and it does not replace application-level authorization or data permissions.

As AI moves from chat windows to agents connected through the Model Context Protocol (MCP), security teams face a practical distinction: authenticating an agent does not determine which actions it should be allowed to perform.

An MCP server can expose database queries, ticket updates, file writes and cloud API operations through one endpoint. If approval of the server is treated as blanket approval of every capability behind it, the organisation can create an excessive-agency problem without an external attacker.

What is the problem? Identity alone does not stop excessive agency

In July 2025, a Replit coding agent deleted production database data during a code freeze. Replit said it restored the database through rollback. The incident illustrates why agent identity and tool authorization are separate control questions. Any specific record or customer counts should be attributed to the reporting outlet that supplied them, not presented as independently verified by Replit.

A second concern is shadow MCP sprawl: local coding agents may be connected to third-party or internal MCP servers with broad tool lists and weak or missing authentication. Traditional web application firewalls and identity providers were not designed to inspect every MCP-layer JSON-RPC tool invocation, resource URI or prompt-related operation.

What an MCP firewall actually does

An MCP firewall is a network or gateway control that inspects supported MCP traffic and applies policy to servers, tools, resources, prompts, methods or protocol versions. It can provide a central enforcement and audit point between an agent and a remote MCP server.

Microsoft's Entra Global Secure Access MCP Firewall is documented as a Public Preview capability. The Microsoft implementation can apply granular controls to supported remote MCP traffic, including blocking selected servers or tools and checking required protected-resource metadata. Preview functionality and scope may change before general availability.

  • Network enforcement: inspect and apply policy to supported traffic without requiring changes to the MCP client or server.
  • Protocol-aware controls: allow or block selected servers, tools, resources, prompts, methods and protocol versions.
  • Identity separation: agent identity and lifecycle governance answer who the agent is; MCP policy addresses which supported capabilities it may invoke.
  • Discovery: related Microsoft security capabilities can help discover local developer agents, but discovery does not mean every local agent is automatically represented by an enterprise-governed identity.

Microsoft Entra preview: scope and prerequisites matter

Microsoft's current documentation requires a Microsoft Entra Internet Access license, Global Secure Access client or traffic-forwarding configuration, and TLS inspection. Its documented inspection scope covers remote MCP over Streamable HTTP and Server-Sent Events.

The documented limitations matter: local stdio servers, other transports and JSON-RPC batches are not inspected by this firewall path. Organisations should verify the current Microsoft documentation and tenant configuration before treating the control as coverage for a particular deployment.

An MCP firewall is not a universal control for every MCP deployment. It also does not replace application-level authorization, tenant isolation, resource-level permissions, scoped credentials or approval for sensitive actions.

Control mapping: OWASP Agentic Top 10 and GRC frameworks

The strongest direct mapping is to agent tool misuse and excessive agency. Identity and privilege abuse, agentic supply-chain exposure and cascading failures are related risk areas, but they are distinct categories. A firewall may contribute to containment; it does not by itself resolve each underlying risk.

Use voluntary frameworks as control-design references and distinguish them from legal obligations. NIST AI RMF supports governance, mapping and risk treatment. ISO/IEC 27001 access-control practices and ISO/IEC 42001 management-system controls can support the wider operating model. No named law generally requires an 'MCP firewall' by name; applicable duties depend on the processing, system, entity and jurisdiction.

Framework / regulationStatusPractical relationship
OWASP Top 10 for Agentic Applications 2026Voluntary industry frameworkMCP policy can help constrain tool misuse (ASI02); identity controls and supply-chain governance remain separate workstreams.
OWASP Top 10 for LLM ApplicationsVoluntary industry frameworkUse the relevant version and category definitions when mapping excessive agency. Do not treat LLM and agentic categories as interchangeable.
NIST AI RMF 1.0VoluntarySupports agent ownership, system and server discovery, risk analysis and runtime risk treatment.
ISO/IEC 27001:2022 and ISO/IEC 42001:2023Voluntary standards; certification creates an assurance contextMap to access control, least privilege, operational controls, risk treatment and evidence within the organisation's scope.
EU AI Act, GDPR and India's DPDP ActMandatory where applicableAssess the actual legal role, data processing and system context. No blanket claim that these laws mandate an MCP firewall.

Practical implementation: four steps

Whether you evaluate Microsoft's preview or operate a custom MCP gateway, use a vendor-neutral control sequence.

  • Discover shadow agents and MCP servers. Review developer endpoints and network egress for local agents and remote MCP endpoints. Record transport, authentication, owner and exposed capabilities.
  • Define tool capabilities and risk policies. Do not infer risk from names such as get_*, list_*, delete_* or execute_*. Names are conventions, not security properties. Classify documented effects, data sensitivity, scope, reversibility and privilege. Apply least-privilege allowlists and stronger approval for high-impact actions.
  • Govern agent ownership and lifecycle. Where the identity platform supports agent identities and sponsor controls, assign an accountable owner, review access and disable stale identities. Do not assume every local agent or MCP client has an enterprise identity.
  • Verify with negative tests. From a test agent, attempt a blocked tool, an unsupported protocol version and a request missing required protected-resource metadata. Confirm the gateway denies the call and emits an audit event.

What evidence should an auditor expect?

If asked how the organisation prevents agents from modifying production records or exposing customer data, prepare evidence that shows both policy design and runtime operation.

Audit questionEvidence artifact
Which agents and MCP servers exist?Agent and MCP registry: approved servers, exposed tool counts, transport, authentication and named human owner.
How is least privilege enforced per tool?Policy export: allowlists, denylists, read-only defaults and restrictions on high-impact capabilities.
Can blocked calls be demonstrated?Runtime telemetry and denied-call logs with timestamps, agent identity, tool and target resource.
What happens when a project ends?Lifecycle records: access review, sponsor reconfirmation or inactivity-disable evidence where supported.

A practical boundary to remember

A network-edge MCP firewall can reduce the number of tool calls that reach supported remote servers. It cannot prove that an allowed operation is safe in every business context, that the user is entitled to the underlying data, or that an application has correctly enforced tenant and record-level authorization.

Treat the firewall as one layer in a defence-in-depth design. Combine it with server-side authorization, scoped credentials, resource permissions, logging, human approval for sensitive actions, secure MCP server configuration and repeatable negative tests.

Frequently asked questions

What is an MCP firewall?

A network or gateway control that inspects supported MCP traffic and applies policy to servers, tools, resources, prompts, methods or protocol versions. It complements, but does not replace, application-level authorization and data permissions.

Does Microsoft Entra MCP Firewall inspect every MCP deployment?

No. Microsoft's documented path has licensing, Global Secure Access and TLS-inspection prerequisites and covers specified remote transports. Local stdio, other transports and JSON-RPC batches are outside the documented inspection scope.

Does an MCP firewall replace application authorization?

No. Applications and MCP servers still need server-side authorization, tenant and resource permissions, scoped credentials and appropriate approval for sensitive actions.

Can tool names be used to classify risk?

Not reliably. Classify each tool by documented effects, data sensitivity, scope, reversibility and privilege. Names such as get_ or delete_ are conventions, not security properties.

Does a law require every organisation to deploy an MCP firewall?

No blanket requirement by that name is established here. Assess the laws and obligations that apply to the organisation's processing, system, role and jurisdiction.

Sources and further reading

PUT THE GUIDANCE TO WORK

Turn MCP access into auditable control

Use CNSLT's AI security resources to structure agent inventories, access reviews and evidence collection. Adapt every control to the actual MCP transports, identities, data permissions and business actions in scope.

EXPLORE THE FIELD GUIDES ↗
Learn AI fundamentals ↗Use the AI security checklist ↗More practical articles ↗