You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-86Lines changed: 8 additions & 86 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,11 @@ Before setting up the MCP server, we recommend you read our [security best pract
15
15
16
16
### 2. Configure your MCP client
17
17
18
-
The Supabase MCP server is hosted at `https://mcp.supabase.com/mcp` and supports the Streamable HTTP transport with Dynamic Client Registration OAuth 2.1 authentication.
18
+
To configure the Supabase MCP server on your client, visit our [setup documentation](https://supabase.com/docs/guides/getting-started/mcp#step-2-configure-your-ai-tool). You can also generate a custom MCP URL for your project by visiting the [MCP connection tab](https://supabase.com/dashboard/project/_?showConnect=true&connectTab=mcp) in the Supabase dashboard.
19
19
20
-
If you're running Supabase locally with [Supabase CLI](https://supabase.com/docs/guides/local-development/cli/getting-started), you can access the MCP server at `http://localhost:54321/mcp`. For [self-hosted Supabase](https://supabase.com/docs/guides/self-hosting/docker), check the [Enabling MCP server](https://supabase.com/docs/guides/self-hosting/enable-mcp) page. Currently, the MCP Server in CLI and self-hosted environments offer a limited subset of tools and no OAuth 2.1.
20
+
Your MCP client will automatically prompt you to log in to Supabase during setup. Be sure to choose the organization that contains the project you wish to work with.
21
21
22
-
The easiest way to connect your MCP client (such as Cursor) to your project is clicking [Connect](https://supabase.com/dashboard/project/_?showConnect=true&tab=mcp) in the Supabase dashboard and navigating to the MCP tab. There you can choose options such as [feature groups](#feature-groups), and generate one-click installers or config entries for popular clients.
23
-
24
-
Most MCP clients store the configuration as JSON in the following format:
22
+
Most MCP clients require the following information:
25
23
26
24
```json
27
25
{
@@ -34,91 +32,15 @@ Most MCP clients store the configuration as JSON in the following format:
34
32
}
35
33
```
36
34
37
-
Your MCP client will automatically prompt you to log in to Supabase during setup. This will open a browser window where you can log in to your Supabase account and grant access to the MCP client. Be sure to choose the organization that contains the project you wish to work with. In the future, we'll offer more fine grain control over these permissions.
38
-
39
-
For more information, visit the [Supabase MCP docs](https://supabase.com/docs/guides/getting-started/mcp).
40
-
41
-
You can also manually install it on your favorite client.
42
-
43
-
<details>
44
-
<summary>Cursor</summary>
45
-
46
-
#### Click the button to install:
47
-
48
-
[<imgsrc="https://cursor.com/deeplink/mcp-install-dark.svg"alt="Install in Cursor">](https://cursor.com/en/install-mcp?name=Supabase&config=eyJ1cmwiOiJodHRwczovL21jcC5zdXBhYmFzZS5jb20vbWNwIn0%3D)
49
-
50
-
#### Or install manually:
51
-
52
-
Go to `Cursor Settings` → `MCP` → `Add new MCP Server`. Name to your liking, use `type: http` and the following config:
53
-
54
-
```json
55
-
{
56
-
"mcpServers": {
57
-
"supabase": {
58
-
"type": "http",
59
-
"url": "https://mcp.supabase.com/mcp"
60
-
}
61
-
}
62
-
}
63
-
```
64
-
65
-
For more information, see the [Cursor MCP docs](https://docs.cursor.com/context/mcp).
66
-
67
-
</details>
68
-
69
-
<details>
70
-
<summary>VS Code</summary>
71
-
72
-
#### Click the button to install:
73
-
74
-
[<imgsrc="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF"alt="Install in VS Code">](https://vscode.dev/redirect?url=vscode:mcp/install%3F%7B%22name%22%3A%22Supabase%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.supabase.com%2Fmcp%22%7D)[<imgalt="Install in VS Code Insiders"src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">](https://insiders.vscode.dev/redirect?url=vscode-insiders:mcp/install%3F%7B%22name%22%3A%22Supabase%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.supabase.com%2Fmcp%22%7D)
75
-
76
-
#### Or install manually:
35
+
If you don't see your MCP client listed in our documentation, check your client's MCP documentation and copy the above MCP information into their expected format (json, yaml, etc).
77
36
78
-
Open (or create) your `mcp.json` file and add:
79
-
80
-
```json
81
-
{
82
-
"servers": {
83
-
"supabase": {
84
-
"type": "http",
85
-
"url": "https://mcp.supabase.com/mcp"
86
-
}
87
-
}
88
-
}
89
-
```
90
-
91
-
For more information, see the [VS Code MCP docs](https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_add-an-mcp-server).
Open (or create) your `~/.factory/mcp.json` file and add:
107
-
108
-
```json
109
-
{
110
-
"supabase": {
111
-
"type": "http",
112
-
"url": "https://mcp.supabase.com/mcp"
113
-
}
114
-
}
115
-
```
37
+
#### CLI
116
38
117
-
After adding the server, restart Factory or type `/mcp` within droid to complete the OAuth authentication flow.
39
+
If you're running Supabase locally with [Supabase CLI](https://supabase.com/docs/guides/local-development/cli/getting-started), you can access the MCP server at `http://localhost:54321/mcp`. Currently, the MCP Server in CLI environments offers a limited subset of tools and no OAuth 2.1.
118
40
119
-
For more information, see the [Factory MCP docs](https://docs.factory.ai/cli/configuration/mcp.md).
41
+
#### Self-hosted
120
42
121
-
</details>
43
+
For [self-hosted Supabase](https://supabase.com/docs/guides/self-hosting/docker), check the [Enabling MCP server](https://supabase.com/docs/guides/self-hosting/enable-mcp) page. Currently, the MCP Server in self-hosted environments offers a limited subset of tools and no OAuth 2.1.
0 commit comments