Skip to main content
Glama

Psi-MCP: Advanced Quantum Systems MCP Server

by manasp21
Dockerfileโ€ข1.71 kB
# Multi-stage build for Psi-MCP quantum systems server FROM python:3.11-slim as builder # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ gcc \ g++ \ gfortran \ libblas-dev \ liblapack-dev \ libffi-dev \ libssl-dev \ cmake \ git \ curl \ && 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 --upgrade pip setuptools wheel && \ pip install --no-cache-dir -r requirements.txt # Production stage FROM python:3.11-slim # Install runtime dependencies RUN apt-get update && apt-get install -y \ libblas3 \ liblapack3 \ libgomp1 \ && rm -rf /var/lib/apt/lists/* # Create non-root user for security RUN useradd -m -u 1000 quantum && \ mkdir -p /app && \ chown -R quantum:quantum /app # Set working directory WORKDIR /app # Copy Python packages from builder stage COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages COPY --from=builder /usr/local/bin /usr/local/bin # Copy application code COPY --chown=quantum:quantum . . # Switch to non-root user USER quantum # Expose port (will be set by environment variable) EXPOSE ${PORT:-8000} # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost:${PORT:-8000}/health || exit 1 # Set environment variables ENV PYTHONPATH=/app \ PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ OMP_NUM_THREADS=4 \ MKL_NUM_THREADS=4 # Start the server CMD ["python", "src/server.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/manasp21/Psi-MCP'

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