Media
Data source: GDELT 2.0 API, Hacker News (Algolia)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/news-intelligence/
claude_desktop_config.json
{
"mcpServers": {
"gnist-news-intelligence": {
"url": "https://context.gnist.ai/mcp/news-intelligence/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/news-intelligence/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_news", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/news-intelligence/
7 endpoints available:
GET /rest/news-intelligence/search_newsGET /rest/news-intelligence/get_trending_storiesGET /rest/news-intelligence/get_news_sentimentGET /rest/news-intelligence/get_news_coverageGET /rest/news-intelligence/get_news_geographyGET /rest/news-intelligence/list_news_intelligence_sourcesGET /rest/news-intelligence/report_feedback
Shell
curl "https://context.gnist.ai/rest/news-intelligence/search_news?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/news-intelligence/search_news",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc news-intelligence
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (7)
search_newsSearch news across GDELT (global media, 150+ countries) and Hacker News (tech community) in parallel.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search query for news articles. |
timespan | string | optional | GDELT time window (e.g. '24h', '7d', '3m'). (default: "24h") |
max_results | integer | optional | Max articles to return. (default: 25) |
source_country | any | optional | Filter GDELT by source country code. |
source_lang | any | optional | Filter GDELT by source language code. |
get_trending_storiesGet trending tech and startup stories from Hacker News.
| Parameter | Type | Required | Description |
|---|---|---|---|
hours_ago | integer | optional | Lookback window in hours. (default: 24) |
min_points | integer | optional | Minimum points threshold. (default: 10) |
max_results | integer | optional | Max stories to return. (default: 25) |
get_news_sentimentGet media sentiment timeline for a topic from global news sources (GDELT).
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Topic to analyze sentiment for. |
timespan | string | optional | Time window (e.g. '24h', '7d', '3m'). (default: "7d") |
smooth | integer | optional | Smoothing factor for timeline. (default: 0) |
get_news_coverageGet media coverage volume timeline for a topic from global news sources (GDELT).
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Topic to measure coverage for. |
timespan | string | optional | Time window (e.g. '24h', '7d', '3m'). (default: "7d") |
smooth | integer | optional | Smoothing factor for timeline. (default: 0) |
get_news_geographyGet geographic breakdown of media coverage for a topic from GDELT.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Topic to analyze geographic coverage for. |
timespan | string | optional | Time window (e.g. '24h', '7d', '3m'). (default: "24h") |
list_news_intelligence_sourcesList all news intelligence data sources, their coverage, and data types.
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |