pg-mcp-server

MCP Server for Postgres

GitHub Stars

95

User Rating

Not Rated

Favorites

0

Views

20

Forks

6

Issues

0

Installation
Difficulty
Beginner
Estimated Time
5-10 minutes

Installation

Installation

Prerequisites

Python: 3.13 or higher
PostgreSQL: Required database

Installation Steps

1. Clone Repository

bash
git clone https://github.com/stuzero/pg-mcp-server.git
cd pg-mcp-server

2. Build and Run with Docker

bash
docker-compose up -d

3. Manual Installation

bash

Install dependencies and create a virtual environment

uv sync

Activate the virtual environment

source .venv/bin/activate # On Windows: .venv\Scripts\activate

Run the server

python server.py

Troubleshooting

Common Issues

Issue: Server won't start Solution: Check Python version and reinstall dependencies.

Additional Resources