Skip to main content
Glama
Dockerfile805 B
# Multi-stage build for Python MCP server with uv FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS builder WORKDIR /app # Copy project files COPY pyproject.toml ./ COPY requirements.txt ./ COPY server.py ./ COPY app.py ./ COPY http_server.py ./ # Install dependencies using uv ENV UV_COMPILE_BYTECODE=1 \ UV_LINK_MODE=copy RUN uv venv && \ uv pip install -r requirements.txt # Final stage FROM python:3.12-slim-bookworm WORKDIR /app # Copy virtual environment and application from builder COPY --from=builder /app/.venv /app/.venv COPY --from=builder /app/*.py ./ # Set PATH to use virtual environment ENV PATH="/app/.venv/bin:$PATH" \ VIRTUAL_ENV="/app/.venv" \ PORT=8081 # Expose port for HTTP server EXPOSE 8081 # Run the HTTP MCP server CMD ["python", "http_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/rftsngl/SpaceX-mcp'

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