From 9939cfc6700a03d00a4e510e6e089f3f29db3663 Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 4 Mar 2025 07:05:49 +0900 Subject: [PATCH] docs: Update MCP docs for connecting to Cursor (#33952) * docs: Update MCP docs for connecting to Cursor * minor fix --- .../content/guides/getting-started/mcp.mdx | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/apps/docs/content/guides/getting-started/mcp.mdx b/apps/docs/content/guides/getting-started/mcp.mdx index 49691b960a7..713d10e6df4 100644 --- a/apps/docs/content/guides/getting-started/mcp.mdx +++ b/apps/docs/content/guides/getting-started/mcp.mdx @@ -67,17 +67,25 @@ Below are some ways to connect to the Postgres MCP server using popular AI tools #### Cursor -1. Open Cursor and navigate to **Cursor Settings**. -1. Under the **Features** tab, tap **+ Add new MCP server** under the **MCP Servers** section. -1. Enter the following details: +1. Open Cursor and open `.cursor/mcp.json` file. Create the file if it doesn't exist. +1. Add the following configuration: - - **Name**: Supabase (or your project name) - - **Type**: command - - **Command**: `npx -y @modelcontextprotocol/server-postgres ` + ```json + { + "mcpServers": { + "supabase": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-postgres", ""] + } + } + } + ``` - (replace `` with your connection string) + Replace `` with your connection string. -1. You should see a green active status after the server is successfully connected. +1. Save the configuration file. + +1. Open Cursor and navigate to **Settings/MCP**. You should see a green active status after the server is successfully connected. #### Claude desktop