Skip to main content
Glama
hmumixaM

USCardForum MCP Server

by hmumixaM
Dockerfile1.8 kB
# USCardForum MCP Server # Multi-stage build for smaller image size # Build stage FROM python:3.12-slim AS builder WORKDIR /app # Install build dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ curl \ && rm -rf /var/lib/apt/lists/* # Install UV for fast package management RUN pip install --no-cache-dir uv # Copy project files COPY pyproject.toml uv.lock README.md ./ COPY src/ src/ # Install dependencies RUN uv sync --frozen --no-dev # Runtime stage FROM python:3.12-slim AS runtime WORKDIR /app # Install runtime dependencies for Playwright RUN apt-get update && apt-get install -y --no-install-recommends \ # Playwright dependencies libnss3 \ libnspr4 \ libdbus-1-3 \ libatk1.0-0 \ libatk-bridge2.0-0 \ libcups2 \ libdrm2 \ libxkbcommon0 \ libatspi2.0-0 \ libxcomposite1 \ libxdamage1 \ libxfixes3 \ libxrandr2 \ libgbm1 \ libasound2 \ libpango-1.0-0 \ libcairo2 \ # Fonts fonts-liberation \ fonts-noto-cjk \ # Clean up && rm -rf /var/lib/apt/lists/* # Copy virtual environment from builder COPY --from=builder /app/.venv /app/.venv # Copy source code COPY src/ src/ # Set up PATH to use virtual environment ENV PATH="/app/.venv/bin:$PATH" ENV VIRTUAL_ENV="/app/.venv" # Install Playwright browsers RUN playwright install chromium # Default environment variables ENV MCP_TRANSPORT=streamable-http ENV MCP_HOST=0.0.0.0 ENV MCP_PORT=8000 ENV USCARDFORUM_URL=https://www.uscardforum.com ENV USCARDFORUM_TIMEOUT=15.0 # Expose port EXPOSE 8000 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:${MCP_PORT}/health || exit 1 # Run the server CMD ["uscardforum"]

Latest Blog Posts

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/hmumixaM/uscardforum-mcp4'

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