Skip to main content
Glama

Azure Container Apps Weather MCP Server

by riosraul
api_key_auth.py550 B
from fastapi import Security, HTTPException, status from fastapi.security import APIKeyHeader import os api_key_header = APIKeyHeader(name="x-api-key") def ensure_valid_api_key(api_key_header: str = Security(api_key_header)): def check_api_key(key: str) -> bool: valid_keys = os.environ.get("API_KEYS", "").split(",") return key in valid_keys and key != "" if not check_api_key(api_key_header): raise HTTPException( status_code=status.HTTP_403_FORBIDDEN, detail="Invalid API key", )

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/riosraul/curso-mcp'

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