@universal-mcp-toolkit/server-postgresql 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.well-known/mcp-server.json +35 -35
- package/LICENSE +21 -21
- package/README.md +43 -0
- package/package.json +4 -8
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/json",
|
|
3
|
-
"name": "postgresql",
|
|
4
|
-
"title": "PostgreSQL MCP Server",
|
|
5
|
-
"description": "Schema inspection and safe query tools for PostgreSQL.",
|
|
6
|
-
"version": "0.1.0",
|
|
7
|
-
"transports": [
|
|
8
|
-
"stdio",
|
|
9
|
-
"http+sse"
|
|
10
|
-
],
|
|
11
|
-
"authentication": {
|
|
12
|
-
"mode": "environment-variables",
|
|
13
|
-
"required": [
|
|
14
|
-
"POSTGRESQL_URL"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"capabilities": {
|
|
18
|
-
"tools": true,
|
|
19
|
-
"resources": true,
|
|
20
|
-
"prompts": true
|
|
21
|
-
},
|
|
22
|
-
"packageName": "@universal-mcp-toolkit/server-postgresql",
|
|
23
|
-
"homepage": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit#readme",
|
|
24
|
-
"tools": [
|
|
25
|
-
"list-tables",
|
|
26
|
-
"describe-table",
|
|
27
|
-
"run-query"
|
|
28
|
-
],
|
|
29
|
-
"resources": [
|
|
30
|
-
"schema-overview"
|
|
31
|
-
],
|
|
32
|
-
"prompts": [
|
|
33
|
-
"query-review"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/json",
|
|
3
|
+
"name": "postgresql",
|
|
4
|
+
"title": "PostgreSQL MCP Server",
|
|
5
|
+
"description": "Schema inspection and safe query tools for PostgreSQL.",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"transports": [
|
|
8
|
+
"stdio",
|
|
9
|
+
"http+sse"
|
|
10
|
+
],
|
|
11
|
+
"authentication": {
|
|
12
|
+
"mode": "environment-variables",
|
|
13
|
+
"required": [
|
|
14
|
+
"POSTGRESQL_URL"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"capabilities": {
|
|
18
|
+
"tools": true,
|
|
19
|
+
"resources": true,
|
|
20
|
+
"prompts": true
|
|
21
|
+
},
|
|
22
|
+
"packageName": "@universal-mcp-toolkit/server-postgresql",
|
|
23
|
+
"homepage": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit#readme",
|
|
24
|
+
"tools": [
|
|
25
|
+
"list-tables",
|
|
26
|
+
"describe-table",
|
|
27
|
+
"run-query"
|
|
28
|
+
],
|
|
29
|
+
"resources": [
|
|
30
|
+
"schema-overview"
|
|
31
|
+
],
|
|
32
|
+
"prompts": [
|
|
33
|
+
"query-review"
|
|
34
|
+
]
|
|
35
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 universal-mcp-toolkit
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 universal-mcp-toolkit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
PostgreSQL MCP server for browsing your schema and running guarded SQL from Claude or Cursor.
|
|
2
|
+
|
|
3
|
+
## What it can do
|
|
4
|
+
- `list-tables` — show the tables and views your connection can see.
|
|
5
|
+
- `describe-table` — show a table's columns, types, defaults, and constraints.
|
|
6
|
+
- `run-query` — run SQL, return rows, and stop write queries unless you opt in.
|
|
7
|
+
|
|
8
|
+
## Setup
|
|
9
|
+
You only need one env var:
|
|
10
|
+
- `POSTGRESQL_URL` — your PostgreSQL connection string, like `postgresql://user:password@host:5432/dbname`. Copy it from your database provider's connection page, or build it with the official PostgreSQL format: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
|
11
|
+
|
|
12
|
+
## Claude Desktop config
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
"postgresql": {
|
|
17
|
+
"command": "npx",
|
|
18
|
+
"args": ["-y", "@universal-mcp-toolkit/server-postgresql@latest"],
|
|
19
|
+
"env": {
|
|
20
|
+
"POSTGRESQL_URL": "<your-postgresql-url>"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Cursor config
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"mcpServers": {
|
|
31
|
+
"postgresql": {
|
|
32
|
+
"command": "npx",
|
|
33
|
+
"args": ["-y", "@universal-mcp-toolkit/server-postgresql@latest"],
|
|
34
|
+
"env": {
|
|
35
|
+
"POSTGRESQL_URL": "<your-postgresql-url>"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Quick example
|
|
43
|
+
Ask Claude: `List the tables in the public schema, describe the orders table, then run SELECT id, customer_id, total, created_at FROM orders ORDER BY created_at DESC LIMIT 10;`
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universal-mcp-toolkit/server-postgresql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Schema inspection and safe query tools for PostgreSQL.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
8
|
-
"server-postgresql": "./dist/index.js",
|
|
9
8
|
"umt-postgresql": "./dist/index.js"
|
|
10
9
|
},
|
|
11
10
|
"repository": {
|
|
12
11
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/
|
|
12
|
+
"url": "git+https://github.com/universal-mcp-toolkit/universal-mcp-toolkit.git"
|
|
14
13
|
},
|
|
15
|
-
"homepage": "https://github.com/
|
|
14
|
+
"homepage": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit#readme",
|
|
16
15
|
"exports": {
|
|
17
16
|
".": {
|
|
18
17
|
"types": "./dist/index.d.ts",
|
|
@@ -36,13 +35,10 @@
|
|
|
36
35
|
"schema"
|
|
37
36
|
],
|
|
38
37
|
"dependencies": {
|
|
39
|
-
"@universal-mcp-toolkit/core": "0.
|
|
38
|
+
"@universal-mcp-toolkit/core": "0.2.0",
|
|
40
39
|
"pg": "^8.20.0",
|
|
41
40
|
"zod": "^4.3.6"
|
|
42
41
|
},
|
|
43
|
-
"publishConfig": {
|
|
44
|
-
"access": "public"
|
|
45
|
-
},
|
|
46
42
|
"scripts": {
|
|
47
43
|
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
48
44
|
"dev": "tsx watch src/index.ts",
|