mcp servers · featured
PostgreSQL MCP Server
Give your AI agent direct access to PostgreSQL databases. Run queries, inspect schemas, and analyze data without leaving your AI conversation.
install via your agent of choice
❯ npx -y @modelcontextprotocol/server-postgres
## what it does
What it does
Connect your AI agent directly to PostgreSQL databases. Query data, inspect schemas, and get AI-powered analysis of your database without switching tools.
Installation
npx -y @modelcontextprotocol/server-postgres postgresql://user:pass@localhost:5432/mydb
Claude Desktop config
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:pass@localhost:5432/mydb"]
}
}
}
Safety
⚠️ Use a read-only database user for production databases. The MCP server can execute any SQL the AI generates.
Related
- SQLite MCP — Local database access
- Supabase MCP — Supabase platform access
- MCP Servers Explained
## compatibility
claude-desktop ✓
claude-code ✓
cursor ✓
## exposed tools
→ query
→ describe_table
→ list_tables
→ explain_query
## embed this badge
cache ✓ in cache.directory
