An MCP identity gateway authorizes an agent's tool call against a known requester and keeps that requester attached as the call moves downstream. Plenty of gateways route traffic and validate a credential. Fewer can say whose authority the call is spending. That gap decides what your audit log can answer six months later, when somebody asks who approved a refund.
The exposure in an agent architecture is rarely the tool call itself. It is the moment nobody can reconstruct whose authority the call spent. An access path that loses provenance at the first hop still works perfectly, right up until an incident review asks a question the logs cannot answer.
What Makes an MCP Gateway Identity-Aware?
Architects reviewing an agent access path usually arrive with one question: what does an MCP gateway actually do in an identity architecture? Treated as plumbing, it is a broker that sits between an agent and the tools it calls, terminating the connection and forwarding the request. Treated as an identity control, it is the last point in the path that can still name a requester before the call becomes somebody else's log entry.
The label predates all of this. Google Cloud's Identity-Aware Proxy has used it for years. It describes a proxy that verifies user identity and evaluates context before granting access to an application.
Apply the same idea to the Model Context Protocol, an open standard for connecting AI applications to external systems, including the tools an agent calls. The mechanics hold while the subject changes, because the caller is now a process acting for someone.
A router moves a call with three inputs: a destination, a transport, and a credential it can validate. An MCP identity gateway adds two more, and both are harder to get.
- A resolvable principal. The gateway can answer which agent is calling, who owns that agent, and which human or upstream system set the work in motion.
- A representation that survives the hop. That answer reaches the next system in a form the next system can verify, rather than dying at the gateway boundary.
Where a broker holds a standing credential to the tools behind it, the second one fails. When the billing tool writes its log entry, it records that credential. The service account appears as the actor, and the engineer who asked for the data appears nowhere.
Confirming Who's Really Behind a Tool Call
Here is a call worth tracing end to end. Dana, a support engineer, asks an internal assistant to pull three months of refund history for a customer account. The assistant opens a connection to the gateway, the gateway routes to a billing MCP server, and that server queries the Stripe API and a Snowflake table.
At the first hop, the assistant presents a bearer token, and the gateway can inspect it. Under RFC 9068, the JSON Web Token profile for OAuth 2.0 access tokens, a conforming token carries iss, exp, aud, sub, client_id, iat, and jti. Two of those claims answer different questions. client_id identifies the OAuth client that requested the token, while sub identifies the principal the token is about.
That distinction is the whole objection to treating authentication as attribution. Validating the token confirms that it is valid for the intended audience. It does not necessarily identify Dana or prove which process is presenting it. If the assistant obtained the token through a client credentials grant, sub and client_id can both identify the same machine principal, leaving Dana's identity out of the record.
The OAuth 2.0 framework can carry user context when the authorization flow includes a resource owner. A client credentials grant usually does not, so an application acting for a person needs another way to preserve who initiated the request.
The Model Context Protocol's authorization specification is precise about one half of the problem and silent on the other. Authorization is optional overall and applies to HTTP-based transports; stdio implementations are told to retrieve credentials from the environment instead. Where authorization is implemented, the requirements are firm. In the current revision, MCP servers must validate that an access token was issued specifically for them as the intended audience. The accompanying security considerations go further: servers must reject tokens that do not name them in the audience claim. That confirms which resource a JSON Web Token was issued for, not who set the request in motion.
Keeping Identity Attached as Requests Move Across Systems
Dana's request still has two boundaries to cross. The gateway calls the billing server, and the billing server calls Stripe. Each hop makes a new authorization decision, and each one can lose what came before it. That makes identity propagation central to an identity-aware MCP gateway: the token that reaches Stripe is rarely the token Dana originally authorized.
The specification's security considerations rule out the easiest shortcut. An MCP server calling an upstream API may act as an OAuth client, but it must not pass through the token it received from the MCP client. The original token stops at the server boundary, so another mechanism has to preserve the requester’s identity or authority.
Distributed tracing preserves correlation, not authority. W3C Trace Context uses traceparent and tracestate headers to connect the hops in one timeline, while advising implementers not to place personally identifiable information in them. A trace ID can show that the calls belong together. It cannot show whose authority they spent.
Decision rule. Propagate the requester’s identity when the downstream system enforces that person’s entitlements. If Snowflake applies row-access policies to Dana, her identity must reach the query. Where a downstream API recognizes only an integration credential, issue a short-lived delegated credential scoped to the specific task and record Dana as the requester.
Both paths support the same architectural move: decide authorization centrally and enforce it at the edge. That is the argument behind centralized, policy-driven authorization for agent traffic.
Protecting Sensitive Data Along the Way
Refund history is not neutral data. Dana's query returns dispute notes, email addresses, and truncated card details, and each hop is another place that payload can be logged, cached, or replayed. The gateway's problem is that it cannot apply Dana's own restrictions to a response when it does not know the response belongs to Dana.
Named obligations attach to specific environments, so treat them that way. For systems in scope for a cardholder data environment, PCI DSS Requirement 10.2.2 addresses what an audit log entry contains. It calls for user identification, type of event, date and time, and a success or failure indication. It also calls for the origination of the event and the identity or name of the affected data, system component, resource, or service.
Nothing in that text mentions gateways or agents. But an entry whose user identification field reads mcp-gateway-prod may record the technical account while still losing the answer an investigator wanted. Sound audit logging at an agent boundary starts with deciding what "user identification" resolves to.
Minimization and attribution pull against each other, and RFC 8693 acknowledges the tension directly. Its privacy considerations direct deployments to determine the minimally necessary amount of data and include only that in issued tokens. In some cases, the RFC notes, that means representing the user anonymously or pseudonymously.
A stable pseudonymous subject identifier is one workable compromise. The tool sees an opaque principal, the identity system resolves it on demand, and no name travels downstream.
What Happens When Agents Act on Behalf of Other Agents
Add one hop and the picture changes shape. Dana's assistant hands the reconciliation work to a second agent that matches payouts against ledger entries. Two agents now sit in the chain with one human behind them, so whose authority is being spent has more than one answer.
RFC 8693, the OAuth 2.0 Token Exchange standard, provides useful language for that distinction:
- Impersonation. One principal acts as another and becomes indistinguishable from that subject within the rights the token grants. Downstream, the token presents Dana as the subject.
- Delegation. The acting principal retains its own identity while exercising rights delegated by the subject. The record can therefore distinguish Dana from the agent acting for her.
A token exchange request carries a subject_token for the party on whose behalf access is requested and may include an actor_token for the party receiving delegated authority. In a JWT, the act claim identifies the current actor. Nested act claims can preserve the earlier actors in a delegation chain, although the RFC directs access-control decisions to consider only the top-level subject and current actor. Earlier actors remain informational history.
The may_act claim can identify a party authorized to become the actor, allowing the authorization server to check that relationship before issuing the requested delegated identity. Scope and limited token lifetime can then restrict where and for how long those delegated rights apply.
The limits matter. RFC 8693 defines token exchange, not agent orchestration. It does not determine how an autonomous agent proves that another agent legitimately delegated a task or how an entire chain should be revoked while work is underway. Those remain open design questions.
The vocabulary is settled even where the agent-specific practice is not. That makes it useful to AI agent authorization and to the emerging model of the synthetic employee.
What Goes Wrong Without Identity Awareness at the Gateway
These failures share a shape. Nothing breaks at the time, and the cost lands later, in a room where somebody is trying to reconstruct what happened.
- The record names the broker. An investigator asks who pulled that customer's refund history on March 4, and the answer comes back as the gateway. The call was authorized, logged, and completely unattributable.
- Token passthrough extends the damage a stolen credential can cause. The MCP authorization specification treats token passthrough and the confused-deputy problem as distinct threats that implementers must avoid. If the same forwarded token is accepted across several services, one act of token theft can open access to all of them.
- Impersonation becomes the default because it is easy. A chain where every agent presents the user's own token looks tidy until one agent does something the user did not ask for. Privilege escalation then reads as ordinary activity, because the record shows the user doing it.
- Revocation has no handle. Cutting off one misbehaving agent means disabling a shared credential. That takes down every other workflow depending on it, so teams hesitate and the window stays open.
Attackers work this seam deliberately. An intruder who lands inside an agent's session inherits whatever the chain projects downstream, and a design that projects the user gives them the user. That is the practical form the identity attack surface takes in an agent architecture. Provenance belongs in the design review, not the incident review.
How NewCore Brings Identity Governance Into the MCP Gateway
Attribution failures announce themselves at exactly one moment: when somebody asks who did this. By then the record either resolves to a principal with an owner, or it resolves to a shared credential and the investigation stalls. Agents earn distinct identities for the same reason employees do, because ownership, policy, and an auditable trail all hang off the identity rather than the credential.
- Agent Guardian runs a governed call in six steps: register, connect, broker, authorize, audit, and cut. Brokering issues a scoped, short-lived token on demand, so the agent does not hold the tool's standing secret.
- Task-Scoped Tokens are issued on demand and bound to a specific agent, connection, scope, and time window. Permissions match the job in front of the agent, not the agent's permanent role.
- Agentic SSO gives an agent governed access to tools through scoped, time-bound credentials tied to a specific agent, owner, policy, and task. That turns a delegated call into a bounded grant rather than a borrowed one.
- Agentic Governance classifies each agent by where its authority comes from. An agent acts through a live human session, holds delegated authority with its own owner and bounded scope, or runs as an autonomous workload under a policy ceiling. The resulting record can surface the delegation chain and accountable human behind each request.
- The audit step records the agent, the accountable human or team, the policy, the tool, and the requested action. That is the record an investigator wanted in the first place.
NewCore works alongside an existing IGA stack rather than displacing it. Existing IGA can remain the system of record for workforce provisioning and periodic reviews, while NewCore adds real-time discovery, cross-system context, and inline enforcement at execution time. On the brokered path, Agent Guardian is the control point that inspects, authorizes, logs, and executes each call with credentials the agent never sees. Access can be cut by session, agent, or human path without disabling an entire account.
An audit trail that names a broker is not accountability. It is bookkeeping.
The agentic era is already in your call path. Make every tool call name a principal you can hold responsible. Request a Demo →
Frequently Asked Questions
Should an AI agent ever reuse a user's own access token?
Not by passing the token presented to an MCP server directly to a downstream system. MCP prohibits token passthrough because each token should be issued for its intended resource. For a short, synchronous action, an agent may act under the user’s delegated authority, but each downstream resource should receive its own audience-bound token while the record preserves both the user and the acting agent. Background work and multi-agent chains require separate, scoped credentials with their own expiry and revocation paths.
How far down a chain should identity propagate?
As far as a system will act on it, and no further. If a downstream service applies row-level or record-level policy keyed to the requester, the identity has to reach it or the policy evaluates against the wrong principal. Past that point, a scoped delegated credential paired with a durable reference to the requester usually gives better containment than pushing the original token deeper.
What should a gateway record so an audit can answer "who did this"?
Record the acting agent, the human or team accountable for it, and the initiating request. Add the policy that allowed the call, the tool and operation invoked, and the outcome. A shared trace identifier helps stitch hops together afterward. Field names matter less than making sure the actor field resolves to something with an owner.
Does the Model Context Protocol define how identity propagates across hops?
Not in the way people often assume. The specification covers authorization between an MCP client and an MCP server, mandates audience validation, and states that a server must not pass through the token it received. It stops there. Carrying an original requester's identity to a third system is left to the deployment, so treat any propagation scheme as your design decision.
Should the gateway or the tool enforce the requester's data restrictions?
Both, at different levels, and neither is enough alone. The tool holds the fine-grained rules and the data, so it is the better enforcement point when it can identify the requester. The gateway can provide a broader view of the identity and delegation chain, making it the better place to block a call that no principal in that chain has authority to make.
Discover every agent acting in your business.
Book a DemoIdentity Security, NewCore
The team behind NewCore's Identity 101 guides, covering agent security, identity security, workforce security, identity governance, and identity discovery. These guides draw on NewCore's own product and security work, translated into practical, vendor-neutral guidance for security and IT teams managing identity across people, software, and AI agents.
View all articlesCite this guide
The NewCore Team. (2026, November 24). MCP identity gateway: knowing who's behind every agent action. NewCore. https://newcore.com/identity-101/mcp-identity-gateway


