MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems. Follow these steps to connect your agent in AI21 Studio to an MCP server.
4.1 Add a URL
Enter the MCP server address in the URL field.
Handling “Invalid URL” Errors
If you see the “Invalid URL” error when adding your MCP server in AI21 Studio, it usually means:
The server is using http:// instead of https://
The server is running on a raw IP address and isn’t exposed as a public HTTPS endpoint
How to fix it: Set up an ngrok tunnel (or a similar tool) to expose your local server over HTTPS, which passes validation.
For full setup instructions, see the MCP Server Setup guide.
4.2 Add a Label
Enter a descriptive Label to identify the MCP server.4.3 Add Authentication
From the Authentication dropdown, select the authentication method (for example, API key or access token) and provide the credentials.
Authorization headers are not saved with the agent. If you save the agent, the headers will not be stored. When you reload the agent, you’ll need to enter the authorization headers again.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AI21 Labs","colors":{"primary":"#F098B5","light":"#EE87A7","dark":"#F098B5"},"logo":{"light":"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_black.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=ff9840432b0d2e9ebcbadc46ee2b5b8f","dark":"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_white.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=8a9b3dd3ba0831a3431f51d792cef4c3","href":"https://www.ai21.com/"},"favicon":"https://mintcdn.com/ai21-demo/oHuzynnpYbW6Dt6q/favicon.png?fit=max\u0026auto=format\u0026n=oHuzynnpYbW6Dt6q\u0026q=85\u0026s=2b79127bf528ced3b4c82a2245c3977b","appearance":{"default":"light"},"background":{"decoration":"gradient","color":{"dark":"#212121"}},"navbar":{"links":[{"href":"https://studio.ai21.com/v2/workspaces/81189ce4-f4d4-433e-954d-ff17cd040a2a/maestro","label":"Playground"},{"href":"https://studio.ai21.com/v2/account/api-key?source=docs\u0026_gl=1*u1mkxz*_gcl_au*OTIzMDQ5NzU0LjE3NDkyOTE4NjA.","label":"API Key"}],"primary":{"type":"button","label":"Get a Demo","href":"https://www.ai21.com/talk-to-us/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/ai21","x":"https://twitter.com/AI21Labs","discord":"https://discord.com/invite/cKzg6GEAyB"}},"seo":{"metatags":{"title":"AI21 Labs Documentation","description":"Access full API references, guides, and model capabilities. Learn how to work with AI21's foundation models."}},"fonts":{"heading":{"family":"Polysans","source":"https://www.ai21.com/wp-content/themes/ai21/assets/fonts/polysans/polysans-500.woff2","format":"woff2"},"body":{"family":"Inter"}},"styling":{"codeblocks":"system","latex":false},"integrations":{"amplitude":{"apiKey":"be0223327acdb089744156d19857f1ac"},"intercom":{"appId":"mj4rlz0i"}},"contextual":{"options":["copy","view"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ai21-demo","hasAudioNarration":false,"actualSubdomain":"ai21-demo","customDomains":["docs.ai21.com"],"gitSource":{"type":"github","owner":"ai21labs","repo":"ai21-documentation","deployBranch":"mintlify-migration","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a4a7ebfbaf10c5e1ea335ca","collectionId":"f5badcbb-72bc-4b9d-900b-6960296e389a","schemaVersion":"v3"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a4f3f9090bb4322727d629c:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Guides","count":39},{"language":"default","tag":"API Reference","count":15},{"language":"default","tag":"AI21 Maestro","count":14},{"language":"default","tag":"Tools","count":11},{"language":"default","tag":"Foundation Models","count":7},{"language":"default","tag":"File Library Management","count":7},{"language":"default","tag":"AI21 Studio","count":6},{"language":"default","tag":"Private AI","count":4},{"language":"default","tag":"User Provided Tools","count":4},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","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":"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":"llms-txt-v2","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles/custom.css","content":".tryit-button,button[aria-label=\"Try it\"]{display:none!important}.centered-table{text-align:center}.centered-table table{margin:0 auto!important;display:table!important}div.centered-table>table{margin-left:auto!important;margin-right:auto!important}.dark .hero{color:#fff!important}.category-title,.dark .hero h1,h1{font-weight:500!important}h2{font-size:1.4rem!important;line-height:1.4!important;letter-spacing:-.01em!important;margin-bottom:.6em!important}.category-title{font-size:1.75rem!important;line-height:1.3!important;margin-top:2rem!important;margin-bottom:1rem!important;letter-spacing:normal!important}.card h2,.home-page .box h2,.home-page a.box h2{font-size:1rem!important;font-weight:400!important;line-height:1.2!important;margin-bottom:.4em!important;letter-spacing:-.01em!important}.sidebar .category,.sidebar .group-title,.sidebar a,h2{font-weight:400!important}.sidebar .title{font-weight:300!important}.card h2{font-size:1.125rem!important;font-weight:500!important;line-height:1.5!important}.bg-lightmode{background-image:url(https://mintlify-assets.b-cdn.net/ai21-background.svg)}.bg-darkmode{background-image:url(https://mintlify-assets.b-cdn.net/dark-ai21-background2.svg)}"}],"page":{"pagePath":"docs/mcp-studio-guide","slug":"/docs/mcp-studio-guide","pageMetadata":{"title":" MCP","description":"How to Use MCP in AI21 Studio ","href":"/docs/mcp-studio-guide","hidden":false},"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: \"How to Use MCP in AI21 Studio\"\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={a:`a`,br:`br`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,OptimizedImage}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems. Follow these steps to connect your agent in `,_jsx(_components.strong,{children:`AI21 Studio`}),` to an MCP server.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`step-1-go-to-the-playground-section`,children:[`Step 1: `,_jsx(_components.strong,{children:`Go to the Playground Section`})]}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`Navigate to Maestro `,_jsx(_components.a,{href:`https://studio.ai21.com/v2?tab=maestro`,children:_jsx(_components.strong,{children:`Playground`})}),` from the left-hand menu in AI21 Studio.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/Step1GotothePlaygroundSection.png?fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=cd37a1abd98d3b0593ce7cb5aff9a18f`,alt:`Dataconnectorsallscreen Pn`,\"data-og-width\":`1498`,width:`1498`,\"data-og-height\":`709`,height:`709`,\"data-path\":`Step1GotothePlaygroundSection.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/Step1GotothePlaygroundSection.png?w=280\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=5e8b53d5614584325e157aaea4ef1d0b 280w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/Step1GotothePlaygroundSection.png?w=560\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=236541431eb4c11140f9418438d60138 560w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/Step1GotothePlaygroundSection.png?w=840\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=e0571b3e19ff568102ccdae9acbb9a5a 840w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/Step1GotothePlaygroundSection.png?w=1100\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=228582af768140b152e4927af031eb0d 1100w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/Step1GotothePlaygroundSection.png?w=1650\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=d7c5a722c54a089cab249d5e7615768c 1650w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/Step1GotothePlaygroundSection.png?w=2500\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=49837576fa90e8114c08ad44cff018af 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-2-add-a-tool`,children:`Step 2: Add a Tool`}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`\\xA0In the `,_jsx(_components.strong,{children:`Configuration`}),` panel, go to the `,_jsx(_components.strong,{children:`Tools`}),` section and click `,_jsx(_components.strong,{children:`Add`}),`.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/images/Step2AddaTool.png?fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=9411bc6315736e17e3397d6a9f6e8e8d`,alt:`Step2adda Tool Pn`,\"data-og-width\":`1489`,width:`1489`,\"data-og-height\":`722`,height:`722`,\"data-path\":`images/Step2AddaTool.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/images/Step2AddaTool.png?w=280\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=f534831db380e44c9ca9322907375652 280w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/images/Step2AddaTool.png?w=560\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=a9b50cc69ebc541ba1609248f32d9344 560w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/images/Step2AddaTool.png?w=840\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=343b5cc07af1d6ce58643c6f50c27dc9 840w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/images/Step2AddaTool.png?w=1100\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=8727dbf8ce774f1a54c2e62074f00f3e 1100w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/images/Step2AddaTool.png?w=1650\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=7876a19bc9fc9b7de587596c550a3e1f 1650w, https://mintcdn.com/ai21-demo/LNlHHKfViioyL7qE/images/Step2AddaTool.png?w=2500\u0026fit=max\u0026auto=format\u0026n=LNlHHKfViioyL7qE\u0026q=85\u0026s=38e7eb12d8a8d4eb92a1ddf99892df2a 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-3-select-mcp`,children:_jsx(_components.strong,{children:`Step 3: Select MCP`})}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`In the tools dropdown, select\\xA0`,_jsx(_components.strong,{children:`MCP`}),`.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/drMbiQRvxIxU7C7B/images/stage3mcptool.png?fit=max\u0026auto=format\u0026n=drMbiQRvxIxU7C7B\u0026q=85\u0026s=5037b5f1eb78f1fb05add8fe390dcf52`,alt:`Stage3mcptool Pn`,\"data-og-width\":`1721`,width:`1721`,\"data-og-height\":`925`,height:`925`,\"data-path\":`images/stage3mcptool.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/drMbiQRvxIxU7C7B/images/stage3mcptool.png?w=280\u0026fit=max\u0026auto=format\u0026n=drMbiQRvxIxU7C7B\u0026q=85\u0026s=a96c59eeab39fa6bb2566cda77a2f2a0 280w, https://mintcdn.com/ai21-demo/drMbiQRvxIxU7C7B/images/stage3mcptool.png?w=560\u0026fit=max\u0026auto=format\u0026n=drMbiQRvxIxU7C7B\u0026q=85\u0026s=94a4d647c66d83d8a75cbcf64d090c4c 560w, https://mintcdn.com/ai21-demo/drMbiQRvxIxU7C7B/images/stage3mcptool.png?w=840\u0026fit=max\u0026auto=format\u0026n=drMbiQRvxIxU7C7B\u0026q=85\u0026s=0eff026440e6907ecfc613bb8b9fd540 840w, https://mintcdn.com/ai21-demo/drMbiQRvxIxU7C7B/images/stage3mcptool.png?w=1100\u0026fit=max\u0026auto=format\u0026n=drMbiQRvxIxU7C7B\u0026q=85\u0026s=5beee38de11912a6febd8f59d85e7374 1100w, https://mintcdn.com/ai21-demo/drMbiQRvxIxU7C7B/images/stage3mcptool.png?w=1650\u0026fit=max\u0026auto=format\u0026n=drMbiQRvxIxU7C7B\u0026q=85\u0026s=a5a96753fc4da38f91d52f65ef1fdc0e 1650w, https://mintcdn.com/ai21-demo/drMbiQRvxIxU7C7B/images/stage3mcptool.png?w=2500\u0026fit=max\u0026auto=format\u0026n=drMbiQRvxIxU7C7B\u0026q=85\u0026s=91d70e4ef52219d297010ff0d924c57c 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-4-fill-in-the-fields`,children:_jsx(_components.strong,{children:`Step 4: Fill in the Fields`})}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`4.1 Add a URL`}),_jsx(_components.br,{}),`\n`,`Enter the MCP server address in the\\xA0`,_jsx(_components.strong,{children:`URL`}),`\\xA0field.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.1mcpurl.png?fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=438fce8c33ae9caa60f10d6ef4361426`,alt:`4 1mcpurl Pn`,\"data-og-width\":`1488`,width:`1488`,\"data-og-height\":`729`,height:`729`,\"data-path\":`images/4.1mcpurl.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.1mcpurl.png?w=280\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=01a634943f2c2ee1e6b2b8a35ff59159 280w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.1mcpurl.png?w=560\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=838a7953471e80928068ba94af27e17e 560w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.1mcpurl.png?w=840\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=954c83ee0b711ff4042406de4a1d696c 840w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.1mcpurl.png?w=1100\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=7cd1d5bd0a1b74f75f99ec3d83b802b8 1100w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.1mcpurl.png?w=1650\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=d65af9fef50a90ffe3a823e81b3d6179 1650w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.1mcpurl.png?w=2500\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=db7b09b4a0285a63069f843b4a1acf9a 2500w`}),_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Handling “Invalid URL” Errors`}),_jsx(_components.br,{}),`\n`,_jsx(_components.br,{}),`\n`,`If you see the `,_jsx(_components.strong,{children:`“Invalid URL”`}),` error when adding your MCP server in AI21 Studio, it usually means:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The server is using `,_jsx(_components.code,{children:`http://`}),` instead of `,_jsx(_components.code,{children:`https://`})]}),`\n`,_jsx(_components.li,{children:`The server is running on a raw IP address and isn’t exposed as a public HTTPS endpoint`}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How to fix it:`}),` Set up an `,_jsx(_components.strong,{children:`ngrok tunnel`}),` (or a similar tool) to expose your local server over HTTPS, which passes validation.`]}),_jsxs(_components.p,{children:[_jsx(_components.br,{}),`\n`,`For full setup instructions, see the `,_jsx(_components.a,{href:`https://docs.ai21.com/docs/mcp-server-setup-guide`,children:`MCP Server Setup guide`}),`.`]})]}),_jsxs(_components.p,{children:[_jsx(_components.br,{}),`\n`,_jsx(_components.strong,{children:`4.2 Add a Label`}),_jsx(_components.br,{}),`\n`,`Enter a descriptive\\xA0`,_jsx(_components.strong,{children:`Label`}),`\\xA0to identify the MCP server.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.2mcplabel.png?fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=1e7b8a19fba8a805d166623c97a69b10`,alt:`4 2mcplabel Pn`,\"data-og-width\":`1484`,width:`1484`,\"data-og-height\":`729`,height:`729`,\"data-path\":`images/4.2mcplabel.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.2mcplabel.png?w=280\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=7448a95ca78f41bdf793742c31c0837b 280w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.2mcplabel.png?w=560\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=abfd2e4aacc2ef002798c9503da402ec 560w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.2mcplabel.png?w=840\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=7ab4576544db0a4271710cc3fe744e6f 840w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.2mcplabel.png?w=1100\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=db66df27c31c2f5c5d3862eadea4f2c3 1100w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.2mcplabel.png?w=1650\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=50df34efd6e9f84591098ad5e940b39c 1650w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/4.2mcplabel.png?w=2500\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=84d56ae41202c46c7d07be8b6701bfba 2500w`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`4.3 Add Authentication`}),` `,_jsx(_components.br,{}),`\n`,`From the\\xA0`,_jsx(_components.strong,{children:`Authentication`}),`\\xA0dropdown, select the authentication method (for example, API key or access token) and provide the credentials.`]}),_jsx(Note,{children:_jsx(_components.p,{children:`Authorization headers are not saved with the agent. If you save the agent, the headers will not be stored. When you reload the agent, you’ll need to enter the authorization headers again.`})}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/EsOA37anh3HWatHi/images/4.3AddAuthentication.png?fit=max\u0026auto=format\u0026n=EsOA37anh3HWatHi\u0026q=85\u0026s=bc34b883fc93c21811f8d6d7a5286aa5`,alt:`4 3add Authentication Pn`,\"data-og-width\":`1481`,width:`1481`,\"data-og-height\":`730`,height:`730`,\"data-path\":`images/4.3AddAuthentication.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/EsOA37anh3HWatHi/images/4.3AddAuthentication.png?w=280\u0026fit=max\u0026auto=format\u0026n=EsOA37anh3HWatHi\u0026q=85\u0026s=9cbc85036854753514bb248d6c31e431 280w, https://mintcdn.com/ai21-demo/EsOA37anh3HWatHi/images/4.3AddAuthentication.png?w=560\u0026fit=max\u0026auto=format\u0026n=EsOA37anh3HWatHi\u0026q=85\u0026s=79a2b59928f5c6b2239d7b00be380a5d 560w, https://mintcdn.com/ai21-demo/EsOA37anh3HWatHi/images/4.3AddAuthentication.png?w=840\u0026fit=max\u0026auto=format\u0026n=EsOA37anh3HWatHi\u0026q=85\u0026s=f64560b581dbc9ec388c402dec3da565 840w, https://mintcdn.com/ai21-demo/EsOA37anh3HWatHi/images/4.3AddAuthentication.png?w=1100\u0026fit=max\u0026auto=format\u0026n=EsOA37anh3HWatHi\u0026q=85\u0026s=3d812962ca221ad476a4ac5a714592be 1100w, https://mintcdn.com/ai21-demo/EsOA37anh3HWatHi/images/4.3AddAuthentication.png?w=1650\u0026fit=max\u0026auto=format\u0026n=EsOA37anh3HWatHi\u0026q=85\u0026s=35602e50e3924ebec0a276f7cecaf48d 1650w, https://mintcdn.com/ai21-demo/EsOA37anh3HWatHi/images/4.3AddAuthentication.png?w=2500\u0026fit=max\u0026auto=format\u0026n=EsOA37anh3HWatHi\u0026q=85\u0026s=61ae5c381c4ee13b5130942b76096b25 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-5-review-allowed-tools`,children:_jsx(_components.strong,{children:`Step 5: Review Allowed Tools`})}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Review allowed tools`}),`.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/Step5ReviewAllowedTools.png?fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=66f9332406e3a01b8e2ff10901559802`,alt:`Step5review Allowed Tools Pn`,\"data-og-width\":`1483`,width:`1483`,\"data-og-height\":`732`,height:`732`,\"data-path\":`images/Step5ReviewAllowedTools.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/Step5ReviewAllowedTools.png?w=280\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=3da63fefd7853b131d7e2c5600fe5039 280w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/Step5ReviewAllowedTools.png?w=560\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=8011d3d37fd7ee1b5515e12072f5a822 560w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/Step5ReviewAllowedTools.png?w=840\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=bb977220a65aa1dbe220a37c6f1b1436 840w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/Step5ReviewAllowedTools.png?w=1100\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=29c7814e6b56b5957a9528609083c0cb 1100w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/Step5ReviewAllowedTools.png?w=1650\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=2ed616a5bfcd64228e2773d9975d4607 1650w, https://mintcdn.com/ai21-demo/PSuwdIHwl54ddQPs/images/Step5ReviewAllowedTools.png?w=2500\u0026fit=max\u0026auto=format\u0026n=PSuwdIHwl54ddQPs\u0026q=85\u0026s=69af30cbd91a0c390dfa92ec2a5e3ebf 2500w`}),_jsx(_components.p,{children:`You will see a list of tools available from the MCP server.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-6-save-the-tools`,children:_jsx(_components.strong,{children:`Step 6: Save the Tools`})}),`\n`,_jsx(Expandable,{title:`Content`,children:_jsxs(_components.p,{children:[`After verifying the tools are correct, click\\xA0`,_jsx(_components.strong,{children:`Save`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`step-7-optional--edit-mcp-tools`,children:_jsx(_components.strong,{children:`Step 7 (Optional): Edit MCP Tools`})}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsx(_components.p,{children:`Edit an existing MCP tool by following these steps:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Click the\\xA0`,_jsx(_components.strong,{children:`⋮`}),` (colon icon).`]}),`\n`,_jsxs(_components.li,{children:[`Select\\xA0`,_jsx(_components.strong,{children:`Edit`}),`, make your changes, and click\\xA0`,_jsx(_components.strong,{children:`Save.`})]}),`\n`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools1.png?fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=0c7cf19e079c139aac6c5ee3f22bfb0b`,alt:`Edit MCP Tools1 Pn`,\"data-og-width\":`871`,width:`871`,\"data-og-height\":`576`,height:`576`,\"data-path\":`images/EditMCPTools1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools1.png?w=280\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=6c4b59daf0138651e53537b59f950101 280w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools1.png?w=560\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=1ef0e6806ef347ca8e16dce048920e23 560w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools1.png?w=840\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=80d3b43b0d990a63d4c2028280b7718c 840w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=d92eadd89ed96b3bd18f59d84e96b4f5 1100w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=8e2d5fecd4fae2d0b7a39b6bb997303d 1650w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=f21dc57eacab2becee3297b87065f5a8 2500w`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools2.png?fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=490b398722a1a72a61457c1b7a1376c4`,alt:`Edit MCP Tools2 Pn`,\"data-og-width\":`627`,width:`627`,\"data-og-height\":`474`,height:`474`,\"data-path\":`images/EditMCPTools2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools2.png?w=280\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=a1bca20efe6388911d9436cf93740d7f 280w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools2.png?w=560\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=8de0d7911eae5fa75eb9a6feaa4d2fd1 560w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools2.png?w=840\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=291556ab9ec97b7c2dea2c1fcccd6a84 840w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=213db4fe1c72c230f7f7dd631bb97935 1100w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=45187caf30dc2d877686781ac0bccde0 1650w, https://mintcdn.com/ai21-demo/1c9AiCFNhfpxWOZR/images/EditMCPTools2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=1c9AiCFNhfpxWOZR\u0026q=85\u0026s=93cf577daf5744dc33f716e6ec1b9fb8 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(_components.p,{children:[`Use MCP in `,_jsx(_components.a,{href:`https://studio.ai21.com/v2?tab=maestro`,children:`AI21 Stuido`}),`.`]})]})}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":{"codeStyling":"system","config":{},"pageMetadata":{"title":" MCP","description":"How to Use MCP in AI21 Studio ","href":"/docs/mcp-studio-guide","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Step 1: Go to the Playground Section","slug":"step-1-go-to-the-playground-section","depth":3,"children":[]},{"title":"Step 2: Add a Tool","slug":"step-2-add-a-tool","depth":3,"children":[]},{"title":"Step 3: Select MCP","slug":"step-3-select-mcp","depth":3,"children":[]},{"title":"Step 4: Fill in the Fields","slug":"step-4-fill-in-the-fields","depth":3,"children":[]},{"title":"Step 5: Review Allowed Tools","slug":"step-5-review-allowed-tools","depth":3,"children":[]},{"title":"Step 6: Save the Tools","slug":"step-6-save-the-tools","depth":3,"children":[]},{"title":"Step 7 (Optional): Edit MCP Tools","slug":"step-7-optional--edit-mcp-tools","depth":3,"children":[]},{"title":"Next Steps","slug":"next-steps","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ai21-demo","siteName":"AI21 Labs","title":" MCP - AI21 Labs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-11-06T14:04:15.178Z","originalFileLocation":"docs/mcp-studio-guide.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=\"light\"}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=\"How to Use MCP in AI21 Studio\">\u003cmeta data-mint-head name=\"application-name\" content=\"AI21 Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_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=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\" MCP - AI21 Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to Use MCP in AI21 Studio\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AI21 Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ai21.com/docs/mcp-studio-guide\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ai21-demo.mintlify.app/_mintlify/api/og/v2?division=Tools\u0026amp;title=+MCP\u0026amp;description=How+to+Use+MCP+in+AI21+Studio+\u0026amp;theme=dbfc61bcb83f296a5fe6daa7\u0026amp;signature=e304e17295cfb1c38ae63224c0243750f10d45a2b12e3f76609409e4b70558fa\">\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 - AI21 Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to Use MCP in AI21 Studio\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ai21-demo.mintlify.app/_mintlify/api/og/v2?division=Tools\u0026amp;title=+MCP\u0026amp;description=How+to+Use+MCP+in+AI21+Studio+\u0026amp;theme=dbfc61bcb83f296a5fe6daa7\u0026amp;signature=e304e17295cfb1c38ae63224c0243750f10d45a2b12e3f76609409e4b70558fa\">\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=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AI21 Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F098B5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ai21.com/docs/mcp-studio-guide\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/mcp-studio-guide.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ai21.com/#organization\",\"name\":\"AI21 Labs\",\"url\":\"https://docs.ai21.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_black.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=ff9840432b0d2e9ebcbadc46ee2b5b8f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ai21.com#website\",\"name\":\"AI21 Labs\",\"url\":\"https://docs.ai21.com\",\"publisher\":{\"@id\":\"https://docs.ai21.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ai21.com/docs/mcp-studio-guide#webpage\",\"url\":\"https://docs.ai21.com/docs/mcp-studio-guide\",\"name\":\" MCP\",\"description\":\"How to Use MCP in AI21 Studio\",\"dateModified\":\"2025-11-06T14:04:15.178Z\",\"isPartOf\":{\"@id\":\"https://docs.ai21.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ai21.com/docs/mcp-studio-guide#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ai21.com/docs/mcp-studio-guide#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI21 Studio\",\"item\":\"https://docs.ai21.com/docs/file-library-studio\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tools\",\"item\":\"https://docs.ai21.com/docs/file-search-studio-guide\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\" MCP\",\"item\":\"https://docs.ai21.com/docs/mcp-studio-guide\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ai21.com/docs/mcp-studio-guide#article\",\"headline\":\" MCP\",\"name\":\" MCP\",\"description\":\"How to Use MCP in AI21 Studio\",\"url\":\"https://docs.ai21.com/docs/mcp-studio-guide\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ai21.com/docs/mcp-studio-guide#webpage\"},\"dateModified\":\"2025-11-06T14:04:15.178Z\",\"publisher\":{\"@id\":\"https://docs.ai21.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ai21.com#website\"}}]}\u003c/script>","siteName":"AI21 Labs","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Overview","href":"/docs/overview"},{"title":"Create an API key","href":"/docs/create-api-key"},{"title":"SDK","href":"/docs/sdk"}]},{"group":"AI21 Maestro","pages":[{"title":"Overview","href":"/docs/maestro-overview"},{"group":"Tools","pages":[{"group":"RAG Tools","pages":[{"title":"RAG Overview","href":"/docs/maestro-rag-overview"},{"title":"RAG Quick Start","href":"/docs/maestro-rag-quickstart"},{"title":"RAG Use Cases","href":"/docs/maestro-rag-use-cases"}]},{"group":"User Provided Tools","pages":[{"title":"Overview","href":"/docs/user-provided-tools-overview"},{"title":"MCP Overview","href":"/docs/user-provided-tools-mcp"},{"title":"MCP Server Setup","href":"/docs/mcp-server-setup-guide"},{"title":"HTTP tools","href":"/docs/user-provided-tools-http"}]}]},{"group":"Validated Output","pages":[{"title":"Quick Start","href":"/docs/instruction-following-module"},{"title":"Walkthrough Guide ","href":"/docs/walkthrough-guide"},{"title":"Use Cases","href":"/docs/use-cases-validated-output"}]}]},{"group":"Foundation Models","pages":[{"title":"Jamba","href":"/docs/jamba-foundation-models"},{"title":"Model Availability by Platform","href":"/docs/model-availability-across-platforms"},{"title":"Prompt Engineering for Jamba Models","href":"/docs/prompt-engineering"},{"title":"Function Calling","href":"/docs/function-calling"},{"title":"Batch API","href":"/docs/jamba-batch-api"}]},{"group":"Private AI","pages":[{"title":"vLLM","href":"/docs/vllm"},{"title":"Cloud Platform Deployment","href":"/docs/cloud-platform-deployment"},{"title":"Troubleshooting \u0026 Performance Optimization","href":"/docs/troubleshooting-performance"},{"title":"Local Inference","href":"/docs/local-inference"}]},{"group":"AI21 Studio","pages":[{"title":"File Library","href":"/docs/file-library-studio"},{"title":"Data Connectors","href":"/docs/using-data-connectors"},{"group":"Tools","pages":[{"title":"File Search","href":"/docs/file-search-studio-guide"},{"title":"Web Search","description":"How to Use Web Search in AI21 Studio ","href":"/docs/web-search-studio-guide"},{"title":" MCP","href":"/docs/mcp-studio-guide"},{"title":"HTTP Tools","description":"How to Use HTTP Tools in AI21 Studio ","href":"/docs/http-studio-guide"}]}]},{"group":"Model Preparation","pages":[{"title":"Fine-tuning","href":"/docs/fine-tuning"},{"title":"Quantization","href":"/docs/quantization"},{"title":"Tokenization","href":"/docs/tokenization"}]},{"group":"Usage","pages":[{"title":"Account","href":"/docs/managing-your-account"},{"title":"Pricing","href":"/docs/usage-cost"}]},{"group":"AI Ethics \u0026 Data Transperancy","pages":[{"title":"Responsible Use","href":"/docs/responsible-use-1"},{"title":"Safety Research","href":"/docs/safety-research-1"},{"title":"Training Data","href":"/docs/training-data-1"}]},{"group":"Additional Resources","pages":[{"title":"Status","href":"/status"},{"title":"Community","url":"https://discord.com/invite/cKzg6GEAyB","href":"/community"},{"title":"Blog","url":"https://www.ai21.com/blog/","href":"/blog"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/introduction"}]},{"tab":"Updates","pages":[{"title":"Updates","href":"/changelog"}]}]},"basePath":"","title":" MCP - AI21 Labs","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}