Skip to main content
Glama
today.py408 B
from datetime import UTC, datetime, timedelta def get_yesterday_date() -> str: """Get yesterday's date as a string in YYYY-MM-DD format using UTC now.""" yesterday = datetime.now(UTC).date() - timedelta(days=1) return yesterday.isoformat() def get_today_date() -> str: """Get today's date as a string in YYYY-MM-DD format using UTC now.""" return datetime.now(UTC).date().isoformat()

Latest Blog Posts

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/BnJam/stac-mcp'

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