@sarmadparvez/postgresql-mcp 1.0.5 → 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 +19 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,30 +74,30 @@ First, install the package globally:
|
|
|
74
74
|
npm install -g @sarmadparvez/postgresql-mcp
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
Then find the paths to node and the installed
|
|
77
|
+
Then find the paths to `node` and the installed script:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
which node
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
which node
|
|
81
|
+
# e.g. /usr/local/bin/node
|
|
82
|
+
# nvm users: /Users/yourname/.nvm/versions/node/v22.12.0/bin/node
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
> # Find the installed script
|
|
89
|
-
> ls $(npm root -g)/@sarmadparvez/postgresql-mcp/index.js
|
|
90
|
-
> ```
|
|
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
|
|
87
|
+
```
|
|
91
88
|
|
|
92
89
|
Add this to your `claude_desktop_config.json`:
|
|
93
90
|
|
|
94
|
-
|
|
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
|
|
93
|
+
|
|
95
94
|
```json
|
|
96
95
|
{
|
|
97
96
|
"mcpServers": {
|
|
98
97
|
"postgres": {
|
|
99
|
-
"command": "/
|
|
98
|
+
"command": "/usr/local/bin/node",
|
|
100
99
|
"args": [
|
|
100
|
+
"/usr/local/lib/node_modules/@sarmadparvez/postgresql-mcp/index.js",
|
|
101
101
|
"postgresql://user:pass@localhost:5432/mydb"
|
|
102
102
|
]
|
|
103
103
|
}
|
|
@@ -105,23 +105,22 @@ Add this to your `claude_desktop_config.json`:
|
|
|
105
105
|
}
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
For read-only access, append `?mode=readonly` to the connection string:
|
|
109
|
+
|
|
109
110
|
```json
|
|
110
111
|
{
|
|
111
112
|
"mcpServers": {
|
|
112
|
-
"postgres": {
|
|
113
|
-
"command": "/
|
|
113
|
+
"postgres-readonly": {
|
|
114
|
+
"command": "/usr/local/bin/node",
|
|
114
115
|
"args": [
|
|
115
|
-
"/
|
|
116
|
-
"postgresql://user:pass@localhost:5432/mydb"
|
|
116
|
+
"/usr/local/lib/node_modules/@sarmadparvez/postgresql-mcp/index.js",
|
|
117
|
+
"postgresql://user:pass@localhost:5432/mydb?mode=readonly"
|
|
117
118
|
]
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
```
|
|
122
123
|
|
|
123
|
-
For read-only access, append `?mode=readonly` to the connection string.
|
|
124
|
-
|
|
125
124
|
## Dependencies
|
|
126
125
|
|
|
127
126
|
- [`@modelcontextprotocol/sdk`](https://github.com/modelcontextprotocol/typescript-sdk) — MCP server framework
|
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": {
|