The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.
On by default
specpilot serve serves the MCP endpoint. The terminal prints three lines for it:
MCP endpoint: http://127.0.0.1:4321/mcpClaude Code (.mcp.json): {"mcpServers":{"specpilot-local":{...}}}Other IDEs: Connect Your AI IDE on the page gives each one's file.
Turn it off
specpilot serve --no-mcp
Home then has no Connect Your AI IDE card, and the Setup view says the server was started with --no-mcp. Restart with specpilot serve to turn it back on. --mcp is still accepted and changes nothing.
Read only
specpilot serve --read-only
Your agent gets four tools: specpilot_list_projects, specpilot_read_spec, specpilot_list_tasks and specpilot_validate_specs. It can’t write tasks, regenerate commands or set up a folder. The terminal line says (read tools only).
Keep the token
serve makes a new token every time it starts, so your IDE config stops working after a restart. To keep the same token, set SPECPILOT_MCP_TOKEN in the environment of both serve and your IDE:
The token must be at least 32 characters, with no spaces. If it isn’t, serve stops with an error. With the variable set, the config reads the variable instead of holding the token.
Treat the token like a password. Keep config files that hold it out of git.
Another port
--port <number> moves the endpoint too. Copy the config again after you change it.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"SpecPilot","colors":{"primary":"#0058be","light":"#79b8ff","dark":"#0058be"},"logo":{"light":"https://mintcdn.com/spec-pilot-dev/gQaXlIkcYuOrPnjr/logo/light.svg?fit=max\u0026auto=format\u0026n=gQaXlIkcYuOrPnjr\u0026q=85\u0026s=984742141412c99fd8ed5bae85334e62","dark":"https://mintcdn.com/spec-pilot-dev/gQaXlIkcYuOrPnjr/logo/dark.svg?fit=max\u0026auto=format\u0026n=gQaXlIkcYuOrPnjr\u0026q=85\u0026s=1d7b589ebfea4b2f51a517f179ac5ba5","href":"https://specpilot.dev"},"favicon":"https://mintcdn.com/spec-pilot-dev/gQaXlIkcYuOrPnjr/favicon.svg?fit=max\u0026auto=format\u0026n=gQaXlIkcYuOrPnjr\u0026q=85\u0026s=62f227db7b02ebe96f21fc3ffb1797dc","appearance":{"default":"system"},"background":{"color":{"light":"#f9f9ff","dark":"#0d1117"}},"seo":{"metatags":{"canonical":"https://docs.specpilot.dev"}},"fonts":{"heading":{"family":"Hanken Grotesk","weight":700},"body":{"family":"Inter","weight":400}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"spec-pilot-dev","hasAudioNarration":false,"actualSubdomain":"spec-pilot-dev","customDomains":["docs.specpilot.dev"],"gitSource":{"type":"github","owner":"girishr","repo":"specpilot-docs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b0029b1b8925b5c4ffd36e0"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0d8cb04ed3d136b79a5658","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Spec files","count":13},{"language":"default","tag":"The App","count":10},{"language":"default","tag":"CLI reference","count":10},{"language":"default","tag":"Help","count":7},{"language":"default","tag":"Supported AI tools","count":6},{"language":"default","tag":"Core concepts","count":5},{"language":"default","tag":"Local MCP","count":5},{"language":"default","tag":"Introduction","count":2},{"language":"default","tag":"Other ways in","count":2},{"language":"default","tag":"Slash commands","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"mcp/on-off","slug":"/mcp/on-off","pageMetadata":{"title":"Turn it on or off","description":"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.","href":"/mcp/on-off"},"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: \"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.\"\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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`on-by-default`,children:`On by default`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`specpilot serve`}),` serves the MCP endpoint. The terminal prints three lines for it:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`MCP endpoint: http://127.0.0.1:4321/mcp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Claude Code (.mcp.json): {\"mcpServers\":{\"specpilot-local\":{...}}}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Other IDEs: Connect Your AI IDE on the page gives each one's file.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`turn-it-off`,children:`Turn it off`}),`\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:`specpilot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` serve`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --no-mcp`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Home then has no Connect Your AI IDE card, and the Setup view says the server was started with `,_jsx(_components.code,{children:`--no-mcp`}),`. Restart with `,_jsx(_components.code,{children:`specpilot serve`}),` to turn it back on. `,_jsx(_components.code,{children:`--mcp`}),` is still accepted and changes nothing.`]}),`\n`,_jsx(Heading,{level:`2`,id:`read-only`,children:`Read only`}),`\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:`specpilot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` serve`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --read-only`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Your agent gets four tools: `,_jsx(_components.code,{children:`specpilot_list_projects`}),`, `,_jsx(_components.code,{children:`specpilot_read_spec`}),`, `,_jsx(_components.code,{children:`specpilot_list_tasks`}),` and `,_jsx(_components.code,{children:`specpilot_validate_specs`}),`. It can’t write tasks, regenerate commands or set up a folder. The terminal line says `,_jsx(_components.code,{children:`(read tools only)`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`keep-the-token`,children:`Keep the token`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`serve`}),` makes a new token every time it starts, so your IDE config stops working after a restart. To keep the same token, set `,_jsx(_components.code,{children:`SPECPILOT_MCP_TOKEN`}),` in the environment of both `,_jsx(_components.code,{children:`serve`}),` and your IDE:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` SPECPILOT_MCP_TOKEN`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`openssl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rand `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`-hex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 32`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`specpilot`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` serve`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The token must be at least 32 characters, with no spaces. If it isn’t, `,_jsx(_components.code,{children:`serve`}),` stops with an error. With the variable set, the config reads the variable instead of holding the token.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Treat the token like a password. Keep config files that hold it out of git.`})}),`\n`,_jsx(Heading,{level:`2`,id:`another-port`,children:`Another port`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--port \u003cnumber>`}),` moves the endpoint too. Copy the config again after you change it.`]})]})}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":"Turn it on or off","description":"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.","href":"/mcp/on-off"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"On by default","slug":"on-by-default","depth":2,"children":[]},{"title":"Turn it off","slug":"turn-it-off","depth":2,"children":[]},{"title":"Read only","slug":"read-only","depth":2,"children":[]},{"title":"Keep the token","slug":"keep-the-token","depth":2,"children":[]},{"title":"Another port","slug":"another-port","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"spec-pilot-dev","siteName":"SpecPilot","title":"Turn it on or off - SpecPilot","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-21T14:59:27.042Z","originalFileLocation":"mcp/on-off.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=\"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SpecPilot\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/spec-pilot-dev/YldEnMLhkf3UWpAT/_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/spec-pilot-dev/YldEnMLhkf3UWpAT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/spec-pilot-dev/YldEnMLhkf3UWpAT/_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/spec-pilot-dev/YldEnMLhkf3UWpAT/_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/spec-pilot-dev/YldEnMLhkf3UWpAT/_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/spec-pilot-dev/YldEnMLhkf3UWpAT/_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/spec-pilot-dev/YldEnMLhkf3UWpAT/_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/spec-pilot-dev/YldEnMLhkf3UWpAT/_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/spec-pilot-dev/YldEnMLhkf3UWpAT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Turn it on or off - SpecPilot\">\u003cmeta data-mint-head property=\"og:description\" content=\"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SpecPilot\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.specpilot.dev/mcp/on-off\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://spec-pilot-dev.mintlify.site/_mintlify/api/og/v2?division=Local+MCP\u0026amp;title=Turn+it+on+or+off\u0026amp;description=The+MCP+endpoint+is+on+whenever+the+App+runs.+Turn+it+off%2C+limit+it+to+reading%2C+or+keep+its+token+across+restarts.\u0026amp;theme=c05a3c44fda37620c41faa28\u0026amp;signature=2db568e561214957eb6ded4ab2ee595521e7bd566f220262a3a80422528bbaeb\">\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=\"Turn it on or off - SpecPilot\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://spec-pilot-dev.mintlify.site/_mintlify/api/og/v2?division=Local+MCP\u0026amp;title=Turn+it+on+or+off\u0026amp;description=The+MCP+endpoint+is+on+whenever+the+App+runs.+Turn+it+off%2C+limit+it+to+reading%2C+or+keep+its+token+across+restarts.\u0026amp;theme=c05a3c44fda37620c41faa28\u0026amp;signature=2db568e561214957eb6ded4ab2ee595521e7bd566f220262a3a80422528bbaeb\">\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/spec-pilot-dev/YldEnMLhkf3UWpAT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SpecPilot\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0058be\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.specpilot.dev/mcp/on-off\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/mcp/on-off.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.specpilot.dev/#organization\",\"name\":\"SpecPilot\",\"url\":\"https://docs.specpilot.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/spec-pilot-dev/gQaXlIkcYuOrPnjr/logo/light.svg?fit=max\u0026auto=format\u0026n=gQaXlIkcYuOrPnjr\u0026q=85\u0026s=984742141412c99fd8ed5bae85334e62\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.specpilot.dev#website\",\"name\":\"SpecPilot\",\"url\":\"https://docs.specpilot.dev\",\"publisher\":{\"@id\":\"https://docs.specpilot.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.specpilot.dev/mcp/on-off#webpage\",\"url\":\"https://docs.specpilot.dev/mcp/on-off\",\"name\":\"Turn it on or off\",\"description\":\"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.\",\"dateModified\":\"2026-11-21T14:59:27.042Z\",\"isPartOf\":{\"@id\":\"https://docs.specpilot.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.specpilot.dev/mcp/on-off#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.specpilot.dev/mcp/on-off#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Local MCP\",\"item\":\"https://docs.specpilot.dev/mcp/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Turn it on or off\",\"item\":\"https://docs.specpilot.dev/mcp/on-off\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.specpilot.dev/mcp/on-off#article\",\"headline\":\"Turn it on or off\",\"name\":\"Turn it on or off\",\"description\":\"The MCP endpoint is on whenever the App runs. Turn it off, limit it to reading, or keep its token across restarts.\",\"url\":\"https://docs.specpilot.dev/mcp/on-off\",\"mainEntityOfPage\":{\"@id\":\"https://docs.specpilot.dev/mcp/on-off#webpage\"},\"dateModified\":\"2026-11-21T14:59:27.042Z\",\"publisher\":{\"@id\":\"https://docs.specpilot.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.specpilot.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SpecPilot\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SpecPilot\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/mcp/on-off.md","siteName":"SpecPilot","nav":{"global":null,"groups":[{"group":"Introduction","pages":[{"title":"Introduction","href":"/index"},{"title":"Get started","href":"/get-started"}]},{"group":"Core concepts","pages":[{"title":"The .specs folder","href":"/concepts/specs-folder"},{"title":"Tasks and lanes","href":"/concepts/tasks-and-lanes"},{"title":"Review and Spec Reports","href":"/concepts/review"},{"title":"Commands and skills","href":"/concepts/commands-and-skills"},{"title":"The rules","href":"/concepts/rules"}]},{"group":"The App","pages":[{"title":"Home and projects","href":"/app/home"},{"title":"Overview","href":"/app/overview"},{"title":"The board","href":"/app/board"},{"title":"Task details","href":"/app/task-details"},{"title":"New task","href":"/app/new-task"},{"title":"Clone a repository","href":"/app/clone"},{"title":"Open in VS Code","href":"/app/open-in-vs-code"},{"title":"Spec views","href":"/app/spec-views"},{"title":"Regenerate commands and skills","href":"/app/regenerate"},{"title":"Settings","href":"/app/settings"}]},{"group":"Local MCP","pages":[{"title":"Local MCP overview","sidebarTitle":"Overview","description":"The SpecPilot App serves an MCP endpoint, so your agent can read your specs and move tasks on the same board you see.","href":"/mcp/overview"},{"title":"Turn it on or off","href":"/mcp/on-off"},{"title":"Connect your AI IDE","description":"Add SpecPilot's MCP server to Claude Code, Cursor, VS Code, Windsurf, Codex or Antigravity.","href":"/mcp/connect"},{"title":"Set up specs with your agent","href":"/mcp/setup"},{"title":"Tools","href":"/mcp/tools"}]},{"group":"Supported AI tools","pages":[{"title":"Claude Code","href":"/ai-tools/claude-code"},{"title":"Codex","href":"/ai-tools/codex"},{"title":"GitHub Copilot","href":"/ai-tools/copilot"},{"title":"Cursor","href":"/ai-tools/cursor"},{"title":"Windsurf","href":"/ai-tools/windsurf"},{"title":"Antigravity","href":"/ai-tools/antigravity"}]},{"group":"Slash commands","pages":[{"title":"Slash commands","href":"/slash-commands"}]},{"group":"Spec files","pages":[{"title":"README.md","href":"/reference/spec-files/readme"},{"title":"project.yaml","href":"/reference/spec-files/project-yaml"},{"title":"requirements.md","href":"/reference/spec-files/requirements"},{"title":"architecture.md","href":"/reference/spec-files/architecture"},{"title":"api.yaml","href":"/reference/spec-files/api-yaml"},{"title":"tasks.md","href":"/reference/spec-files/tasks"},{"title":"roadmap.md","href":"/reference/spec-files/roadmap"},{"title":"context.md","href":"/reference/spec-files/context"},{"title":"prompts.md","href":"/reference/spec-files/prompts"},{"title":"onboarding.md","href":"/reference/spec-files/onboarding"},{"title":"tests.md","href":"/reference/spec-files/tests"},{"title":"threat-model.md","href":"/reference/spec-files/threat-model"},{"title":"security-decisions.md","href":"/reference/spec-files/security-decisions"}]},{"group":"CLI reference","pages":[{"title":"specpilot serve","href":"/reference/cli/serve"},{"title":"specpilot init","href":"/reference/cli/init"},{"title":"specpilot add-specs","href":"/reference/cli/add-specs"},{"title":"specpilot validate","href":"/reference/cli/validate"},{"title":"specpilot refine","href":"/reference/cli/refine"},{"title":"specpilot archive","href":"/reference/cli/archive"},{"title":"specpilot compact","href":"/reference/cli/compact"},{"title":"specpilot backfill","href":"/reference/cli/backfill"},{"title":"specpilot migrate","href":"/reference/cli/migrate"},{"title":"specpilot list","href":"/reference/cli/list"}]},{"group":"Other ways in","pages":[{"title":"SpecPilot web app","href":"/other/web-app"},{"title":"Remote MCP","href":"/other/remote-mcp"}]},{"group":"Help","pages":[{"title":"Troubleshooting","href":"/help/troubleshooting"},{"title":"FAQ","href":"/help/faq"},{"title":"Upgrading","href":"/help/upgrading"},{"title":"Check specs in CI","href":"/help/ci"},{"title":"Privacy and offline use","href":"/help/privacy"},{"title":"Changelog","href":"/help/changelog"},{"title":"Contributing","href":"/help/contributing"}]}]},"basePath":"","title":"Turn it on or off - SpecPilot","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}