The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update mcp docs local scope (#36345)
Lakshan Pererade3afc539438
diff --git a/apps/docs/content/guides/getting-started/mcp.mdx b/apps/docs/content/guides/getting-started/mcp.mdxindex c9f4e45f947..fa878830241 100644--- a/apps/docs/content/guides/getting-started/mcp.mdx+++ b/apps/docs/content/guides/getting-started/mcp.mdx@@ -95,6 +95,10 @@ For more info on using MCP in VS Code, see the [Copilot documentation](https://c### Claude code+You can add the Supabase MCP server to Claude Code in two ways:++#### Option 1: Project-scoped server (via .mcp.json file)+1. Create a `.mcp.json` file in your project root if it doesn't exist.1. Add the following configuration:@@ -104,6 +108,18 @@ For more info on using MCP in VS Code, see the [Copilot documentation](https://c1. Restart [Claude code](https://claude.ai/code) to apply the new configuration.+#### Option 2: Locally-scoped server (via CLI command)++You can also add the Supabase MCP server as a locally-scoped server, which will only be available to you in the current project:++1. Run the following command in your terminal:++ ```bash+ claude mcp add supabase -s local -e SUPABASE_ACCESS_TOKEN=your_token_here npx -y @supabase/mcp-server-supabase@latest+ ```++Locally-scoped servers take precedence over project-scoped servers with the same name and are stored in your project-specific user settings.+### Next stepsYour AI tool is now connected to Supabase using MCP. Try asking your AI assistant to create a new project, create a table, or fetch project config.