Postgres SSH

•

Enables AI tools to securely query and introspect PostgreSQL databases, offering optional SSH tunnel connectivity.

This cross-platform MCP server for PostgreSQL is designed to seamlessly integrate AI tools with your databases. It provides a secure conduit, allowing AI agents to query and introspect PostgreSQL schemas and data. With flexible connection options including direct, SSH configuration, and explicit SSH tunnel modes, it ensures secure access to both local and remote PostgreSQL instances, even through bastion hosts. It exposes a set of essential database tools for AI, making it a crucial component for AI applications requiring reliable and secure database interaction.

Key Features

01Exposes key database tools for AI (e.g., run_query, list_schemas, describe_table)
02Secure SSH connections with support for identity files and passphrases
03Cross-platform compatibility (macOS, Linux, Windows)
040 GitHub stars
05Flexible PostgreSQL connection modes (Direct, SSH config, Explicit SSH tunnel)
06Configurable read-only mode for query execution

Use Cases

01Integrating AI code assistants (like Claude, Cursor) with PostgreSQL databases for data interaction
02Enabling AI agents to perform schema introspection and data querying tasks on PostgreSQL
03Providing secure, tunneled access for AI tools to remote PostgreSQL instances via bastion hosts