Home/Directory/Data & Databases/PostgreSQL

PostgreSQL

@modelcontextprotocol · github.com/modelcontextprotocol/servers

Read-only SQL access with schema introspection. Inspect tables, run queries, and explain plans safely.

Anthropic OfficialData & DatabasesstdioToolslocal auth
GitHub

Install one command

terminal
$ npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb

Or add it with the Claude CLI: claude mcp add postgres

Tools exposed 5 tools

query
list_schemas
list_tables
describe_table
explain_query

Configuration generate & copy

Values are filled in locally in your browser — nothing is sent anywhere.

claude_desktop_config.json
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"],
      "env": {
        "DATABASE_URL": "<your-database-url>"
      }
    }
  }
}

Paste the Claude Desktop snippet under mcpServers in your config, then restart Claude Desktop — or run the Claude Code command in your terminal.

Related

Similar servers

More in Data & Databases
Compare
@mindsdb

Connect and unify data across various platforms and databases with MindsDB as a single MCP server.

Data & DatabasesstdioRead-only no-auth
39.3k1w ago0 toolslocal
Install command unavailable — see repo
Compare
@mediar-ai

Local-first system capturing screen/audio with timestamped indexing, SQL/embedding storage, semantic search, LLM-powered history analysis, and event-triggered actions - enables building context-aware…

Data & DatabasesHTTPRead-only no-auth
19.2k5d ago1 toollocal
$npx screenpipe record
Compare
@topoteretes

Memory manager for AI apps and Agents using various graph and vector stores and allowing ingestion from 30+ data sources

Data & DatabasesstdioRead-only auth
17.8k5d ago0 toolslocal
$pip install cognee