Skip to main content
Glama

Universal SQL MCP Server

by Wunrry
Dockerfile1.21 kB
# Use Python 3.13 slim image for smaller size FROM python:3.13-slim # Set environment variables ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 # Set work directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ # Required for mysql-connector-python default-libmysqlclient-dev \ pkg-config \ # Build tools for potential native extensions gcc \ g++ \ # Cleanup && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Install UV package manager for faster dependency resolution RUN pip install uv # Copy dependency files COPY pyproject.toml uv.lock* ./ # Install Python dependencies using UV RUN uv pip install --system --no-cache -r pyproject.toml # Copy application code COPY . . # Create non-root user for security RUN groupadd -r appuser && useradd -r -g appuser appuser \ && chown -R appuser:appuser /app USER appuser # Expose the port the app runs on EXPOSE 8000 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:8000/health || exit 1 # Default command CMD ["python", "main.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/Wunrry/Universal-SQL-MCP-Server'

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