The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: MCP queries are read-only (#34482)
James Rodewig727e34e3b178
diff --git a/apps/docs/content/guides/getting-started/mcp.mdx b/apps/docs/content/guides/getting-started/mcp.mdxindex faa01ad13e3..9d9987297ac 100644--- a/apps/docs/content/guides/getting-started/mcp.mdx+++ b/apps/docs/content/guides/getting-started/mcp.mdx@@ -5,9 +5,9 @@ description: 'Connect AI tools to Supabase using MCP'sidebar_label: 'Model context protocol (MCP)'----The [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) is a standard for connecting Large Language Models (LLMs) to external services. This guide will walk you through how to connect AI tools to Supabase using MCP.+The [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) is a standard for connecting Large Language Models (LLMs) to external services.-There are a number of popular AI tools that support MCP, including:+This guide covers how to connect Supabase to the following AI tools using MCP:- [Cursor](https://www.cursor.com/)- [Windsurf](https://docs.codeium.com/windsurf) (Codium)@@ -15,11 +15,11 @@ There are a number of popular AI tools that support MCP, including:- [Claude desktop](https://claude.ai/download)- [Claude code](https://claude.ai/code)-Connecting these tools to Supabase will allow you to query your database and perform other SQL operations using natural language commands.+Once connected, you can use natural language commands to run read-only database queries in the AI tool.## Connect to Supabase using MCP-We will use the [Postgres MCP server](https://github.com/modelcontextprotocol/servers/tree/main/src/postgres) to connect AI tools to Supabase.+Supabase uses the [Postgres MCP server](https://github.com/modelcontextprotocol/servers/tree/main/src/postgres) to provide MCP access to your database. The MCP server runs all queries as read-only transactions.### Step 1: Find your database connection string@@ -113,4 +113,4 @@ MCP compatible tools can connect to Supabase using the [Postgres MCP server](htt## Next steps-You are now connected to Supabase using MCP! You can now interact with your database using natural language commands. Try asking your AI tool to query your database, create a new table, or perform other SQL operations.+Your AI tool is now connected to Supabase using MCP. Try asking the AI tool to query your database using natural language commands.