@sarmadparvez/postgresql-mcp 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/README.md +17 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,7 +23,7 @@ This server is the alternative for everything else: local PostgreSQL, self-hoste
23
23
  npm install -g @sarmadparvez/postgresql-mcp
24
24
  ```
25
25
 
26
- Or run directly without installing:
26
+ Or run directly without installing (requires npm 7+ / Node.js 18+):
27
27
 
28
28
  ```bash
29
29
  npx @sarmadparvez/postgresql-mcp <postgresql-connection-string>
@@ -45,7 +45,7 @@ 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):
48
+ Or with `npx` (requires npm 7+ / Node.js 18+):
49
49
 
50
50
  ```bash
51
51
  npx @sarmadparvez/postgresql-mcp postgresql://user:pass@localhost:5432/mydb
@@ -68,16 +68,26 @@ Append `?mode=readonly` to the connection string to start the server in read-onl
68
68
 
69
69
  ## Claude Desktop Configuration
70
70
 
71
- Add this to your `claude_desktop_config.json`:
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 `/path/to/postgresql-mcp` with the output of the above command:
72
84
 
73
85
  ```json
74
86
  {
75
87
  "mcpServers": {
76
88
  "postgres": {
77
- "command": "npx",
89
+ "command": "/path/to/postgresql-mcp",
78
90
  "args": [
79
- "-y",
80
- "@sarmadparvez/postgresql-mcp",
81
91
  "postgresql://user:pass@localhost:5432/mydb"
82
92
  ]
83
93
  }
@@ -91,10 +101,8 @@ For read-only access:
91
101
  {
92
102
  "mcpServers": {
93
103
  "postgres-readonly": {
94
- "command": "npx",
104
+ "command": "/path/to/postgresql-mcp",
95
105
  "args": [
96
- "-y",
97
- "@sarmadparvez/postgresql-mcp",
98
106
  "postgresql://user:pass@localhost:5432/mydb?mode=readonly"
99
107
  ]
100
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarmadparvez/postgresql-mcp",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
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": {