We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/onoda4480/Document-Server-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
Dockerfile•1.25 kB
# Multi-stage build for smaller image size
FROM python:3.11-slim as builder
# Set working directory
WORKDIR /app
# Install poetry
RUN pip install --no-cache-dir poetry
# Copy dependency files
COPY pyproject.toml ./
# Configure poetry to not create virtual environment (we're in a container)
RUN poetry config virtualenvs.create false
# Install dependencies
RUN poetry install --no-dev --no-root
# Final stage
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy installed packages from builder
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
# Copy application code
COPY src/ ./src/
# Create docs directory (can be overridden by volume mount)
RUN mkdir -p /app/docs
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
MCP_DOCS_DIR=/app/docs
# Run as non-root user for security
RUN useradd -m -u 1000 mcpuser && \
chown -R mcpuser:mcpuser /app
USER mcpuser
# Health check (optional)
# Note: For STDIO servers, this is not typically used
# HEALTHCHECK --interval=30s --timeout=3s \
# CMD python -c "import sys; sys.exit(0)"
# Entry point
CMD ["python", "-m", "mcp_server.main"]