⚡ Pulse Score 79/100
PostgreSQL Analytics & Read-Replica Inspector MCP (mcp-postgres)
Zero-mutation PostgreSQL read-replica MCP server enforcing `SET TRANSACTION READ ONLY` on every query for safe executive BI, cohort analysis, and schema ex
⚡ 1-Click Agent & Developer Install
Zero Auth · Ready for Grok Bot, Claude Code & Cursorclaude mcp add mcp-postgres -- npx -y @modelcontextprotocol/server-postgres $READONLY_DATABASE_URL
Copy-Paste System Prompt / Routine Blueprint:
Connect to the PostgreSQL Analytics & Read-Replica Inspector MCP (mcp-postgres) (mcp-postgres) MCP server using `claude mcp add mcp-postgres -- npx -y @modelcontextprotocol/server-postgres $READONLY_DATABASE_URL`. First run a read-only discovery check invoking `run_readonly_sql` to verify connectivity and credentials, then summarize the structured response and ask before executing any state-modifying tool calls.
Synthesized Engineering Blueprint & Setup Guide
### Server Architecture & Capability Summary
**PostgreSQL Analytics & Read-Replica Inspector MCP (mcp-postgres)** (`mcp-postgres`) is a verified **STDIO** Model Context Protocol (MCP) server curated with **@simonw** for Grok Bot, Claude Code, and Cursor.
Zero-mutation PostgreSQL read-replica MCP server enforcing `SET TRANSACTION READ ONLY` on every query for safe executive BI, cohort analysis, and schema exploration.
### 1-Click CLI Installation
Run the command below to register `mcp-postgres` in Claude Code or your MCP client:
```bash
claude mcp add mcp-postgres -- npx -y @modelcontextprotocol/server-postgres $READONLY_DATABASE_URL
```
### Standard `mcpServers` JSON Configuration (`.cursor/mcp.json` / `claude_desktop_config.json`)
```json
{
"mcpServers": {
"mcp-postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"$READONLY_DATABASE_URL"
],
"env": {
"READONLY_DATABASE_URL": "postgresql://readonly_user:pass@host:5432/prod"
}
}
}
}
```
### Exposed MCP Tools
- `run_readonly_sql` — Deterministic JSON-RPC 2.0 tool exposed by `mcp-postgres`.
- `list_schemas` — Deterministic JSON-RPC 2.0 tool exposed by `mcp-postgres`.
- `inspect_foreign_keys` — Deterministic JSON-RPC 2.0 tool exposed by `mcp-postgres`.
- `sample_table_rows` — Deterministic JSON-RPC 2.0 tool exposed by `mcp-postgres`.
### Authentication & Environment Variables
- **Transport Protocol:** `stdio`
- **Auth Mechanism:** `connection_string`
- `READONLY_DATABASE_URL`: `postgresql://readonly_user:pass@host:5432/prod`
- **Documentation / Source:** [https://github.com/modelcontextprotocol/servers](https://github.com/modelcontextprotocol/servers)
Tags: #mcp-postgres#stdio#engineering#mcp-server#run-readonly-sql#list-schemas
✓ CERTIFIED X BUILDER PORTFOLIO
More Capabilities Curated from @simonw
Related Verified Capabilities
Explore Engineering & DevOps → MCP Server ★ Featured Partner ✓ Claimed
⚡ 98
MCP Server ★ Featured Partner ✓ Claimed
⚡ 97
TranscriptAPI — Instant YouTube & Video Transcripts MCP Server
MCP Server ★ Featured Partner ✓ Claimed
⚡ 96
StayingAPI — Real-Time Hotel & Short-Term Stay Availability MCP
MCP Server ★ Featured Partner ✓ Claimed
⚡ 95
AdWhispr MCP — Autonomous Google, Meta & TikTok Ads Intelligence
Grok Template ✓ Claimed
⚡ 97
Dr. Eggbot — Meta-Agent Architect & Bot Builder
MCP Server ✓ Claimed
⚡ 89