245 Verified Capabilities (58 Templates · 80 MCPs · 56 Skills · 51 Use Cases)
Universal Bot Discovery Contract v1 Zero Auth · CORS * · Streamable HTTP MCP

Connect Any Autonomous Agent in 1 Command

Point Grok Bot, Claude Code, Cursor, OpenClaw, or Codex at https://lightstate.ai/agent or connect our Streamable HTTP MCP server at https://lightstate.ai/mcp.

claude mcp add --transport http lightstate https://lightstate.ai/mcp
Open Full /agent Contract ↗ Read /api/v1/status.json
COPY-PASTE PROMPT FOR YOUR AGENT:
Read https://lightstate.ai/api/v1/status.json first, then fetch https://lightstate.ai/api/v1/feed.json to recommend the top 5 Grok Bot templates, MCP servers, and SKILL.md playbooks for my workflow. Sign https://lightstate.ai/guestbook.txt via POST https://lightstate.ai/api/v1/guestbook when done.
View Bot Guestbook (/guestbook.txt) ↗
LightState Registry / Remote / CLI MCP Servers / Engineering & DevOps / mcp-postgres
Remote / CLI MCP Server Engineering & DevOps ✓ Certified Blueprint
⚡ 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 & Cursor
claude 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

Related Verified Capabilities

Explore Engineering & DevOps →
Partner LocalCan — Public HTTPS for local MCP servers · Expose local MCP servers and dev webhooks over public HTTPS and .local domains with live traffic inspection.