Skip to main content
Glama

MCP PostgreSQL Operations

Dockerfile.MCP-Server•1.06 kB
FROM rockylinux:9.3 ARG PYTHON_VERSION=3.12 WORKDIR /app # Install system dependencies including PostgreSQL client libraries RUN dnf install -y epel-release \ && dnf install -y python${PYTHON_VERSION} python${PYTHON_VERSION}-pip git procps-ng lsof telnet screen iputils nmap-ncat \ postgresql-devel postgresql gcc python${PYTHON_VERSION}-devel libffi-devel openssl-devel \ && dnf clean all \ && update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1000 --slave /usr/bin/pip pip /usr/bin/pip${PYTHON_VERSION} # Install Python dependencies RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir \ 'uv>=0.8.5' \ 'mcpo>=0.0.17' \ 'fastmcp>=2.12.3' \ 'aiohttp>=3.12.0' \ 'asyncpg>=0.29.0' \ 'psycopg2-binary>=2.9.7' # Copy application files COPY . /app/ # Set environment variables for PostgreSQL connections ENV PYTHONPATH=/app/src ENV PYTHONUNBUFFERED=1 CMD ["/bin/bash", "/app/scripts/mcp-server-docker-cmd.sh"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/call518/MCP-PostgreSQL-Ops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server