Skip to main content
Glama

Python MCP Sandbox

by JohanLi233
Dockerfile862 B
FROM python:3.12-slim WORKDIR /app # Install basic tools and matplotlib system dependencies RUN apt-get update && apt-get install -y \ curl \ libfreetype6-dev \ libpng-dev \ pkg-config \ && rm -rf /var/lib/apt/lists/* # Install uv RUN pip install uv # Create non-root user RUN groupadd -r python && useradd -r -g python -d /home/python -m python # Provide directory for additional packages installation RUN mkdir -p /app/results && chown -R python:python /app # Set secure execution user USER python # Create and activate uv venv RUN uv venv && \ echo 'source .venv/bin/activate' >> /home/python/.bashrc ENV PATH="/app/.venv/bin:$PATH" ENV VIRTUAL_ENV="/app/.venv" # Set working directory to results directory WORKDIR /app/results # Container entry point - use sleep infinity to keep container running CMD ["sleep", "infinity"]

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/JohanLi233/python-mcp-sandbox'

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