Skip to main content
Glama

FastAPI MCP Server

by bankszach
Dockerfile394 B
FROM python:3.12-slim ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # Cloud Run will set $PORT ENV PORT=8080 # Optional: set an API key to require inbound requests to send x-api-key header # ENV API_KEY=change-me CMD exec uvicorn app:app --host 0.0.0.0 --port ${PORT} --proxy-headers

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/fastapi-mcp'

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