Skip to main content
Glama

Hello World MCP FastAPI Endpoint

by bankszach
Dockerfile598 B
# syntax=docker/dockerfile:1 FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ PIP_NO_CACHE_DIR=1 WORKDIR /app # System deps only if needed; keep image small RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN python -m pip install --upgrade pip && \ python -m pip install -r requirements.txt COPY app.py . # Cloud Run injects PORT; default to 8080 locally EXPOSE 8080 CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --proxy-headers --port ${PORT:-8080}"]

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/bankszach/mcp-date-and-time'

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