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 / postgres-mcp
Remote / CLI MCP Server Engineering & DevOps ✓ Certified Blueprint
⚡ Pulse Score 80/100

PostgreSQL Read/Write & Schema Introspection MCP Server

Connect AI agents directly to PostgreSQL databases for live table schema inspection, `EXPLAIN ANALYZE` query benchmarking, and safe read-only or transactio

⚡ 1-Click Agent & Developer Install

Zero Auth · Ready for Grok Bot, Claude Code & Cursor
claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb
Copy-Paste System Prompt / Routine Blueprint:
Connect to the PostgreSQL Read/Write & Schema Introspection MCP Server (postgres-mcp) MCP server using `claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb`. First run a read-only discovery check invoking `query_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 Read/Write & Schema Introspection MCP Server** (`postgres-mcp`) is a verified **STDIO** Model Context Protocol (MCP) server curated with **@simonw** for Grok Bot, Claude Code, and Cursor. Connect AI agents directly to PostgreSQL databases for live table schema inspection, `EXPLAIN ANALYZE` query benchmarking, and safe read-only or transactional queries. ### 1-Click CLI Installation Run the command below to register `postgres-mcp` in Claude Code or your MCP client: ```bash claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb ``` ### Standard `mcpServers` JSON Configuration (`.cursor/mcp.json` / `claude_desktop_config.json`) ```json { "mcpServers": { "postgres-mcp": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb" ], "env": { "DATABASE_URL": "postgresql://user:pass@host:5432/dbname" } } } } ``` ### Exposed MCP Tools - `query_sql` — Deterministic JSON-RPC 2.0 tool exposed by `postgres-mcp`. - `describe_table_schema` — Deterministic JSON-RPC 2.0 tool exposed by `postgres-mcp`. - `list_indexes` — Deterministic JSON-RPC 2.0 tool exposed by `postgres-mcp`. - `explain_query_plan` — Deterministic JSON-RPC 2.0 tool exposed by `postgres-mcp`. ### Authentication & Environment Variables - **Transport Protocol:** `stdio` - **Auth Mechanism:** `connection_string` - `DATABASE_URL`: `postgresql://user:pass@host:5432/dbname` - **Documentation / Source:** [https://github.com/modelcontextprotocol/servers](https://github.com/modelcontextprotocol/servers)
Tags: #postgres-mcp#stdio#engineering#mcp-server#query-sql#describe-table-schema

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.