Do you know what your AI agents did last night? Our Grok Bot research shows why identity matters

Model Context Protocol Security: A Practical Guide to Governing Non-Human Identities

NewCore logo
Identity Security, NewCore · November 2026

Model Context Protocol security is the practice of controlling what an AI agent can reach through MCP servers and governing the identities and credentials that provide that access.

The Model Context Protocol (MCP) did not invent those credentials. It standardized the route between them, which moved the trust boundary out to wherever an agent can invoke a tool. Most teams can name the agent. Far fewer can name the owner of the database credential sitting three components below it.

What Is Model Context Protocol Security?

Model Context Protocol security covers the controls that decide which tools an agent can call, which credential each call runs under, and who is accountable for that credential. The protocol itself uses JSON-RPC within a host-client-server architecture. The 2026-07-28 specification revision says plainly that "MCP itself cannot enforce these security principles at the protocol level." Implementors are expected to build consent and authorization flows into their applications instead.

The common objection is fair: MCP does not grant an agent access to your data warehouse. A person stood up a server, pointed it at the warehouse, and gave it a credential. The implementation determines what that path can reach.

What changed is the shape of the problem. Before MCP, integrations between models and internal systems were usually bespoke, and their credentials were more likely to be reviewed alongside the integration. MCP replaces that with one interface many agents can speak and any team can implement.

The specification's own design principles push in this direction: "Servers should be extremely easy to build." Ease of building is the point of the protocol and the source of the governance problem. As servers multiply, the credentials and access paths surrounding them can multiply too, whether or not the number of approved projects changes.

That is why the useful question is not whether MCP is secure. It is how many non-human identities an MCP deployment introduced or connected last quarter, and which of them still has an owner.

How MCP Shifts the Identity Trust Boundary

In a conventional integration, the trust boundary sits at the application. A service calls an API with a credential scoped to that service, and the review happens once, at build time. MCP moves the boundary to the moment of the tool call, because the set of tools an agent can reach is discovered at runtime rather than compiled in.

The 2026-07-28 revision sharpens this. Protocol-level sessions and the initialize handshake were removed, and MCP is now stateless: every request carries its own protocol version and capabilities. When authorization is used over HTTP, the specification requires it on every request from client to server. There is no connection-level trust to inherit, which is better security design and more identity surface to govern.

The host is the enforcement point in the architecture. It creates clients, controls connection permissions, handles user authorization decisions, and keeps servers from reading the whole conversation or seeing into each other. That isolation is real, and it is also the limit of what the protocol does for you. Once a server holds a credential to a production system, the host's boundary stops mattering to that system.

Some enterprises put a broker in front of that traffic, which is a deployment decision rather than a protocol one. Keeping an identity attached as one agent hands work to another is a separate problem again. Both sit on top of the same underlying question: which identity is behind this call, and who signed up to own it? That question is what makes agents operating with delegated authority an identity governance problem rather than an application security one.

Model Context Protocol Security Risks and Vulnerabilities

Risks are what can happen. Vulnerabilities are the specific weaknesses that let it happen, and the two get blurred in most coverage of this topic.

The Model Context Protocol security risks that matter to an enterprise land in three outcomes. An agent reaches data nobody approved it for. A credential outlives the project that created it. An action happens that nobody can attribute afterward.

A concrete version: an engineer stands up an MCP server for a prototype and gives it a database credential with read access across every schema. Scoping it properly was never scheduled. Six months later, the prototype is gone, the server is still running, and the credential still works.

Nothing was breached. Nothing was governed either.

The vulnerabilities behind those outcomes appear in the specification's own security guidance.

  1. 1.Token passthrough. A server accepts a token that was not issued to it and forwards it downstream. The guidance forbids this and warns that the downstream resource server's logs "may show requests that appear to come from a different source with a different identity."
  2. 2.Scope inflation. A server exposes every scope in scopes_supported, the client requests all of them, and the resulting token, if stolen, "enables lateral data access, privilege chaining, and difficult revocation."
  3. 3.Local server compromise. The guidance illustrates this with a malicious startup command in a client configuration that exfiltrates an SSH key.

