Skip to content

Commit bca7f63

Browse files
authored
Merge pull request #16 from mcpmux/claude/add-postgresql-mcp-clean
feat: add PostgreSQL MCP server definition
2 parents 2cfb75f + 47060ce commit bca7f63

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

servers/community.postgresql.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "community.postgresql",
4+
"name": "PostgreSQL",
5+
"alias": "postgres",
6+
"description": "Query PostgreSQL databases with read-only access. Execute SQL queries, inspect table schemas, and explore data in any PostgreSQL database.",
7+
"icon": "https://avatars.githubusercontent.com/u/182288589?v=4",
8+
"schema_version": "2.1",
9+
"categories": ["database"],
10+
"tags": ["postgres", "postgresql", "database", "sql", "query", "relational"],
11+
12+
"transport": {
13+
"type": "stdio",
14+
"command": "npx",
15+
"args": ["-y", "@modelcontextprotocol/server-postgres", "${input:POSTGRES_URL}"],
16+
"metadata": {
17+
"inputs": [
18+
{
19+
"id": "POSTGRES_URL",
20+
"label": "PostgreSQL Connection URL",
21+
"description": "PostgreSQL connection string including host, port, database name, and credentials. All queries run in read-only transactions.",
22+
"type": "password",
23+
"required": true,
24+
"secret": true,
25+
"placeholder": "postgresql://username:password@localhost:5432/mydb"
26+
}
27+
]
28+
}
29+
},
30+
31+
"auth": {
32+
"type": "none"
33+
},
34+
35+
"contributor": {
36+
"name": "Model Context Protocol",
37+
"github": "modelcontextprotocol",
38+
"url": "https://modelcontextprotocol.io"
39+
},
40+
41+
"links": {
42+
"repository": "https://github.com/modelcontextprotocol/servers",
43+
"homepage": "https://www.postgresql.org",
44+
"documentation": "https://github.com/modelcontextprotocol/servers/tree/main/src/postgres#readme"
45+
},
46+
47+
"platforms": ["all"],
48+
49+
"capabilities": {
50+
"tools": true,
51+
"resources": true,
52+
"prompts": false,
53+
"read_only_mode": true
54+
}
55+
}

0 commit comments

Comments
 (0)