MCP Directory

PostgreSQL

GitHub
Databases

Query and manage PostgreSQL databases directly

Tools(3)

Available tools exposed by this MCP server to your AI agent.

query

Execute a read-only SQL query against the PostgreSQL database

list_tables

List all tables in the database

describe_table

Get the column definitions and schema for a table

Installation Guide

Use with Agent-CoreX

Recommended: intelligent tool routing, lower costs

uvx agent-corex mcp add postgres

Agent-CoreX selects only the tools your agent needs, cutting token usage by up to 60%.

Direct Install

Use PostgreSQL directly without routing

npx -y @modelcontextprotocol/server-postgres

New to Agent-CoreX? View setup guide →

PostgreSQL MCP Server — Agent-CoreX