The first two draw on familiar OAuth problems, while the third is a supply-chain and local-execution problem in an MCP setting. Token passthrough can create a confused-deputy problem that predates MCP by decades. Saying so is not a defense of the protocol. It makes the fixes easier to find, because long-lived machine credentials and token theft already have well-understood controls.

The weaknesses more specific to MCP sit in the tool definition itself. A server advertises a tool with a name, description, and input schema, and the model reads all three. Those definitions can carry instructions the reviewer never intended, and they can change after approval. The specification tells clients to treat tool annotations as untrusted unless they come from a trusted server.

Tool lists can change too. Under the current revision, subscribed clients can receive notifications/tools/list_changed through the subscriptions/listen stream. What the security team approved during review is not necessarily what the model sees at 3 a.m.

Core MCP Components and Their Non-Human Identity Dependencies

A non-human identity is an identity used by an application, script, workload, or agent rather than by a person signing in. An MCP deployment can involve several identities and credentials, but not every MCP component is itself an identity. Tools, resources, and prompts inherit authority from the clients, servers, and downstream credentials around them.

ComponentWhat it doesIdentity or access dependencyWhat governing it takes
HostRuns the model, creates clients, holds consent decisionsThe application or workload identity running the host, plus any signed-in userNamed owner, governed application registration, and enforcement of consent policy
ClientConnects the host to an MCP server and attaches capabilities to requestsFor authorized HTTP deployments, an OAuth client registration or Client ID Metadata DocumentOwnership of the client registration, metadata, redirect URIs, and credentials
ServerExposes tools, resources, and prompts and connects to backing systemsThe server's workload identity and the credentials it uses against those systemsNamed owner, scoped permissions, credential lifecycle, and a retirement path
ToolDefines an operation the model can invokeThe caller's authorization plus the permission the server holds for that operationReview of the tool schema, arguments, and effective permissions whenever the toolset changes
ResourceExposes context or data to the user or modelThe caller's authorization and the server's access to the underlying storeData classification and confirmation that exposed data matches approved scope
PromptProvides templated messages and workflowsUsually no identity of its own; it arrives through the server's trust relationshipChange control, because prompt text can influence what the model requests next

Two entries deserve the closest scrutiny. The server's downstream credential is the one that touches production. When it is a shared service account created for a pilot, nothing in MCP automatically retires it when the pilot ends.

The client registration is easier to overlook. The 2026-07-28 revision deprecates Dynamic Client Registration in favor of Client ID Metadata Documents, where a client identifies itself through metadata hosted at an HTTPS URL. Dynamic registration remains available during the transition. Pre-registered or persisted client credentials must be tied to the authorization server that issued them rather than reused across issuers.

The specification also allows tool, resource, and prompt catalogs to vary according to the authorization presented with a request. Two callers reaching the same server may legitimately see different catalogs. An inventory built from one unauthenticated probe may therefore be incomplete while still looking complete.

Model Context Protocol Authentication and Authorization Security

Authentication and authorization get used interchangeably, but they answer different questions. Authentication establishes which client or principal is calling. Authorization decides what that caller may do once identified.

For AI agents, there is a gap between the two. Authenticating an MCP client does not automatically identify the agent behind it. Several agents can use the same client or credential, leaving the protocol with a valid caller and the enterprise without useful attribution.

Start with what the specification says. Authorization is optional for MCP implementations. HTTP-based implementations should follow the authorization specification. Implementations using the stdio transport should not use that flow and instead retrieve credentials from their environment.

That is the governance fault line. A locally launched server reading an API key from an environment variable sits outside MCP's OAuth model, but it does not sit outside risk.

Where authorization is implemented, the MCP server acts as an OAuth 2.1 resource server and the client acts as an OAuth client. Servers must implement RFC 9728, OAuth 2.0 Protected Resource Metadata, allowing clients to discover which authorization server protects them.

Clients must also implement RFC 8707, Resource Indicators for OAuth 2.0. The client names the MCP server for which it is requesting access, and the server validates that the arriving token was issued for it. Authorization-server metadata is discovered through RFC 8414 or OpenID Connect Discovery 1.0.

