Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Docs: Adds MCP instructions for Claude code (#34452)

Greg Richardson077682171d1d
diff --git a/apps/docs/content/guides/getting-started/mcp.mdx b/apps/docs/content/guides/getting-started/mcp.mdx
index 78b2d4f6566..faa01ad13e3 100644
--- a/apps/docs/content/guides/getting-started/mcp.mdx
+++ b/apps/docs/content/guides/getting-started/mcp.mdx
@@ -13,6 +13,7 @@ There are a number of popular AI tools that support MCP, including:
- [Windsurf](https://docs.codeium.com/windsurf) (Codium)
- [Cline](https://github.com/cline/cline) (VS Code extension)
- [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.
@@ -99,6 +100,17 @@ MCP compatible tools can connect to Supabase using the [Postgres MCP server](htt
1. From the new chat screen, you should see a hammer (MCP) icon appear with the new MCP server available.
+#### Claude code
+
+1. Create a `.mcp.json` file in your project root if it doesn't exist.
+1. Add the following configuration:
+
+ <$Partial path="mcp_config.mdx" variables={{ "app": "Claude code" }} />
+
+1. Save the configuration file.
+
+1. Restart Claude code to apply the new configuration.
+
## 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.