Skip to main content
Glama

Cloudflare MySQL MCP Server

MIT License
2
  • Apple
  • Linux
Dockerfile1.34 kB
# Multi-stage build for MySQL MCP Server FROM python:3.11-slim as builder # Install build dependencies RUN apt-get update && apt-get install -y \ gcc \ g++ \ make \ default-libmysqlclient-dev \ pkg-config \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy requirements first for better caching COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir --target=/app/deps -r requirements.txt # Production stage FROM python:3.11-slim # Install runtime dependencies RUN apt-get update && apt-get install -y \ default-libmysqlclient-dev \ ca-certificates \ && rm -rf /var/lib/apt/lists/* # Create non-root user RUN useradd -m -u 1000 mcpuser # Set working directory WORKDIR /app # Copy dependencies from builder COPY --from=builder /app/deps /app/deps # Copy application code COPY src/ /app/src/ COPY setup.py /app/ COPY README.md /app/ # Set Python path ENV PYTHONPATH=/app/deps:$PYTHONPATH # Change ownership RUN chown -R mcpuser:mcpuser /app # Switch to non-root user USER mcpuser # Expose port EXPOSE 8000 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD python -c "import httpx; httpx.get('http://localhost:8000/health').raise_for_status()" # Run the server CMD ["python", "-m", "src.main"]

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/vedantparmar12/MCP-Procuction_MySQL'

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