MCP ConfigsMay 12, 2026·2 min read

pgEdge Postgres MCP — Read-Only by Default + Web UI

pgEdge Postgres MCP is a Go MCP server for Postgres with read-only defaults, optional HTTP auth, and a web UI for database exploration and diagnostics.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Mcp Config
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install e3c6ca46-f9f3-5f60-8ff3-7316792032f3 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

pgEdge Postgres MCP is a Go MCP server for Postgres with read-only defaults, optional HTTP auth, and a web UI for database exploration and diagnostics.

  • Best for: teams that want a Postgres MCP server with explicit read-only defaults and optional HTTP/Web UI surfaces
  • Works with: PostgreSQL 14+, Go 1.21+ (to build), MCP clients (Claude Desktop, Cursor), optional HTTP mode
  • Setup time: 20-45 minutes

Practical Notes

  • Quant: the docs show a YAML config format and multiple transports (stdio/HTTP), so you can standardize across local and shared deployments.
  • Quant: treat read-only as the default baseline; enable writes only with a config change (allow_writes) and a human approval rule.

Rollout pattern

  • Start in stdio mode from a developer laptop, validate core tools, then graduate to HTTP mode for shared access.
  • Create a dedicated DB user and keep permissions minimal; rely on the server’s explicit write-enable switch.
  • Add audit logging and a trace file before you let multiple teammates point agents at the same server.

Watchouts

If you enable HTTP mode for shared use, treat it like a real service: auth on, TLS when possible, and least-privilege DB credentials.

FAQ

Q: Do I need the web UI? A: No. You can run it purely as an MCP server over stdio for local development and keep the surface area small.

Q: How do writes work? A: The server is read-only by default. Writes require explicitly enabling them via configuration (for example allow_writes).

Q: What is the simplest first test? A: Run SELECT 1 via the query tool, then inspect one table schema to confirm connectivity and metadata access.

🙏

Source & Thanks

Source: https://github.com/pgEdge/pgedge-postgres-mcp > License: PostgreSQL > GitHub stars: 158 · forks: 14

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets