MCP Authorization Conformance
Why this page exists. MCP makes tool connection easy. Enterprises need the missing authorization proof: which agent was delegated, which resource the token was minted for, which scopes were granted, and whether the tool call stayed inside the workflow.
Rechecked source anchors against the public MCP specification 2026-07-28, the current security best practices, and NIST’s August 27, 2026 agent identity guidance on September 28, 2026. MCP latest still redirects to 2026-07-28. This pass records the 2026-07-28 SSRF rule for OAuth metadata and Client ID Metadata Document fetches: server-side clients MUST treat those URLs as SSRF-capable, SHOULD require HTTPS, and SHOULD block private, loopback, and link-local destinations as recommended by RFC 9728 Section 7.7. Rechecked October 1, 2026: the same security-best-practices revision requires OAuth Authorization URL Validation. Clients MUST only allow http:// and https://, MUST reject javascript:, data:, file:, vbscript:, and other dangerous schemes, and may use http:// only for loopback addresses during local development. Unspecified authorization endpoints stay on the prior allow path.
The product bet
SecurityRecipes is positioned as the secure context layer for agentic AI. Context trust, egress controls, and run receipts are not enough if MCP authorization is loose. A production reviewer will ask:
- Is the token bound to the MCP resource, not a generic upstream API?
- Does the MCP server validate audience, issuer, expiry, and scope?
- Are raw user tokens ever passed through to downstream tools?
- Is the scope tied to workflow, namespace, access mode, agent, and run?
- Was the OAuth client ID metadata document validated for this client?
- Was the authorization-response
isschecked against the recorded authorization-server issuer before the code was redeemed? - Are client credentials keyed to that same issuer, not reused across authorization servers?
- Are protected-resource metadata, authorization-server metadata, and Client ID Metadata Document URLs HTTPS and free of private, loopback, or link-local destinations?
- Is the authorization endpoint
https://, orhttp://on loopback only, rather thanjavascript:,data:,file:, orvbscript:? - Did the client satisfy an authoritative
WWW-Authenticatescope challenge? - Is a typed step-up authorization receipt present for approval-required access?
- Can the gateway prove consent, session binding, and audit correlation?
- Which new MCP servers fail before promotion?
The MCP Authorization Conformance pack answers those questions in a
machine-readable artifact and exposes a runtime evaluator for pre-call
authorization decisions. Rechecked August 29, 2026: MCP
2026-07-28
is still current and stateless. There is no negotiation handshake.
Each request carries protocol version and capabilities. Servers
MUST implement
server/discover.
Authorization servers SHOULD include RFC 9207 iss on
authorization responses; clients MUST record the issuer from
validated authorization-server metadata and apply
RFC 9207 Section 2.4
with simple string comparison before redeeming a code. Dynamic Client
Registration is deprecated; Client ID Metadata Documents remain the
preferred registration method. --session-id and kill_session here
are local run identifiers and host-session kill switches, not
Mcp-Session-Id. Session binding in this pack means OAuth and
token-to-run binding. Streamable HTTP revisions through
2025-11-25
could assign that header; 2026-07-28 ignores it and does not mint
session IDs.
Workflow at a glance
MCP Authorization Conformance workflow
Test an MCP client's OAuth, token, scope, resource, audience, RFC 9207 issuer, metadata SSRF, authorization URL schemes, and runtime authorization behavior.
Signal
Capture the authorization profile
Record client, server, transport, issuer, RFC 9207 iss support, metadata URLs, redirect mode, grant, resource, scopes, audience, and environment.
Scope
Validate protocol evidence
Check HTTPS metadata, reject private or link-local metadata destinations, reject javascript/data/file/vbscript authorization URLs, PKCE/state, client registration, issuer-bound credentials, RFC 9207 iss comparison, token binding/storage, refresh, expiration, audience, and resource indicators.
Decision
Evaluate a runtime request
Bind identity, token claims, recorded issuer, metadata fetch URLs, authorization endpoint scheme, workflow, tool/resource, arguments, tenant, entitlement, approval, and policy.
Action
Enforce authorization
Allow, narrow scope, require approval, hold, deny mix-up, SSRF-unsafe metadata, unsafe authorization URL schemes, or unbound tokens, revoke, or kill on token passthrough or credential misuse.
Proof
Publish conformance evidence
Record cases, observed behavior, reason codes, token-safe metadata, exceptions, owners, and remediation.
Decision gate
Does the implementation and request satisfy required OAuth/MCP authorization controls for this resource and action?
Authorize only the exact approved scope and resource.
Hold, deny, revoke, or kill invalid, overbroad, replayed, mix-up, SSRF-unsafe metadata, unsafe authorization URL schemes, passthrough, or mis-audienced authorization.
Evidence to retain
- authorization profile and cases
- runtime claim/scope decision
- conformance results and exceptions
Expected outputs
- authorization conformance pack
- runtime auth decision
- remediation backlog
What was added
- Source profile:
data/assurance/mcp-authorization-conformance-profile.json - Generator:
scripts/generate_mcp_authorization_conformance_pack.py - Evidence pack:
data/evidence/mcp-authorization-conformance-pack.json - Runtime evaluator:
scripts/evaluate_mcp_authorization_decision.py - MCP tools:
recipes_mcp_authorization_conformance_pack, paired withrecipes_playbook_planusing playbook idmcp-authorization-conformance.
Regenerate and validate the pack:
python3 scripts/generate_mcp_authorization_conformance_pack.py
python3 scripts/generate_mcp_authorization_conformance_pack.py --check
Evaluate a runtime authorization request:
python3 scripts/evaluate_mcp_authorization_decision.py \
--workflow-id vulnerable-dependency-remediation \
--connector-id repository-contents \
--namespace repo.contents \
--agent-id sr-agent::vulnerable-dependency-remediation::codex \
--run-id ci-allow \
--client-id https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-url https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-validated \
--authorization-server-discovery-method www_authenticate \
--protected-resource-metadata-url https://mcp.security-recipes.ai/.well-known/oauth-protected-resource \
--requested-access-mode write_branch \
--resource-indicator https://mcp.security-recipes.ai/mcp \
--token-audience https://mcp.security-recipes.ai/mcp \
--token-issuer https://auth.security-recipes.ai \
--expected-authorization-issuer https://auth.security-recipes.ai \
--authorization-response-iss https://auth.security-recipes.ai \
--authorization-response-iss-parameter-supported \
--token-expires-at 2099-01-01T00:15:00Z \
--token-scope repo.contents:write_branch \
--scope-challenge repo.contents:write_branch \
--consent-record-id consent-ci \
--session-id session-ci \
--correlation-id corr-ci \
--gateway-policy-hash sha256:ci-policy \
--expect-decision allow_authorized_mcp_request
Reject a mix-up grant whose authorization-response iss does not match
the recorded authorization-server issuer:
python3 scripts/evaluate_mcp_authorization_decision.py \
--workflow-id vulnerable-dependency-remediation \
--connector-id repository-contents \
--namespace repo.contents \
--agent-id sr-agent::vulnerable-dependency-remediation::codex \
--run-id ci-mixup \
--client-id https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-url https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-validated \
--authorization-server-discovery-method www_authenticate \
--protected-resource-metadata-url https://mcp.security-recipes.ai/.well-known/oauth-protected-resource \
--requested-access-mode write_branch \
--resource-indicator https://mcp.security-recipes.ai/mcp \
--token-audience https://mcp.security-recipes.ai/mcp \
--token-issuer https://auth.security-recipes.ai \
--expected-authorization-issuer https://auth.security-recipes.ai \
--authorization-response-iss https://attacker.example/as \
--authorization-response-iss-parameter-supported \
--token-expires-at 2099-01-01T00:15:00Z \
--token-scope repo.contents:write_branch \
--scope-challenge repo.contents:write_branch \
--consent-record-id consent-ci \
--session-id session-ci \
--correlation-id corr-ci \
--gateway-policy-hash sha256:ci-policy \
--expect-decision deny_authorization_issuer_mismatch
Reject a grant whose protected-resource metadata URL points at a link-local or cloud-metadata destination:
python3 scripts/evaluate_mcp_authorization_decision.py \
--workflow-id vulnerable-dependency-remediation \
--connector-id repository-contents \
--namespace repo.contents \
--agent-id sr-agent::vulnerable-dependency-remediation::codex \
--run-id ci-ssrf \
--client-id https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-url https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-validated \
--authorization-server-discovery-method www_authenticate \
--protected-resource-metadata-url http://169.254.169.254/latest/meta-data/ \
--requested-access-mode write_branch \
--resource-indicator https://mcp.security-recipes.ai/mcp \
--token-audience https://mcp.security-recipes.ai/mcp \
--token-issuer https://auth.security-recipes.ai \
--expected-authorization-issuer https://auth.security-recipes.ai \
--authorization-response-iss https://auth.security-recipes.ai \
--authorization-response-iss-parameter-supported \
--token-expires-at 2099-01-01T00:15:00Z \
--token-scope repo.contents:write_branch \
--scope-challenge repo.contents:write_branch \
--consent-record-id consent-ci \
--session-id session-ci \
--correlation-id corr-ci \
--gateway-policy-hash sha256:ci-policy \
--expect-decision deny_oauth_metadata_ssrf
Reject a grant whose authorization endpoint uses a dangerous URL scheme:
python3 scripts/evaluate_mcp_authorization_decision.py \
--workflow-id vulnerable-dependency-remediation \
--connector-id repository-contents \
--namespace repo.contents \
--agent-id sr-agent::vulnerable-dependency-remediation::codex \
--run-id ci-auth-url \
--client-id https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-url https://agent.security-recipes.ai/client-metadata/codex.json \
--client-metadata-document-validated \
--authorization-server-discovery-method www_authenticate \
--protected-resource-metadata-url https://mcp.security-recipes.ai/.well-known/oauth-protected-resource \
--authorization-endpoint 'javascript:alert(1)' \
--requested-access-mode write_branch \
--resource-indicator https://mcp.security-recipes.ai/mcp \
--token-audience https://mcp.security-recipes.ai/mcp \
--token-issuer https://auth.security-recipes.ai \
--expected-authorization-issuer https://auth.security-recipes.ai \
--authorization-response-iss https://auth.security-recipes.ai \
--authorization-response-iss-parameter-supported \
--token-expires-at 2099-01-01T00:15:00Z \
--token-scope repo.contents:write_branch \
--scope-challenge repo.contents:write_branch \
--consent-record-id consent-ci \
--session-id session-ci \
--correlation-id corr-ci \
--gateway-policy-hash sha256:ci-policy \
--expect-decision deny_unsafe_authorization_url
Decision model
| Decision | Meaning |
|---|---|
allow_authorized_mcp_request |
The request is bound to the expected MCP resource and stays inside the connector and workflow scope. |
hold_for_authorization_evidence |
The connector or candidate server still needs authorization metadata, gateway evidence, or conformance controls. |
hold_for_client_metadata_evidence |
The remote MCP request lacks a validated HTTPS OAuth client ID metadata document that matches client_id. |
hold_for_step_up_authorization |
Approval-required MCP access lacks a typed step-up authorization receipt. |
deny_token_passthrough |
The request would pass raw user or upstream tokens through the agent/tool path. |
deny_unbound_token |
The token is missing the expected resource indicator or audience binding. |
deny_authorization_issuer_mismatch |
The authorization-response iss or token issuer does not match the recorded authorization-server issuer. |
deny_oauth_metadata_ssrf |
A protected-resource, authorization-server, or Client ID Metadata Document URL is HTTP or points at a private, loopback, or link-local destination. |
deny_unsafe_authorization_url |
The authorization endpoint uses a scheme other than https://, or http:// on a non-loopback host, including javascript:, data:, file:, or vbscript:. |
deny_scope_challenge_mismatch |
The token scopes do not satisfy the authoritative MCP scope challenge for the resource. |
deny_scope_drift |
The workflow, namespace, connector, or access mode is outside the approved authorization scope. |
kill_session_on_secret_or_signer_scope |
The request includes credential, signer, deploy, publish, or live-funds authority. |
What the pack proves
The generated pack joins:
- the MCP connector trust pack,
- the MCP connector intake pack,
- the workflow control plane,
- the gateway policy pack,
- and the authorization conformance profile.
For production connector namespaces, it records the gateway attestation controls that must exist: per-client consent, short-lived workload identity, token-passthrough denial, audit, session binding, and write or approval controls where applicable.
For the latest MCP authorization revision, it also records the metadata
evidence a production gateway should retain: protected-resource metadata
discovery, authorization-server discovery, client ID metadata document
validation, the recorded authorization-server issuer, RFC 9207 iss
support, resource indicator and audience values, JWKS or introspection
validation, redirect policy, scope challenge policy, and step-up
authorization policy.
For candidate MCP servers, it evaluates the detailed intake profile for resource indicators, audience validation, PKCE, short-lived tokens, client ID metadata documents, OAuth metadata SSRF, authorization URL scheme allowlisting, scope challenge handling, step-up authorization, private-network exposure, token passthrough, session binding, and audit evidence before promotion.
Industry alignment
This feature follows current primary guidance:
- Model Context Protocol Authorization for protected-resource metadata discovery, OAuth client ID metadata documents, resource indicators, audience-bound bearer tokens, HTTPS, PKCE, RFC 9207 authorization-response issuer validation, issuer-bound client credentials, scope challenges, step-up authorization, and token validation. Dynamic Client Registration remains available only as a deprecated compatibility path.
- MCP Security Best Practices
for confused-deputy prevention, token-passthrough avoidance, SSRF
controls on OAuth metadata and Client ID Metadata Document fetches
(HTTPS plus RFC 9728 Section 7.7 private/loopback/link-local
blocking), authorization URL scheme allowlisting (
https://, orhttp://loopback only; rejectjavascript:,data:,file:,vbscript:), session safety, scope minimization, and audit trails. - OWASP Top 10 for Agentic Applications 2026 for tool misuse, identity abuse, agentic supply-chain risk, context poisoning, cascading failures, and rogue-agent containment.
- CISA AI Data Security for provenance, integrity, access control, monitoring, third-party data handling, and incident evidence.
- NIST AI RMF and the NIST Generative AI Profile for governed, mapped, measured, and managed AI risk.
Trusted-source path
The open pack is the proof model. The reviewed production opportunity is a hosted MCP authorization scanner:
- discover live protected-resource and authorization-server metadata,
- validate OAuth client ID metadata documents,
- diff resource indicators, audiences, scopes, and redirect policy,
- alert on scope challenge drift and token-passthrough regressions,
- enforce step-up authorization receipts for approval-required calls,
- replay confused-deputy, issuer mix-up, metadata-SSRF, and unbound-token tests,
- attach signed authorization receipts to agent run receipts,
- export fleet-wide evidence for AI platform review and procurement.
That is the path from open knowledge to a production MCP security platform that a model provider, AI platform vendor, or security company would understand.
MCP examples
Inspect the overall pack:
recipes_mcp_authorization_conformance_pack()
Review one connector:
recipes_mcp_authorization_conformance_pack(
connector_id="repository-contents"
)
Plan one runtime request:
recipes_playbook_plan(
playbook_id="mcp-authorization-conformance",
finding="Repository-write MCP request needs OAuth and authorization conformance review."
)
See also
- MCP Connector Intake Scanner for pre-promotion MCP server review.
- MCP Connector Trust Registry for namespace tiers and connector evidence.
- MCP Gateway Policy Pack for default-deny tool access decisions.
- Agentic Run Receipts for run-level proof objects that can carry authorization evidence.