Skip to main content
Glama

mcp-optimizer

Dockerfileโ€ข1.12 kB
# MCP Optimizer Docker Image FROM python:3.11-slim # Set environment variables ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PIP_NO_CACHE_DIR=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ g++ \ make \ cmake \ pkg-config \ libssl-dev \ libffi-dev \ && rm -rf /var/lib/apt/lists/* # Create app directory WORKDIR /app # Copy requirements first for better caching COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Install mcp-optimizer from PyPI RUN pip install --no-cache-dir mcp-optimizer # Copy application code COPY . . # Create non-root user RUN useradd --create-home --shell /bin/bash optimizer && \ chown -R optimizer:optimizer /app USER optimizer # Expose ports EXPOSE 8000 9090 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD python -c "import requests; requests.get('http://localhost:8000/health')" || exit 1 # Default command CMD ["python", "-m", "mcp_optimizer.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/dmitryanchikov/mcp-optimizer'

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