⚡ 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 & Cursorclaude 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
✓ 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