postgres-mcp-safe 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -7,6 +7,8 @@ package name in your MCP config and keep everything else.
7
7
 
8
8
  [![npm](https://img.shields.io/npm/v/postgres-mcp-safe)](https://www.npmjs.com/package/postgres-mcp-safe) [![ci](https://github.com/Poudel0/postgres-mcp-safe/actions/workflows/ci.yml/badge.svg)](https://github.com/Poudel0/postgres-mcp-safe/actions/workflows/ci.yml)
9
9
 
10
+ [![Postgres (read-only transactions) MCP server](https://mcprush.com/badge/postgres-read-only-safe-mcp/card.svg)](https://mcprush.com/to/postgres-read-only-safe-mcp?ref=badge)
11
+
10
12
  ## Migrating from server-postgres
11
13
 
12
14
  ```diff
@@ -49,6 +51,10 @@ Flags go **before** the URL.
49
51
  | `--allow-explain-analyze` | off | Lets `explain` run `EXPLAIN ANALYZE`, which executes the query. |
50
52
  | `--allow-superuser` | off | Allows a superuser role, or a member of one. Read-only is then **not** guaranteed. |
51
53
 
54
+ Each call opens a fresh connection (that's part of the safety model). Against a remote database over TLS that costs a
55
+ few round trips: about 0.5 s per call at 50 ms latency. On Postgres 17+ you can save one round trip by adding
56
+ `sslnegotiation=direct` to the URL.
57
+
52
58
  Limits can't be turned off; `0` is an error. The URL can also be a keyword DSN (`host=db dbname=app`), and the
53
59
  standard `PG*` environment variables (`PGPASSWORD`, ...) are read as libpq would.
54
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postgres-mcp-safe",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Drop-in replacement for @modelcontextprotocol/server-postgres that is actually read-only.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -27,10 +27,10 @@
27
27
  "node": ">=18"
28
28
  },
29
29
  "optionalDependencies": {
30
- "postgres-mcp-safe-linux-arm64": "0.1.2",
31
- "postgres-mcp-safe-darwin-x64": "0.1.2",
32
- "postgres-mcp-safe-darwin-arm64": "0.1.2",
33
- "postgres-mcp-safe-linux-x64": "0.1.2",
34
- "postgres-mcp-safe-win32-x64": "0.1.2"
30
+ "postgres-mcp-safe-linux-x64": "0.1.3",
31
+ "postgres-mcp-safe-darwin-x64": "0.1.3",
32
+ "postgres-mcp-safe-darwin-arm64": "0.1.3",
33
+ "postgres-mcp-safe-linux-arm64": "0.1.3",
34
+ "postgres-mcp-safe-win32-x64": "0.1.3"
35
35
  }
36
36
  }