Skip to content

Commit 86143e3

Browse files
committed
feat(postgresql): switch to crystaldba/postgres-mcp
Replace @modelcontextprotocol/server-postgres (archived, read-only only) with postgres-mcp from Crystal DBA which adds index tuning, workload analysis, EXPLAIN plans, slow query detection, and health checks. - Transport: uvx (Python package) instead of npx - Env var: DATABASE_URI (matches upstream convention) - Supports both restricted (read-only) and unrestricted access modes Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 767a151 commit 86143e3

1 file changed

Lines changed: 27 additions & 17 deletions

File tree

servers/community.postgresql.json

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"id": "community.postgresql",
44
"name": "PostgreSQL",
55
"alias": "postgres",
6-
"description": "Query PostgreSQL databases with read-only access. Execute SQL queries, inspect table schemas, and explore data in any PostgreSQL database.",
6+
"description": "Query PostgreSQL databases, analyze performance, and optimize indexes. Execute SQL, inspect schemas, get EXPLAIN plans, identify slow queries, and run health checks via Postgres MCP Pro.",
77
"icon": "https://www.postgresql.org/media/img/about/press/elephant.png",
88
"schema_version": "2.1",
99
"categories": [
@@ -15,26 +15,35 @@
1515
"database",
1616
"sql",
1717
"query",
18-
"relational"
18+
"relational",
19+
"index-tuning",
20+
"performance"
1921
],
2022
"transport": {
2123
"type": "stdio",
22-
"command": "npx",
24+
"command": "uvx",
2325
"args": [
24-
"-y",
25-
"@modelcontextprotocol/server-postgres",
26-
"${input:POSTGRES_URL}"
26+
"postgres-mcp",
27+
"--access-mode=unrestricted"
2728
],
29+
"env": {
30+
"DATABASE_URI": "${input:DATABASE_URI}"
31+
},
2832
"metadata": {
2933
"inputs": [
3034
{
31-
"id": "POSTGRES_URL",
32-
"label": "PostgreSQL Connection URL",
33-
"description": "PostgreSQL connection string including host, port, database name, and credentials. All queries run in read-only transactions.",
35+
"id": "DATABASE_URI",
36+
"label": "PostgreSQL Connection URI",
37+
"description": "PostgreSQL connection string including host, port, database name, and credentials.",
3438
"type": "text",
3539
"required": true,
3640
"secret": true,
37-
"placeholder": "postgresql://username:password@localhost:5432/mydb"
41+
"placeholder": "postgresql://username:password@localhost:5432/mydb",
42+
"obtain": {
43+
"url": "https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS",
44+
"instructions": "1. Format: postgresql://username:password@host:port/database\n2. For local PostgreSQL: postgresql://postgres:password@localhost:5432/mydb\n3. For cloud providers: check your dashboard for the connection string",
45+
"button_label": "Connection Docs"
46+
}
3847
}
3948
]
4049
}
@@ -43,22 +52,23 @@
4352
"type": "none"
4453
},
4554
"contributor": {
46-
"name": "Model Context Protocol",
47-
"github": "modelcontextprotocol",
48-
"url": "https://modelcontextprotocol.io"
55+
"name": "Crystal DBA",
56+
"github": "crystaldba",
57+
"url": "https://github.com/crystaldba"
4958
},
5059
"links": {
51-
"repository": "https://github.com/modelcontextprotocol/servers",
60+
"repository": "https://github.com/crystaldba/postgres-mcp",
5261
"homepage": "https://www.postgresql.org",
53-
"documentation": "https://github.com/modelcontextprotocol/servers-archived/tree/main/src/postgres"
62+
"documentation": "https://github.com/crystaldba/postgres-mcp#readme"
5463
},
5564
"platforms": [
5665
"all"
5766
],
5867
"capabilities": {
5968
"tools": true,
60-
"resources": true,
69+
"resources": false,
6170
"prompts": false,
6271
"read_only_mode": true
63-
}
72+
},
73+
"changelog_url": "https://github.com/crystaldba/postgres-mcp/releases"
6474
}

0 commit comments

Comments
 (0)