MCP gives an AI assistant tools and context for Swig. Use Docs MCP to find
current integration guidance, or run Wallet MCP locally when the assistant needs
to inspect wallets and prepare operations.
Examples
Connect Docs MCP
Add the hosted documentation server to your assistant. For Claude Code:
claude mcp add --transport http swig-docs https://build.onswig.com/mcp
Build Wallet MCP
Install Bun and Node.js, then build the wallet tool server.
git clone https://github.com/anagrambuild/swig-ts.gitcd swig-tsbun installbun run build
Connect Wallet MCP
Add this entry to your MCP client, using the absolute path to the built checkout.
The local entrypoint path is incorrect or the package has not been built.
Tools absent
The client has not reconnected after the server configuration changed.
RPC or wallet query fails
The network/RPC setting is missing or does not match the wallet.
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Swig","colors":{"primary":"#000","light":"#fff","dark":"#000"},"logo":{"light":"https://mintcdn.com/swig/8Hu9swmb2xUpt1pY/swiglogodark.png?fit=max\u0026auto=format\u0026n=8Hu9swmb2xUpt1pY\u0026q=85\u0026s=0876c3088948017bf51107a48ad37722","dark":"https://mintcdn.com/swig/8Hu9swmb2xUpt1pY/swiglogolight.png?fit=max\u0026auto=format\u0026n=8Hu9swmb2xUpt1pY\u0026q=85\u0026s=bc77ee7c382cb96413a6d9b8019c5b89"},"favicon":"https://mintcdn.com/swig/8Hu9swmb2xUpt1pY/favicon.png?fit=max\u0026auto=format\u0026n=8Hu9swmb2xUpt1pY\u0026q=85\u0026s=69934f547d31cc97d9e8b1767edfb009","footer":{"socials":{"github":"https://github.com/anagrambuild/swig-wallet"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"swig","hasAudioNarration":false,"actualSubdomain":"swig","customDomains":["build.onswig.com"],"gitSource":{"type":"github","owner":"anagrambuild","repo":"swig-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afe3dcfd6d7cf32a9dac33a","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Developer SDK","count":39},{"language":"default","tag":"Solana Protocol","count":19},{"language":"default","tag":"Wallet","count":12},{"language":"default","tag":"Finance","count":10},{"language":"default","tag":"Getting started","count":8},{"language":"default","tag":"EVM Protocol","count":8},{"language":"default","tag":"Guides","count":8},{"language":"default","tag":"Query","count":8},{"language":"default","tag":"Identity","count":7},{"language":"default","tag":"Yield","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":true},"customCss":[{"filePath":"sdk-navigation.css","content":":is(#sidebar-content,#mobile-nav) a:is([href=\"/solana\"],[href=\"/evm\"],[href=\"/idp-sdk\"])>div>div:has(svg){display:none}"},{"filePath":"diagrams.css","content":"#content .code-block:has(pre[language=\"text\"]){--code-padding-right: 0px;--fade-width: 0px}pre[language=\"text\"]>code{padding-top:1.75rem}"}]}
{"page":{"pagePath":"build-with-ai","slug":"/build-with-ai","pageMetadata":{"title":"Install MCP","sidebarTitle":"Install MCP","description":null,"href":"/build-with-ai"},"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`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`introduction`,children:`Introduction`}),`\n`,_jsx(_components.p,{children:`MCP gives an AI assistant tools and context for Swig. Use Docs MCP to find\ncurrent integration guidance, or run Wallet MCP locally when the assistant needs\nto inspect wallets and prepare operations.`}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`connect-docs-mcp`,children:`Connect Docs MCP`}),`\n`,_jsx(_components.p,{children:`Add the hosted documentation server to your assistant. For Claude Code:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --transport`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` swig-docs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://build.onswig.com/mcp`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`build-wallet-mcp`,children:`Build Wallet MCP`}),`\n`,_jsx(_components.p,{children:`Install Bun and Node.js, then build the wallet tool server.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/anagrambuild/swig-ts.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` swig-ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bun`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bun`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` build`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`connect-wallet-mcp`,children:`Connect Wallet MCP`}),`\n`,_jsx(_components.p,{children:`Add this entry to your MCP client, using the absolute path to the built checkout.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mcpServers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"swig-wallet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"node\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"args\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/absolute/path/to/swig-ts/packages/mcp-server/dist/index.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`verify-the-connection`,children:`Verify the connection`}),`\n`,_jsx(_components.p,{children:`Open the assistant’s tools list, then ask it to locate the wallet-creation guide.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Find the Developer SDK wallet-creation guide.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Show the inputs and supported signing options.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`input`,children:`Input`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Server`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Input`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Docs MCP`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Remote HTTP URL `,_jsx(_components.code,{children:`https://build.onswig.com/mcp`}),`; no API key.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Wallet MCP`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Local built entrypoint and the intended network’s RPC configuration. Start with `,_jsx(_components.a,{href:`/tutorials/mcp`,children:`Wallet MCP setup`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Wallet authority`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Grant the agent only the `,_jsx(_components.a,{href:`/developer-sdk/permissions`,children:`permissions`}),` needed for its task; review prepared actions before signing.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`output`,children:`Output`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Connection`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Expected result`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Docs MCP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Documentation search tools are available in the assistant.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Wallet MCP`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`configure_rpc`}),` and `,_jsx(_components.code,{children:`fetch_swig_wallet`}),` appear; configure the network before wallet calls.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Text-only integration`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.a,{href:`https://build.onswig.com/llms.txt`,children:`llms.txt`}),` lists pages; `,_jsx(_components.a,{href:`https://build.onswig.com/llms-full.txt`,children:`llms-full.txt`}),` contains the combined documentation.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Error`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Server not found`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The local entrypoint path is incorrect or the package has not been built.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Tools absent`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The client has not reconnected after the server configuration changed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`RPC or wallet query fails`}),_jsx(_components.td,{style:{textAlign:`left`},children:`The network/RPC setting is missing or does not match the wallet.`})]})]})]})]})}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":"Install MCP","sidebarTitle":"Install MCP","description":null,"href":"/build-with-ai"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Introduction","slug":"introduction","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Connect Docs MCP","slug":"connect-docs-mcp","depth":3,"children":[]},{"title":"Build Wallet MCP","slug":"build-wallet-mcp","depth":3,"children":[]},{"title":"Connect Wallet MCP","slug":"connect-wallet-mcp","depth":3,"children":[]},{"title":"Verify the connection","slug":"verify-the-connection","depth":3,"children":[]}]},{"title":"Input","slug":"input","depth":2,"children":[]},{"title":"Output","slug":"output","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/swig/ff049e9e0c34eda0/sdk-navigation.js"],"subdomain":"swig","siteName":"Swig","title":"Install MCP - Swig","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T21:20:38.681Z","originalFileLocation":"build-with-ai.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=\"application-name\" content=\"Swig\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/swig/He3fxxR-xFhxux8v/_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/swig/He3fxxR-xFhxux8v/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/swig/He3fxxR-xFhxux8v/_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/swig/He3fxxR-xFhxux8v/_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/swig/He3fxxR-xFhxux8v/_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/swig/He3fxxR-xFhxux8v/_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/swig/He3fxxR-xFhxux8v/_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/swig/He3fxxR-xFhxux8v/_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/swig/He3fxxR-xFhxux8v/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Install MCP - Swig\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Swig\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://build.onswig.com/build-with-ai\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://swig.mintlify.site/_mintlify/api/og/v2?division=AI\u0026amp;title=Install+MCP\u0026amp;theme=6850a5e24c9f50da04c84e8c\u0026amp;signature=0b785f28c07ad71cfe560ab3e210811882e9d8fb0b572a86e7956aa5e7fa6318\">\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=\"Install MCP - Swig\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://swig.mintlify.site/_mintlify/api/og/v2?division=AI\u0026amp;title=Install+MCP\u0026amp;theme=6850a5e24c9f50da04c84e8c\u0026amp;signature=0b785f28c07ad71cfe560ab3e210811882e9d8fb0b572a86e7956aa5e7fa6318\">\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/swig/He3fxxR-xFhxux8v/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Swig\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://build.onswig.com/build-with-ai\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/build-with-ai.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://build.onswig.com/#organization\",\"name\":\"Swig\",\"url\":\"https://build.onswig.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/swig/8Hu9swmb2xUpt1pY/swiglogodark.png?fit=max\u0026auto=format\u0026n=8Hu9swmb2xUpt1pY\u0026q=85\u0026s=0876c3088948017bf51107a48ad37722\"}},{\"@type\":\"WebSite\",\"@id\":\"https://build.onswig.com#website\",\"name\":\"Swig\",\"url\":\"https://build.onswig.com\",\"publisher\":{\"@id\":\"https://build.onswig.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://build.onswig.com/build-with-ai#webpage\",\"url\":\"https://build.onswig.com/build-with-ai\",\"name\":\"Install MCP\",\"dateModified\":\"2026-11-06T21:20:38.681Z\",\"isPartOf\":{\"@id\":\"https://build.onswig.com#website\"},\"breadcrumb\":{\"@id\":\"https://build.onswig.com/build-with-ai#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://build.onswig.com/build-with-ai#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Swig\",\"item\":\"https://build.onswig.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install MCP\",\"item\":\"https://build.onswig.com/build-with-ai\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://build.onswig.com/build-with-ai#article\",\"headline\":\"Install MCP\",\"name\":\"Install MCP\",\"url\":\"https://build.onswig.com/build-with-ai\",\"mainEntityOfPage\":{\"@id\":\"https://build.onswig.com/build-with-ai#webpage\"},\"dateModified\":\"2026-11-06T21:20:38.681Z\",\"publisher\":{\"@id\":\"https://build.onswig.com/#organization\"},\"isPartOf\":{\"@id\":\"https://build.onswig.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Swig\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Swig\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/build-with-ai.md","siteName":"Swig","nav":{"global":null,"products":[{"product":"Developer SDK","icon":"building","description":"Prepare, sign, and submit wallet operations through the hosted API.","groups":[{"group":"Getting started","pages":[{"title":"Developer SDK","sidebarTitle":"Developer SDK","href":""},{"title":"Client setup","sidebarTitle":"Client setup","href":"/developer-sdk/integration-paths"},{"title":"API key","sidebarTitle":"API key","href":"/examples/dev-portal/create-api-key"},{"title":"Pricing and quotas","sidebarTitle":"Pricing \u0026 quotas","href":"/query/index"}]},{"group":"Wallet","pages":[{"group":"Setup","pages":[{"title":"Create a wallet","sidebarTitle":"Create a wallet","href":"/developer-sdk/create-wallets"},{"title":"Rent claimer","sidebarTitle":"Rent claimer","href":"/developer-sdk/rent-claimers"}]},{"group":"Member","pages":[{"title":"Role","sidebarTitle":"Role","href":"/developer-sdk/add-roles-and-permissions"},{"title":"Signing","sidebarTitle":"Signing","href":"/developer-sdk/signers"},{"title":"Participant set","sidebarTitle":"Participant set","href":"/developer-sdk/participant-sets"},{"title":"Grant access","sidebarTitle":"Grant access","href":"/developer-sdk/grant-access"}]},{"group":"Policy","pages":[{"title":"Policy template","sidebarTitle":"Policy template","href":"/examples/dev-portal/create-policy"},{"title":"Fetch template","sidebarTitle":"Fetch template","href":"/examples/dev-portal/fetch-policy"},{"title":"Permission","sidebarTitle":"Permission","href":"/developer-sdk/permissions"},{"title":"Guardian recovery","sidebarTitle":"Guardian recovery","href":"/developer-sdk/use-cases/guardian-recovery"}]},{"title":"Authorization lock","sidebarTitle":"Authorization lock","href":"/developer-sdk/authorization-locks"},{"title":"Custom transaction","sidebarTitle":"Custom transaction","href":"/developer-sdk/custom-execution"}]},{"group":"Query","pages":[{"title":"Balance","sidebarTitle":"Balance","href":"/query/balances"},{"title":"Token activity","sidebarTitle":"Token activity","href":"/query/token-activity"},{"group":"DEX activity","pages":[{"title":"DEX transaction","sidebarTitle":"Transaction","href":"/query/dex"},{"title":"DEX position","sidebarTitle":"Position","href":"/query/dex-positions"}]},{"group":"Yield","pages":[{"title":"Yield option","sidebarTitle":"Option","href":"/query/yield-options"},{"title":"Yield position","sidebarTitle":"Position","href":"/query/yield"},{"title":"Yield reward","sidebarTitle":"Reward","href":"/query/yield-rewards"}]},{"title":"Ramp","sidebarTitle":"Ramp","href":"/query/ramp"}]},{"group":"Finance","pages":[{"title":"Finance","sidebarTitle":"Finance","href":"/developer-sdk/finance"},{"group":"Ramp","pages":[{"title":"Buy crypto","sidebarTitle":"Buy","href":"/developer-sdk/ramp"},{"title":"Sell crypto","sidebarTitle":"Sell","href":"/developer-sdk/ramp-sell"},{"title":"Sell transfer","sidebarTitle":"Sell transfer","href":"/developer-sdk/ramp-transfer"}]},{"title":"Transfer","sidebarTitle":"Transfer","href":"/developer-sdk/transfers-and-swaps"},{"title":"Swap","sidebarTitle":"Swap","href":"/developer-sdk/swaps-and-batches"},{"group":"Yield","pages":[{"title":"Yield deposit","sidebarTitle":"Deposit","href":"/developer-sdk/yield"},{"title":"Yield withdrawal","sidebarTitle":"Withdrawal","href":"/developer-sdk/yield-withdrawal"}]},{"title":"Paymaster","sidebarTitle":"Paymaster","href":"/developer-sdk/sponsor-and-submit"},{"title":"x402","sidebarTitle":"x402","description":null,"href":"/developer-sdk/x402"}]},{"group":"AI","pages":[{"title":"Install MCP","sidebarTitle":"Install MCP","href":"/build-with-ai"}]},{"group":"Additional resources","pages":[{"title":"Solana SDK","url":"/solana","description":null,"href":"/resources/solana"},{"title":"EVM SDK","url":"/evm","href":"/resources/evm"},{"title":"IdP SDK","url":"/idp-sdk","href":"/resources/idp"},{"title":"Choose an integration","sidebarTitle":"Choose an integration","href":"/products-and-sdks"}]}]},{"product":"Solana Protocol","icon":"layer-group","description":"Build Solana wallet transactions directly in TypeScript or Rust.","pages":[{"title":"Solana Protocol","href":"/solana"}]},{"product":"EVM Protocol","icon":"cube","description":"Build EVM wallet transactions directly in TypeScript, Rust, or Python.","pages":[{"title":"EVM Protocol","href":"/evm"}]},{"product":"Identity","icon":"fingerprint","description":"Add user sign-in and persist a Swig session in web and mobile apps.","pages":[{"title":"Identity","href":"/idp-sdk"}]}]},"basePath":"","title":"Install MCP - Swig","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}