Two labels are worth keeping straight. OAuth is an authorization framework. OIDC adds an identity layer. MCP uses OIDC Discovery here to find authorization metadata, not as a login system for agents.

OAuth 2.1 remains an IETF working-group draft rather than a published RFC. MCP builds on that work while adding its own requirements. Teams should implement against the MCP revision they support, not assume the surrounding authorization model has stopped moving.

Decision rule: use Streamable HTTP with the authorization flow when an MCP server reaches systems or data you would protect in an access review. Use stdio only where the server's reach is understood and controlled. Put credentials read from the environment under secrets management, because local does not mean governed.

The stable Enterprise-Managed Authorization extension brings the enterprise identity provider and its policies into the authorization path. The question stops being which JSON Web Token claims exist and becomes the one that matters: who granted this agent access, and under what authority?

Governing the Non-Human Identity Lifecycle Across MCP

An identity needs four things regardless of what kind of identity it is: an owner, a scope, a lifecycle, and observation. MCP components receive them inconsistently, if at all. Agents deserve distinct identities for the same reason employees do: shared credentials destroy attribution the moment something goes wrong.

  1. 1.Creation and ownership. The moment a server is registered is the cheapest time to attach an owner. Name the person or team responsible for what the server can reach. Assigning ownership later means reconstructing it from commit history and expired Slack threads.
  2. 2.Scope. The specification's guidance on scope minimization offers a usable pattern. Start with a minimal scope set covering low-risk read and discovery operations. Elevate incrementally through targeted WWW-Authenticate challenges when a privileged operation is first attempted. The failure mode it names is scope inflation blindness, where over-broad requests become normal because nobody measures them.
  3. 3.Rotation. Tie credential lifetime and rotation to the risk of the system behind it, the applicable control framework, and what the technology can support. Where a component can obtain short-lived credentials on demand, replace the standing credential instead of repeatedly rotating it. A rotated secret is still a secret between rotations.
  4. 4.Observation and retirement. Watch for the signals that an identity may have outlived its purpose: an owner leaving, a project closing, or a token going unused.

Retirement is the step that gets skipped. Nothing in the protocol notices that a server has been idle for four months, and nothing automatically revokes its credential. The trigger has to come from the identity side: an owner who left, a project that closed, or a token that has not been exchanged since spring. Treat those as candidates for revocation rather than proof, because a seasonal workload can look abandoned from the outside.

Decision rule: lifecycle does not end at rotation. If nothing can identify when an MCP component has outlived its owner, project, or purpose, its credentials can remain valid indefinitely.

Continuously Monitoring Non-Human Identity Behavior

Lifecycle governance tells you what should exist. Monitoring tells you what is actually happening, and for MCP the useful signals are about identity behavior rather than throughput. An agent making ten thousand calls is not suspicious. An agent making its first call against a scope it has not touched before is.

Four signals carry most of the value, and all four are available from the flows described above:

  • Scope elevation events. The security guidance advises servers to log elevation events, recording the scope requested and the subset granted, with correlation IDs. A component whose granted scope set only ever grows is drifting away from what was approved.
  • Audience rejections. A single 401 on an invalid token may be noise. A pattern of tokens arriving at a server that were issued for a different resource suggests credential reuse where it does not belong.
  • Tool list changes. Servers emit notifications/tools/list_changed to clients that have opened a subscriptions/listen stream with toolsListChanged: true, and list results carry ttlMs and cacheScope cache hints. A tool catalog that changes between a review and an incident is the difference between what was approved and what ran, but only if a client subscribed to hear about it.
  • Call patterns per component. Time of day, target system, and argument shape, held per component identity rather than per agent, since one agent may sit above a dozen servers.

Turning those into detections needs two things the protocol does not supply. The first is audit logging that records the component identity, not just the tool name and the timestamp. The second is a baseline, which means anomaly detection that knows what this component normally does.

Neither requires a new category of security. Both depend on the same thing upstream: every event must resolve to an identity with an accountable owner. That mapping is what MCP deployments tend to lack.

