Skip to main content
Glama
Dockerfile768 B
# Multi-stage build for weather-mcp-server FROM python:3.12-slim-bookworm as base # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # Copy project files COPY pyproject.toml requirements.txt ./ COPY server.py ./ # Install Python dependencies RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # Set environment variables ENV PYTHONUNBUFFERED=1 ENV PORT=8081 # Expose port (Smithery uses 8081) EXPOSE 8081 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD python -c "import sys; sys.exit(0)" # Run the MCP server CMD ["python", "server.py"]

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/jjyaoao/weather-mcp-server'

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