Skip to main content
Glama
news_tool.py346 B
import requests def get_news(topic: str): url = f"https://gnews.io/api/v4/search?q={topic}&lang=en&max=5&apikey=b3dfe50f6d17cc49ee5de4aa10d3a94f" # note: 'demo' key = limited but public response = requests.get(url).json() if "articles" not in response: return {"error": response} return response["articles"]

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/jamalexfo/mcp-api-tools'

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