Skip to main content
Glama

Python MCP Server Template

by HappyPathway
Dockerfile690 B
FROM python:3.12-slim # Prevent Python from writing pyc files to disc and buffering stdout/stderr ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Create a non-root user ARG USERNAME=vscode ARG USER_UID=1000 ARG USER_GID=$USER_UID RUN groupadd --gid $USER_GID $USERNAME \ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ && apt-get update \ && apt-get install -y sudo git \ && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ && chmod 0440 /etc/sudoers.d/$USERNAME # Install Python development tools RUN pip install --no-cache-dir black pylint # Set the default user USER $USERNAME # Set the working directory WORKDIR /workspace

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/HappyPathway/gcs-mcp-server'

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