Skip to main content
Glama

Python MCP Korea Weather Service

utils.py551 B
import httpx from typing import Any USER_AGENT = "ko-weather-app/1.0" async def make_api_request(url: str) -> dict[str, Any] | None: """Make a request to the API with proper error handling.""" headers = { "User-Agent": USER_AGENT, "Accept": "application/json" } async with httpx.AsyncClient() as client: try: response = await client.get(url, headers=headers, timeout=30.0) response.raise_for_status() return response.json() except Exception: return None

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/jikime/py-mcp-ko-weather'

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