A lightweight, secure, open-source PostgreSQL MCP server with read-only access, YAML-based policies, and easy Docker deployment for AI agents.
View on GitHub ↗A secure, self-hosted PostgreSQL MCP server. One Docker container. One YAML file. Read-only by default.
Give an agent read-only access to PostgreSQL without handing it the whole database. postgres-mcp speaks Model Context Protocol over HTTP, accepts a single YAML policy, and refuses to boot if that policy or its secrets are missing.
The PostgreSQL role is the primary boundary. YAML adds schema/table rules, row and time limits, and SQL validation on top.
- Read-only by default — BEGIN READ ONLY, no write tools, security.readonly cannot be disabled in v0.1 - YAML policies — allow/deny schemas and tables, query limits, introspection toggles - Docker-ready — one container, env-based secrets, published as recordari/postgres-mcp - Private networking — bind to loopback, shared Docker networks, Tailscale Serve
Guide Description --- --- Quick Start Disposable demo database + first query Verify your install Health check and smoke test Connect your database Existing PostgreSQL Connect your AI client Cursor / Streamable HTTP MCP tools What agents can call Configuration Full YAML reference + JSON Schema Docker deployment Production container layout Tailscale deployment Private VM + HTTPS Security model Guarantees and limits Contributing How to send changes Agent instructions For AI agents editing this repo
Demo only. This starts a throwaway PostgreSQL and builds the MCP server from source. You do not need an existing database or credentials.
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/recordari-labs--postgres-mcp.html)
ChatGPT thinks. Codex works. Use ChatGPT as the planning brain while keeping the Codex harness.
qybaihe/bla🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> H
INK-Q/agy-fastNon-invasive MCP accelerator plugin for Google Antigravity (CLI/Desktop/IDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affecting native UI or diffs.
shinthink/blitzstrike⚡ Blitz Strike — a universal MCP penetration-testing toolbelt. Structured methodology: reconnaissance & attack-surface mapping, source-to-sink analysis, and live validation. 57 escalation chains, 130-
0xwilliamortiz/openclaude-improvedruns anywhere. uses anything
halofyai/halofyHalofy is the open access and governance layer for AI agents across your organization. Identity, policy, provenance, audit, and signed erasure.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.