mcp-postgres-server

mcp-postgres-server

0

The MCP Postgres Server is designed to implement the Model Context Protocol for the Cursor platform, utilizing a PostgreSQL database to store model contexts. It facilitates secure exploration and querying of the database.

MCP Postgres Server

This server implements the Model Context Protocol (MCP) for Cursor, allowing the use of a PostgreSQL database as storage for model contexts.

Prerequisites

  • Docker
  • Docker Compose

Installation and Start

  1. Clone this repository
  2. Start the server with Docker Compose

Configuration in Cursor

  1. Open Cursor
  2. Go to Settings > MCP
  3. Add a new connection with the specified settings

Server Features

The MCP PostgreSQL server exposes the following tools for Cursor:

  • Execute read-only SQL queries
  • List all tables in the database
  • Describe the schema of a specific table