@sarmadparvez/postgresql-mcp 1.0.4 → 1.0.6
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 +17 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,20 +74,30 @@ First, install the package globally:
|
|
|
74
74
|
npm install -g @sarmadparvez/postgresql-mcp
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
Then find the
|
|
77
|
+
Then find the paths to `node` and the installed script:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
which
|
|
80
|
+
which node
|
|
81
|
+
# e.g. /usr/local/bin/node
|
|
82
|
+
# nvm users: /Users/yourname/.nvm/versions/node/v22.12.0/bin/node
|
|
83
|
+
|
|
84
|
+
npm root -g
|
|
85
|
+
# e.g. /usr/local/lib/node_modules
|
|
86
|
+
# nvm users: /Users/yourname/.nvm/versions/node/v22.12.0/lib/node_modules
|
|
81
87
|
```
|
|
82
88
|
|
|
83
|
-
Add this to your `claude_desktop_config.json
|
|
89
|
+
Add this to your `claude_desktop_config.json`:
|
|
90
|
+
|
|
91
|
+
- Replace `command` with the output of `which node`
|
|
92
|
+
- Replace the prefix of the script path with the output of `npm root -g` — the suffix `/@sarmadparvez/postgresql-mcp/index.js` stays the same
|
|
84
93
|
|
|
85
94
|
```json
|
|
86
95
|
{
|
|
87
96
|
"mcpServers": {
|
|
88
97
|
"postgres": {
|
|
89
|
-
"command": "/
|
|
98
|
+
"command": "/usr/local/bin/node",
|
|
90
99
|
"args": [
|
|
100
|
+
"/usr/local/lib/node_modules/@sarmadparvez/postgresql-mcp/index.js",
|
|
91
101
|
"postgresql://user:pass@localhost:5432/mydb"
|
|
92
102
|
]
|
|
93
103
|
}
|
|
@@ -95,14 +105,15 @@ Add this to your `claude_desktop_config.json`, replacing `/path/to/postgresql-mc
|
|
|
95
105
|
}
|
|
96
106
|
```
|
|
97
107
|
|
|
98
|
-
For read-only access:
|
|
108
|
+
For read-only access, append `?mode=readonly` to the connection string:
|
|
99
109
|
|
|
100
110
|
```json
|
|
101
111
|
{
|
|
102
112
|
"mcpServers": {
|
|
103
113
|
"postgres-readonly": {
|
|
104
|
-
"command": "/
|
|
114
|
+
"command": "/usr/local/bin/node",
|
|
105
115
|
"args": [
|
|
116
|
+
"/usr/local/lib/node_modules/@sarmadparvez/postgresql-mcp/index.js",
|
|
106
117
|
"postgresql://user:pass@localhost:5432/mydb?mode=readonly"
|
|
107
118
|
]
|
|
108
119
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarmadparvez/postgresql-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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": {
|