We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bdfrost/mcp-servarr'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
Dockerfile•945 B
FROM python:3.12-slim
# Security: Create non-root user
RUN groupadd -r mcp && useradd -r -g mcp mcp
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY src/ ./src/
# Security: Set ownership and permissions
RUN chown -R mcp:mcp /app && \
chmod -R 555 /app/src && \
chmod 555 /app
# Security: Switch to non-root user
USER mcp
# Set Python to run in unbuffered mode for better logging
ENV PYTHONUNBUFFERED=1
# Default port for HTTP server
ENV PORT=8080
# Expose HTTP port
EXPOSE 8080
# Health check using HTTP endpoint
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health').read()" || exit 1
# Run HTTP server for REST API mode (Kubernetes deployment)
ENTRYPOINT ["python", "-u", "src/http_server.py"]