Skip to main content
Glama

MCP Tools

by taylorleese
Dockerfile•1.62 kB
# Build stage FROM python:3.14-slim-bookworm@sha256:8a8d3341dfc71b7420256ceff425f64247da7e23fbe3fc23c3ea8cfbad59096d AS builder WORKDIR /app # Install build dependencies RUN apt-get update && \ apt-get install -y --no-install-recommends gcc && \ rm -rf /var/lib/apt/lists/* # Copy dependency files COPY pyproject.toml README.md LICENSE ./ COPY requirements.txt ./ # Create virtual environment and install dependencies RUN python -m venv /app/.venv && \ /app/.venv/bin/pip install --no-cache-dir --upgrade pip && \ /app/.venv/bin/pip install --no-cache-dir -r requirements.txt # Copy source code COPY src ./src # Install the project (non-editable for production) RUN /app/.venv/bin/pip install --no-cache-dir . # Runtime stage FROM python:3.14-slim-bookworm@sha256:8a8d3341dfc71b7420256ceff425f64247da7e23fbe3fc23c3ea8cfbad59096d WORKDIR /app # Copy the virtual environment from the builder COPY --from=builder /app/.venv /app/.venv # Add venv to PATH ENV PATH="/app/.venv/bin:$PATH" # Set Python to run in unbuffered mode for better logging ENV PYTHONUNBUFFERED=1 # Run as non-root user for security RUN useradd -m -u 1000 app && chown -R app:app /app USER app # Create directory for database with proper permissions RUN mkdir -p /home/app/.mcp-toolz # Set default database path ENV MCP_TOOLZ_DB_PATH=/home/app/.mcp-toolz/contexts.db # Health check - verify the MCP server process is running HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD pgrep -f "python -m mcp_server" > /dev/null || exit 1 # Run the MCP server ENTRYPOINT ["python", "-m", "mcp_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/taylorleese/mcp-tools'

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