FROM python:3.10-slim
# Set work directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . /app
# Expose HTTP/SSE default port
EXPOSE 8000
# Optionally set the connection string at run time:
# docker run -e POSTGRES_CONNECTION_STRING="postgresql://user:pass@host:5432/db" mcp-postgres
# Start the MCP server in stdio by default. Override with --transport.
CMD [ "python", "postgres_server.py" ]
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/gldc/mcp-postgres'
If you have feedback or need assistance with the MCP directory API, please join our Discord server