Postgres

•

Enables Cursor to utilize a PostgreSQL database for storing model contexts.

Postgres enables Cursor to leverage a PostgreSQL database as a storage solution for model contexts, using the Model Context Protocol (MCP). It exposes tools for running SQL queries, listing database tables, and describing table schemas, allowing Cursor to explore and securely query the database. The server is designed for easy setup using Docker and Docker Compose.

Key Features

01Provides `postgres_list_tables` tool to list all database tables
02Offers `postgres_describe_table` tool to obtain specific table schemas
03Exposes `postgres_query` tool for read-only SQL queries
040 GitHub stars

Use Cases

01Exploring PostgreSQL database structure and data directly within Cursor
02Executing safe SQL queries from Cursor against a PostgreSQL database
03Using PostgreSQL as the backend database for Cursor model context storage