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
- Linux: Uses `172.17.0.1` or the appropriate host address automatically
196
-
197
204
198
205
##### Connection URI
199
206
200
207
Replace `postgresql://...` with your [Postgres database connection URI](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS).
201
208
202
-
You can also use `psql`-style connection parameters:
203
-
204
-
```json
205
-
{
206
-
"mcpServers": {
207
-
"postgres": {
208
-
"command": "postgres-mcp",
209
-
"args": [
210
-
"-h", "localhost",
211
-
"-p", "5432",
212
-
"-U", "username",
213
-
"-d", "dbname",
214
-
"--access-mode=unrestricted"
215
-
]
216
-
}
217
-
}
218
-
}
219
-
```
220
209
221
210
##### Access Mode
222
211
@@ -314,7 +303,7 @@ Postgres Pro Tools:
314
303
315
304
**Postgres MCP Servers**
316
305
-[Query MCP](https://github.com/alexander-zuev/supabase-mcp-server). An MCP server for Supabase Postgres with a three-tier safety architecture and Supabase management API support.
317
-
-[PG-MCP](https://github.com/stuzero/pg-mcp). An MCP server for PostgreSQL with flexible connection options, explain plans, extension context, and more.
306
+
-[PG-MCP](https://github.com/stuzero/pg-mcp-server). An MCP server for PostgreSQL with flexible connection options, explain plans, extension context, and more.
318
307
-[Reference PostgreSQL MCP Server](https://github.com/modelcontextprotocol/servers/tree/main/src/postgres). A simple MCP Server implementation exposing schema information as MCP resources and executing read-only queries.
319
308
-[Supabase Postgres MCP Server](https://github.com/supabase-community/supabase-mcp). This MCP Server provides Supabase management features and is actively maintained by the Supabase community.
320
309
-[Nile MCP Server](https://github.com/niledatabase/nile-mcp-server). An MCP server providing access to the management API for the Nile's multi-tenant Postgres service.
@@ -483,7 +472,7 @@ We remain open to revising this decision in the future.
483
472
Like the [Reference PostgreSQL MCP Server](https://github.com/modelcontextprotocol/servers/tree/main/src/postgres), Postgres Pro takes Postgres connection information at startup.
484
473
This is convenient for users who always connect to the same database but can be cumbersome when users switch databases.
485
474
486
-
An alternative approach, taken by [PG-MCP](https://github.com/stuzero/pg-mcp), is provide connection details via MCP tool calls at the time of use.
475
+
An alternative approach, taken by [PG-MCP](https://github.com/stuzero/pg-mcp-server), is provide connection details via MCP tool calls at the time of use.
487
476
This is more convenient for users who switch databases, and allows a single MCP server to simultaneously support multiple end-users.
488
477
489
478
There must be a better approach than either of these.
0 commit comments