Join our Newsletter — 33% off our NHI Course

Are PKCE and JWT enough to keep MCP auth auditable?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20230
Topic starter  

TL;DR: MCP auth depends on runtime enforcement, with WorkOS noting that AI clients can act on delegated access during the same session in which the token is issued. These controls have to line up on every call, or delegated access becomes broader and longer-lived than intended.

Editorial analysis by NHI Mgmt Group, based on content published by WorkOS: “The developer’s guide to MCP auth”.

Key questions

Q: Why does MCP turn least privilege into a runtime problem?

A: Because the AI client can request, receive, and use access during the same task, so the meaningful security decision happens when the request is made, not when the integration is set up.

Q: What are the signs that an MCP authorization model is too loose?

A: Warning signs include token passthrough between components, broad token scopes, shared sessions for workloads, and redirect URI patterns that accept wildcards or partial matches.

Q: How should security teams handle secrets when connecting LLM clients to MCP servers?

A: Security teams should treat MCP credentials like any other privileged secret and keep them out of untrusted forms, shared dashboards, and long-lived server storage.

Practitioner guidance

  • Implement PKCE for all public MCP clients Treat every browser-mediated or distributed client as unable to safely store a secret.
  • Publish protected resource metadata Serve a well-known discovery document so clients can learn trusted authorization servers, supported bearer methods, and key locations before any tool call is attempted.
  • Validate JWTs at the server boundary Check issuer, audience, expiry, signing keys, and required scopes before executing an MCP tool action.

Bottom line: MCP auth depends on runtime enforcement, because AI clients can act on delegated access during the same session in which the token is issued.

Glossary terms: Protected Resource Metadata, Dynamic Client Registration, Public Client, JWT Validation

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 week ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20712
 

Least privilege in MCP is a runtime control, not a provisioning event. The article correctly shows that AI clients can move from authenticated access to real-world action inside the same execution path, which collapses the old assumption that access can be safely defined once and reviewed later. OAuth 2.1, PKCE, metadata discovery, and JWT validation only work as a control system when they are enforced at the moment of use. The practitioner takeaway is that MCP governance must be designed around request-time decisions, not onboarding checklists.

A few things that frame the scale:

  • 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey.
  • Systems with least-privileged AI access had a 17% incident rate vs 76% for over-privileged systems. Organisations failing to scope AI access properly are 4.5x more likely to experience a security incident, according to the 2026 Infrastructure Identity Survey.

A question worth separating out:

Q: What should IAM teams review before allowing MCP in production?

A: IAM teams should review how the protocol establishes identity, how tool permissions are assigned, and whether the same policy is enforced consistently across clients. If the answer differs by implementation, the organisation has a governance gap that can produce uneven access and weak audit trails.

👉 Read our full editorial: MCP auth turns least privilege into a runtime design problem



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.