Model Context Protocol authentication integration. Add secure identity verification to MCP servers using OIDC with QR code authentication flows.
Demo
See an example of Nuggets authentication within an MCP server.
If you’re running an MCP server and want to add secure, verifiable authentication
to your chat, Nuggets makes this easy using OpenID Connect (OIDC).With Nuggets, users authenticate by scanning a QR code with their mobile app, proving specific attributes (e.g. identity, role, age) using Verifiable Credentials. This brings strong identity into the chat experience—without relying on usernames or passwords.
How to Integrated Nuggets into My MCP Server
To get started, create an OIDC Application Client in the Nuggets Account Portal. Here you will receive:
A Client ID
A private key for signing requests
The ability to configure redirect URIs and verifications
Once set up, your MCP server simply:
Generates an OIDC authentication request
Displays a QR code in the chat UI
Waits for the callback to receive the id_token
Verifies the token, extracts the claims, and authenticates the user in chat
Here’s what makes it powerful:
Strong identity based on Verifiable Credentials
Seamless UX with QR-based login
Custom claims in the token (like did, role, or other verified attributes)
Make sure to securely store the private key.
If you’re already running OIDC flows in your backend, this plugs in with minimal changes. And if not, Nuggets provides everything you need to get started securely.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Nuggets Documentation","colors":{"primary":"#7100CE","light":"#f5f5f5","dark":"#111111"},"logo":{"light":"https://mintcdn.com/nuggets-b89005a2/jRQbw6WveDYPxE-G/assets/logo-light-bg.svg?fit=max\u0026auto=format\u0026n=jRQbw6WveDYPxE-G\u0026q=85\u0026s=1d4b5047b72eae8cc80de51d2ed68ada","dark":"https://mintcdn.com/nuggets-b89005a2/jRQbw6WveDYPxE-G/assets/logo-dark-bg.svg?fit=max\u0026auto=format\u0026n=jRQbw6WveDYPxE-G\u0026q=85\u0026s=742fd47a096878be89bb0a6b25362181","href":"https://www.nuggets.life"},"favicon":"https://mintcdn.com/nuggets-b89005a2/jRQbw6WveDYPxE-G/favicon.svg?fit=max\u0026auto=format\u0026n=jRQbw6WveDYPxE-G\u0026q=85\u0026s=1be50d7b26f48add717d9b11079ece1f","api":{},"footer":{"socials":{"website":"https://nuggets.life","x":"https://x.com/nuggetsPAYandID","github":"https://github.com/NuggetsLtd","telegram":"https://t.me/nuggetsblockchain","linkedin":"https://www.linkedin.com/company/nuggets","facebook":"https://www.facebook.com/nuggetsPAYandID","medium":"https://medium.nuggets.life","reddit":"https://www.reddit.com/r/nuggetsPayandID"}},"seo":{"metatags":{"og:image":"/assets/ogp-meta-image.png","og:logo":"/assets/logo-light-bg.png","og:description":"Nuggets gives AI agents verifiable identity and a full audit trail of every action in production. Built for CISOs, CTOs, and security teams deploying AI at enterprise scale.","google-site-verification":"n7qY8UEPF0sd8EZRaU4SKwOkCFg5pqGc_wUyrg-XkD4"}},"integrations":{},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nuggets-b89005a2","hasAudioNarration":false,"actualSubdomain":"nuggets-b89005a2","customDomains":["nuggets.life"],"gitSource":{"type":"github","owner":"nuggetsltd","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ab395b91190f75bfe0c9dbe","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Blog","count":22},{"language":"default","tag":"Product Overview","count":18},{"language":"default","tag":"Getting Started","count":15},{"language":"default","tag":"Solutions","count":8},{"language":"default","tag":"Overview","count":7},{"language":"default","tag":"Demos","count":5},{"language":"default","tag":"Nuggets Labs","count":4},{"language":"default","tag":"No-code Setup","count":4},{"language":"default","tag":"Introduction","count":3},{"language":"default","tag":"Technical Integration","count":3}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{font-family:Helvetica Neue, Helvetica, Arial, sans-serif}.heroContent{align-items:center}.heroTitle{font-size:38px;font-weight:300;line-height:1.2;color:#7100CE;margin-bottom:19px}.heroText{font-size:20px;letter-spacing:0.45px;line-height:28px;margin:0 0 24px}.homePanels{padding-left:1.75rem;padding-right:1.75rem}.heroButton,.button{box-sizing:border-box;color:#fff;background:rgb(0, 109, 255);border-radius:10px;line-height:20px;padding:14px 13px;border:none;display:inline-flex;align-items:center;gap:10px;margin-bottom:20px}.button p{margin:0}.heroButton:hover{opacity:0.8}.nav-logo{height:65px;margin-left:-18px}.downloadNuggets{display:flex;gap:5px}.downloadNuggets a{display:block}.downloadNuggets svg,.downloadNuggets img{width:100%;max-width:115px;margin:0}.downloadNuggets__badge{margin:0;height:36px}.phoneScreenCapture{max-width:300px}@media (max-width: 1023px){.homePanels{padding-left:1rem;padding-right:1rem}}.img-dark{display:none}html[data-theme=\"dark\"] .img-light,:root[data-theme=\"dark\"] .img-light,.dark .img-light{display:none!important}html[data-theme=\"dark\"] .img-dark,:root[data-theme=\"dark\"] .img-dark,.dark .img-dark{display:block!important}.blogDate{display:block;font-size:0.85rem;color:#6b7280;margin-bottom:0.25rem}.blogPost{font-size:0.9rem;color:#6b7280;margin-top:0;margin-bottom:1.5rem}.blogCard{display:flex;gap:1.25rem;align-items:flex-start;padding:1rem;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:0.75rem;text-decoration:none;color:inherit;transition:border-color 0.2s, box-shadow 0.2s}.blogCard:hover{border-color:#7100CE;box-shadow:0 2px 8px rgba(113, 0, 206, 0.08)}.blogCard__image{width:120px;height:120px;object-fit:cover;border-radius:8px;flex-shrink:0;margin:0}.blogCard__content{flex:1;min-width:0}.blogCard__title{font-size:1.1rem;font-weight:600;margin:0 0 0.25rem;color:inherit}.blogCard__desc{font-size:0.9rem;color:#6b7280;margin:0;line-height:1.5}@media (max-width: 600px){.blogCard{flex-direction:column}.blogCard__image{width:100%;height:auto;aspect-ratio:16 / 9}}html[data-theme=\"dark\"] .blogCard,:root[data-theme=\"dark\"] .blogCard,.dark .blogCard{border-color:#2a2a2a}html[data-theme=\"dark\"] .blogCard:hover,:root[data-theme=\"dark\"] .blogCard:hover,.dark .blogCard:hover{border-color:#7100CE;box-shadow:0 2px 8px rgba(113, 0, 206, 0.15)}html[data-theme=\"dark\"] .blogCard__desc,:root[data-theme=\"dark\"] .blogCard__desc,.dark .blogCard__desc{color:#9ca3af}html[data-theme=\"dark\"] .blogDate,:root[data-theme=\"dark\"] .blogDate,.dark .blogDate{color:#9ca3af}.klaro .cookie-notice{background:#ffffff!important;color:#1a1a1a!important;border-top:1px solid #e5e5e5!important;font-family:Helvetica Neue, Helvetica, Arial, sans-serif!important}.klaro .cookie-notice .cn-body p{color:#4b5563!important}.klaro .cookie-notice .cn-ok .cm-btn{border-radius:10px!important;font-family:Helvetica Neue, Helvetica, Arial, sans-serif!important;padding:10px 20px!important}.klaro .cookie-notice .cn-ok .cm-btn.cm-btn-success{background:#7100CE!important;color:#fff!important}.klaro .cookie-notice .cn-ok .cm-btn.cm-btn-danger{background:transparent!important;color:#1a1a1a!important;border:1px solid #d1d5db!important}.klaro .cookie-notice .cn-ok .cm-btn.cm-btn-info{background:transparent!important;color:#7100CE!important}.klaro .cookie-modal .cm-modal{background:#ffffff!important;color:#1a1a1a!important;border-radius:12px!important;font-family:Helvetica Neue, Helvetica, Arial, sans-serif!important}.klaro .cookie-modal .cm-modal .cm-header h1{color:#1a1a1a!important}.klaro .cookie-modal .cm-modal .cm-header p,.klaro .cookie-modal .cm-modal .cm-header .cm-description{color:#4b5563!important}.klaro .cookie-modal .cm-modal .cm-body p,.klaro .cookie-modal .cm-modal .cm-body .cm-purpose-description,.klaro .cookie-modal .cm-modal .cm-body .cm-service-description{color:#4b5563!important}.klaro .cookie-modal .cm-modal .cm-body .cm-purpose-title,.klaro .cookie-modal .cm-modal .cm-body .cm-service-title,.klaro .cookie-modal .cm-modal .cm-body .cm-list-title,.klaro .cookie-modal .cm-modal .cm-body .cm-purpose .cm-list-title,.klaro .cookie-modal .cm-modal .cm-body span,.klaro .cookie-modal .cm-modal .cm-body label{color:#1a1a1a!important}.klaro .cookie-modal .cm-modal .cm-body .cm-purpose-description,.klaro .cookie-modal .cm-modal .cm-body .cm-list-description,.klaro .cookie-modal .cm-modal .cm-body .cm-service p,.klaro .cookie-modal .cm-modal .cm-body .cm-purpose p{color:#4b5563!important}.klaro .cookie-modal .cm-modal .cm-footer .cm-btn.cm-btn-success{background:#7100CE!important;color:#fff!important;border-radius:10px!important}.klaro .cookie-modal .cm-modal .cm-footer .cm-btn.cm-btn-danger{background:transparent!important;color:#1a1a1a!important;border:1px solid #d1d5db!important;border-radius:10px!important}.klaro .cookie-modal .cm-list-input:checked+.cm-list-label .slider{background:#7100CE!important}.klaro .cookie-modal a{color:#7100CE!important}html[data-theme=\"dark\"] .klaro .cookie-notice,:root[data-theme=\"dark\"] .klaro .cookie-notice,.dark .klaro .cookie-notice{background:#111111!important;color:#f5f5f5!important;border-top:1px solid #2a2a2a!important}html[data-theme=\"dark\"] .klaro .cookie-notice .cn-body p,:root[data-theme=\"dark\"] .klaro .cookie-notice .cn-body p,.dark .klaro .cookie-notice .cn-body p{color:#d1d5db!important}html[data-theme=\"dark\"] .klaro .cookie-notice .cn-ok .cm-btn.cm-btn-danger,:root[data-theme=\"dark\"] .klaro .cookie-notice .cn-ok .cm-btn.cm-btn-danger,.dark .klaro .cookie-notice .cn-ok .cm-btn.cm-btn-danger{color:#f5f5f5!important;border-color:#4b5563!important}html[data-theme=\"dark\"] .klaro .cookie-notice .cn-ok .cm-btn.cm-btn-info,:root[data-theme=\"dark\"] .klaro .cookie-notice .cn-ok .cm-btn.cm-btn-info,.dark .klaro .cookie-notice .cn-ok .cm-btn.cm-btn-info{color:#7100CE!important}html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal,.dark .klaro .cookie-modal .cm-modal{background:#111111!important;color:#f5f5f5!important}html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-header h1,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-header h1,.dark .klaro .cookie-modal .cm-modal .cm-header h1{color:#f5f5f5!important}html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-header p,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-header p,.dark .klaro .cookie-modal .cm-modal .cm-header p,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-header .cm-description,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-header .cm-description,.dark .klaro .cookie-modal .cm-modal .cm-header .cm-description{color:#d1d5db!important}html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body p,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body p,.dark .klaro .cookie-modal .cm-modal .cm-body p,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-purpose-description,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-purpose-description,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-purpose-description,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-service-description,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-service-description,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-service-description,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-list-description,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-list-description,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-list-description,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-service p,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-service p,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-service p,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-purpose p,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-purpose p,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-purpose p{color:#d1d5db!important}html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-purpose-title,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-purpose-title,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-purpose-title,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-service-title,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-service-title,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-service-title,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-list-title,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body .cm-list-title,.dark .klaro .cookie-modal .cm-modal .cm-body .cm-list-title,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body span,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body span,.dark .klaro .cookie-modal .cm-modal .cm-body span,html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body label,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-body label,.dark .klaro .cookie-modal .cm-modal .cm-body label{color:#f5f5f5!important}html[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-footer .cm-btn.cm-btn-danger,:root[data-theme=\"dark\"] .klaro .cookie-modal .cm-modal .cm-footer .cm-btn.cm-btn-danger,.dark .klaro .cookie-modal .cm-modal .cm-footer .cm-btn.cm-btn-danger{color:#f5f5f5!important;border-color:#4b5563!important}"}]}
{"page":{"pagePath":"integrated/mcp","slug":"/integrated/mcp","pageMetadata":{"title":"MCP Authentication","sidebarTitle":"MCP","description":"Model Context Protocol authentication integration. Add secure identity verification to MCP servers using OIDC with QR code authentication flows.","icon":"robot","href":"/integrated/mcp"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Model Context Protocol authentication integration. Add secure identity verification to MCP servers using OIDC with QR code authentication flows.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,Heading,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(`video`,{controls:true,className:`mint-w-full mint-aspect-video`,src:`https://mintcdn.com/nuggets-b89005a2/nUdoZWSc5gGcRIEv/assets/mcp-chat.mp4?fit=max\u0026auto=format\u0026n=nUdoZWSc5gGcRIEv\u0026q=85\u0026s=276411525061d8485c75a783e002e622`,\"data-path\":`assets/mcp-chat.mp4`}),`\n`,_jsx(Card,{title:`Demo`,icon:`github`,href:`https://github.com/NuggetsLtd/ai`,children:_jsx(_components.p,{children:`See an example of Nuggets authentication within an MCP server.`})}),`\n`,_jsxs(_components.p,{children:[`If you’re running an MCP server and want to add secure, verifiable authentication\nto your chat, Nuggets makes this easy using `,_jsx(_components.strong,{children:`OpenID Connect (OIDC)`}),`.`]}),`\n`,_jsx(_components.p,{children:`With Nuggets, users authenticate by scanning a QR code with their mobile app, proving specific attributes (e.g. identity, role, age) using Verifiable Credentials. This brings strong identity into the chat experience—without relying on usernames or passwords.`}),`\n`,_jsx(Heading,{level:`4`,id:`how-to-integrated-nuggets-into-my-mcp-server`,children:`How to Integrated Nuggets into My MCP Server`}),`\n`,_jsxs(_components.p,{children:[`To get started, create an `,_jsx(_components.strong,{children:`OIDC Application Client`}),` in the Nuggets Account Portal. Here you will receive:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`Client ID`})]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`private key`}),` for signing requests`]}),`\n`,_jsxs(_components.li,{children:[`The ability to configure `,_jsx(_components.strong,{children:`redirect URIs`}),` and `,_jsx(_components.strong,{children:`verifications`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Once set up, your MCP server simply:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.strong,{children:`Generates an OIDC authentication request`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Displays a QR code`}),` in the chat UI`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Waits for the callback`}),` to receive the `,_jsx(_components.code,{children:`id_token`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Verifies the token`}),`, extracts the claims, and authenticates the user in chat`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Here’s what makes it powerful:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Strong identity based on Verifiable Credentials`}),`\n`,_jsx(_components.li,{children:`Seamless UX with QR-based login`}),`\n`,_jsxs(_components.li,{children:[`Custom claims in the token (like `,_jsx(_components.code,{children:`did`}),`, `,_jsx(_components.code,{children:`role`}),`, or other verified attributes)`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Make sure to securely store the private key.`})}),`\n`,_jsx(_components.p,{children:`If you’re already running OIDC flows in your backend, this plugs in with minimal changes. And if not, Nuggets provides everything you need to get started securely.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"MCP Authentication","sidebarTitle":"MCP","description":"Model Context Protocol authentication integration. Add secure identity verification to MCP servers using OIDC with QR code authentication flows.","icon":"robot","href":"/integrated/mcp"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How to Integrated Nuggets into My MCP Server","slug":"how-to-integrated-nuggets-into-my-mcp-server","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/nuggets-b89005a2/b9059ea62a073350/klaro-consent.js"],"dynamicCss":".mint-aspect-video {\n aspect-ratio: 16 / 9\n}\n.mint-w-full {\n width: 100%\n}","subdomain":"nuggets-b89005a2","siteName":"Nuggets Documentation","title":"MCP Authentication - Nuggets Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-26T10:51:04.013Z","originalFileLocation":"integrated/mcp.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Model Context Protocol authentication integration. Add secure identity verification to MCP servers using OIDC with QR code authentication flows.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nuggets Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"MCP Authentication - Nuggets Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Nuggets gives AI agents verifiable identity and a full audit trail of every action in production. Built for CISOs, CTOs, and security teams deploying AI at enterprise scale.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nuggets Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://nuggets.life/docs/integrated/mcp\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nuggets-b89005a2.mintlify.site/docs/assets/ogp-meta-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"MCP Authentication - Nuggets Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Nuggets gives AI agents verifiable identity and a full audit trail of every action in production. Built for CISOs, CTOs, and security teams deploying AI at enterprise scale.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nuggets-b89005a2.mintlify.site/docs/assets/ogp-meta-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/nuggets-b89005a2/hELHQJ9ac1zRXjqt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nuggets Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7100CE\">\u003cmeta data-mint-head name=\"og:logo\" content=\"/assets/logo-light-bg.png\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"n7qY8UEPF0sd8EZRaU4SKwOkCFg5pqGc_wUyrg-XkD4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://nuggets.life/docs/integrated/mcp\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/integrated/mcp.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://nuggets.life/#organization\",\"name\":\"Nuggets Documentation\",\"url\":\"https://nuggets.life\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nuggets-b89005a2/jRQbw6WveDYPxE-G/assets/logo-light-bg.svg?fit=max\u0026auto=format\u0026n=jRQbw6WveDYPxE-G\u0026q=85\u0026s=1d4b5047b72eae8cc80de51d2ed68ada\"}},{\"@type\":\"WebSite\",\"@id\":\"https://nuggets.life/docs#website\",\"name\":\"Nuggets Documentation\",\"url\":\"https://nuggets.life/docs\",\"publisher\":{\"@id\":\"https://nuggets.life/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://nuggets.life/docs/integrated/mcp#webpage\",\"url\":\"https://nuggets.life/docs/integrated/mcp\",\"name\":\"MCP Authentication\",\"description\":\"Model Context Protocol authentication integration. Add secure identity verification to MCP servers using OIDC with QR code authentication flows.\",\"dateModified\":\"2026-01-26T10:51:04.013Z\",\"isPartOf\":{\"@id\":\"https://nuggets.life/docs#website\"},\"breadcrumb\":{\"@id\":\"https://nuggets.life/docs/integrated/mcp#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://nuggets.life/docs/integrated/mcp#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Technical Integration\",\"item\":\"https://nuggets.life/docs/integrated/agent-authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MCP Authentication\",\"item\":\"https://nuggets.life/docs/integrated/mcp\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://nuggets.life/docs/integrated/mcp#article\",\"headline\":\"MCP Authentication\",\"name\":\"MCP Authentication\",\"description\":\"Model Context Protocol authentication integration. Add secure identity verification to MCP servers using OIDC with QR code authentication flows.\",\"url\":\"https://nuggets.life/docs/integrated/mcp\",\"mainEntityOfPage\":{\"@id\":\"https://nuggets.life/docs/integrated/mcp#webpage\"},\"image\":\"https://nuggets.life/assets/ogp-meta-image.png\",\"dateModified\":\"2026-01-26T10:51:04.013Z\",\"publisher\":{\"@id\":\"https://nuggets.life/#organization\"},\"isPartOf\":{\"@id\":\"https://nuggets.life/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nuggets Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Nuggets Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/integrated/mcp.md","siteName":"Nuggets Documentation","nav":{"global":null,"tabs":[{"tab":"Product Overview","pages":[{"title":"Product Overview","href":"/overview/introduction"}]},{"tab":"Getting Started","groups":[{"group":"Introduction","pages":[{"title":"Overview","sidebarTitle":"Overview","icon":"book","href":"/getting-started/overview"},{"title":"Identity Wallet Setup","sidebarTitle":"Identity Wallet Setup","icon":"wallet","href":"/getting-started/identity-wallet-setup"},{"title":"Accounts Portal","sidebarTitle":"Accounts Portal","icon":"file","href":"/getting-started/accounts-portal"}]},{"group":"Demos","pages":[{"title":"Identity","href":"/demos/identity"},{"title":"Authentication","href":"/demos/authentication"},{"title":"Age Verification","href":"/demos/age-verification"},{"title":"Multi-rail Payments","href":"/demos/multi-rail-payments"},{"title":"Personal Data","href":"/demos/personal-data"}]},{"group":"Technical Integration","pages":[{"title":"AI Agent Authentication","sidebarTitle":"AI Agent","icon":"robot","description":"Secure AI agent authentication with cryptographic verification. Create authenticated agents, download private keys, and verify tokens to prevent bad actors.","href":"/integrated/agent-authentication"},{"title":"MCP Authentication","sidebarTitle":"MCP","icon":"robot","href":"/integrated/mcp"},{"title":"OIDC","sidebarTitle":"OIDC","icon":"lock","description":"OpenID Connect integration guide for secure identity verification. Configure OIDC clients, QR code flows, and custom verification scopes in applications.","href":"/integrated/oidc"}]},{"group":"No-code Setup","pages":[{"title":"Overview","sidebarTitle":"Overview","icon":"paper-plane","href":"/simple/overview"},{"title":"Know Your Business (KYB)","sidebarTitle":"Know Your Business (KYB)","icon":"building","href":"/simple/know-your-business"},{"title":"Right To Work (RTW)","sidebarTitle":"Right To Work (RTW)","icon":"passport","href":"/simple/right-to-work"},{"title":"Know Your Employee (KYE)","icon":"person-circle-check","href":"/simple/know-your-employee"}]}]},{"tab":"Blog","pages":[{"title":"Blog","href":"/blog"}]},{"tab":"Nuggets Labs","pages":[{"title":"Nuggets Labs","href":"/nuggets-labs/authority-control-plane-one-pagers"}]}]},"basePath":"","title":"MCP Authentication - Nuggets Documentation","deploymentId":"dpl_B1qJC7o4Nbc1BrDLB8Y5TDHq3c2t","buildId":"dpl_B1qJC7o4Nbc1BrDLB8Y5TDHq3c2t","dynamics":[],"chunks":[]}