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 & Databasesstdiolocal 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 claude_desktop_config.json

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

Paste under mcpServers in your config, then restart Claude Desktop. For Claude Code, reference this server in your project's CLAUDE.md.

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 & Databasesstdio no-auth
39.3k6d 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 & DatabasesHTTP no-auth
19.2k4d ago0 toolslocal
$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 & Databasesstdio auth
17.8k4d ago0 toolslocal
$pip install cognee