Skip to main content
Glama

PyPI Package MCP Server

by Qvakk
Dockerfileโ€ข1.27 kB
# Multi-stage build for optimized image size FROM python:3.12-slim AS builder # Set working directory WORKDIR /app # Install build dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* # Copy project files COPY pyproject.toml . COPY pypi_mcp_server ./pypi_mcp_server # Production stage FROM python:3.12-slim # Set working directory WORKDIR /app # Install runtime dependencies only RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* # Copy files from builder COPY --from=builder /app . # Install Python dependencies RUN pip install --no-cache-dir -e . # Create non-root user for security RUN useradd -m -u 1000 mcp && chown -R mcp:mcp /app USER mcp # Set environment variables ENV PYTHONUNBUFFERED=1 ENV PYTHONDONTWRITEBYTECODE=1 ENV TRANSPORT_MODE=http ENV PORT=3001 # Optional: Set AUTH_TOKEN for API authentication # ENV AUTH_TOKEN=your-secret-token-here # Health check (disabled since FastMCP doesn't provide /health endpoint) # HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ # CMD curl -f http://localhost:3001/mcp || exit 1 # Start the server ENTRYPOINT ["pypi-package-mcp-server"]

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/Qvakk/python-package-mcp-server'

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