TL;DR: Remote MCP servers commonly force AI agents to store delegated OAuth access tokens in plaintext memory, configuration, or environment variables, creating a replayable credential target even when short TTLs are used, according to Riptides. The security problem is not token format but trust placement: agents should not hold the credential that actually grants access.
Editorial analysis by NHI Mgmt Group, based on content published by Riptides: “Securing Agentic OAuth Flows with Riptides”.
Key questions
Q: What breaks when remote MCP agents store OAuth tokens locally?
A: The security boundary breaks when the agent stores the same bearer token that can be replayed against the MCP server.
Q: Why do coarse OAuth grants and standing integration tokens create so much risk for AI agents?
A: Coarse OAuth grants create risk because they authorize every future call the integration can make, often for an entire API surface.
Q: How should teams reduce token replay risk in MCP servers that rely on OAuth access tokens?
A: Teams should move away from bearer-only assumptions and bind access tokens to proof of possession.
Practitioner guidance
- Map token custody points in every remote MCP integration Identify where agents store delegated OAuth tokens in memory, config, subprocess environments, or files, then classify each location as a replay surface rather than a harmless cache.
- Separate the acting identity from the usable credential Design flows so the agent can complete OAuth without receiving the real access token as a portable secret, and prefer brokered or injected credential handling where possible.
- Bind request-time authorization to workload and user context Require the enforcement layer to verify both the workload identity and the delegated user before replacing any proxy credential with the real one.
Bottom line: Remote MCP OAuth flows can turn delegated access into a replayable credential problem when the agent stores the real token in its own runtime surfaces.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Remote MCP OAuth is an NHI custody problem, not an OAuth formatting problem. The central issue is not whether the flow follows the spec, but whether the agent is ever allowed to hold the credential that grants access. Once a bearer token lives inside the workload, the identity boundary has already shifted into a compromise-ready state. Practitioners should evaluate where custody sits, not just whether authentication is standards-compliant.
A few things that frame the scale:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
- Security researchers tracked consent phishing campaigns affecting 900 tenants and 3,000 user accounts in 2025.
A question worth separating out:
Q: What is the difference between a proxy JWT and a real MCP access token?
A: A proxy JWT is only meaningful inside the local control plane, while a real MCP access token is accepted by the remote resource server. Keeping those two credentials separate lets the system authenticate the workload without letting the agent hold a portable credential that can be replayed elsewhere.
👉 Read our full editorial: Securing remote MCP OAuth flows for AI agent identities