@sarmadparvez/postgresql-mcp 1.0.1 → 1.0.3
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/README.md +22 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,13 @@ postgresql-mcp postgresql://user:pass@localhost:5432/mydb
|
|
|
45
45
|
postgresql-mcp postgresql://user:pass@localhost:5432/mydb?mode=readonly
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
Or with `npx` (no install required):
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx @sarmadparvez/postgresql-mcp postgresql://user:pass@localhost:5432/mydb
|
|
52
|
+
npx @sarmadparvez/postgresql-mcp postgresql://user:pass@localhost:5432/mydb?mode=readonly
|
|
53
|
+
```
|
|
54
|
+
|
|
48
55
|
## Tools
|
|
49
56
|
|
|
50
57
|
| Tool | Available in | Description |
|
|
@@ -61,15 +68,26 @@ Append `?mode=readonly` to the connection string to start the server in read-onl
|
|
|
61
68
|
|
|
62
69
|
## Claude Desktop Configuration
|
|
63
70
|
|
|
64
|
-
|
|
71
|
+
First, install the package globally:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm install -g @sarmadparvez/postgresql-mcp
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Then find the path to the installed binary:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
which postgresql-mcp
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Add this to your `claude_desktop_config.json`, replacing the path with the output of the above command:
|
|
65
84
|
|
|
66
85
|
```json
|
|
67
86
|
{
|
|
68
87
|
"mcpServers": {
|
|
69
88
|
"postgres": {
|
|
70
|
-
"command": "
|
|
89
|
+
"command": "/usr/local/bin/postgresql-mcp",
|
|
71
90
|
"args": [
|
|
72
|
-
"@sarmadparvez/postgresql-mcp",
|
|
73
91
|
"postgresql://user:pass@localhost:5432/mydb"
|
|
74
92
|
]
|
|
75
93
|
}
|
|
@@ -83,9 +101,8 @@ For read-only access:
|
|
|
83
101
|
{
|
|
84
102
|
"mcpServers": {
|
|
85
103
|
"postgres-readonly": {
|
|
86
|
-
"command": "
|
|
104
|
+
"command": "/usr/local/bin/postgresql-mcp",
|
|
87
105
|
"args": [
|
|
88
|
-
"@sarmadparvez/postgresql-mcp",
|
|
89
106
|
"postgresql://user:pass@localhost:5432/mydb?mode=readonly"
|
|
90
107
|
]
|
|
91
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarmadparvez/postgresql-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "MCP server for PostgreSQL with full read-write support. Works with any PostgreSQL instance — local, Supabase, RDS, or self-hosted.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|