How NewCore Secures MCP Through Non-Human Identity Governance

The monitoring problem above has an identity problem underneath it. A log line that says execute_sql was called by a server called analytics-mcp is not accountability; it is a string. Accountability starts when that string resolves to a registered component, a scoped credential, and a human or team who answers for it.

MCP makes components trivially easy to create and attaches ownership to none of them. Servers can be stood up faster than review cycles run.

NewCore approaches this as an identity governance problem across an environment that already spans humans, service accounts, workloads, and now MCP components:

  • Agent Guardian brings agents, humans, applications, and MCP servers into one governed registry. From there, Agent Guardian brokers each call by issuing a scoped credential, authorizing the operation, recording the decision, and cutting access when the policy changes. Once registered, the server and the calls crossing it become governable.
  • Task-Scoped Tokens bind a component's credential to the job in front of it, issued on demand against a specific agent, connection, scope, and time window. A prototype's convenience scope stops outliving the prototype.
  • Agentic SSO gives an agent governed access to tools through scoped, time-bound credentials tied to a specific agent, owner, policy, and task. That is the alternative to a shared service account created for a pilot.
  • Ask NewCore answers the attribution question in plain language against the identity graph. Teams can ask which agentic identities lack a verified owner and investigate their environment, permissions, and data reach without reconstructing the answer across multiple consoles.
  • Agentic Governance classifies each agent by where its authority comes from, whether it is acting on behalf of a person, operating under delegated authority, or running as an autonomous workload. It then applies the ownership model, policy boundary, and audit trail that authority requires.

NewCore is not a replacement for the Model Context Protocol. Controlled agent execution governs agent traffic on the path to MCP servers, brokered tool calls through an MCP gateway path, and compatible enterprise-managed authorization flows, while NHI and agentic governance works alongside an existing IGA stack. Existing IGA can remain the system of record for workforce provisioning and periodic compliance reviews, while NewCore adds cross-system context and inline policy enforcement at execution time. Complement, not replacement.

The protocol standardized how agents reach your systems. It left the question of who owns the credentials to you.

Give every component an owner before the pilot becomes production.

Frequently Asked Questions

Is MCP safe enough to use for internal tools?

Usually, with conditions. Keeping the server internal reduces exposure to untrusted third-party servers, but it does not eliminate software supply-chain risk. Credential scope, ownership, and the tools exposed still determine the blast radius if the host or server is compromised.

Can our existing identity provider issue credentials for MCP components?

Often, though it depends on the IdP and the MCP authorization flow. Verify support for RFC 9728 discovery, RFC 8707 resource indicators, and PKCE with S256. Also confirm how the provider registers MCP clients and binds tokens to the intended server before assuming a clean fit.

What should we do about MCP servers already running that nobody reviewed?

Find them, then attribute them before changing anything. Enumerate what exists, identify the credential each server holds and what that credential can reach, and assign an owner. Revoking first tends to break something a team depends on and buys you an outage instead of a fix. Scope reduction and retirement work better once ownership tells you who to talk to.

How is MCP security different from API security?

Less than the coverage suggests, and the overlap is useful. Audience validation, scope minimization, and token handling are ordinary API concerns. What differs is that the caller is a model choosing tools at runtime from a catalog that can change. The review point moves from integration design to continuous observation of that catalog.

Does an MCP server running over stdio need OAuth?

No, and the specification says so directly: stdio implementations should not follow the authorization specification and should retrieve credentials from the environment instead. That does not make the credential ungoverned. It moves it into secrets management and local machine security, which are different controls with different owners than an OAuth deployment would involve.

Discover every agent acting in your business.

Book a Demo

About the Author

NewCore logo
The NewCore Team

Identity 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 articles

Cite this guide

The NewCore Team. (2026, November 24). Model context protocol security: a practical guide to governing non-human identities. NewCore. https://newcore.com/identity-101/model-context-protocol-security

See Every Identity in Your Environment

NewCore discovers the human & non-human identities across your stack and shows you which access to fix first.