Skip to main content
MCP Server URL: https://gdelt-cloud-mcp.fastmcp.app/mcp

Quick Setup

1

Generate API key

Go to SettingsAPI Keys and create a new key.
Copy your API key immediately — it’s only shown once!
2

Choose your integration

FastMCP

Direct Python integration for custom agents

LangChain

Build AI agents with LangChain framework
3

Connect and query

Use the examples below to connect and start querying GDELT data.

Configuration Examples

from fastmcp import Client
from fastmcp.client.auth import BearerAuth
import os

async with Client(
    "https://gdelt-cloud-mcp.fastmcp.app/mcp",
    auth=BearerAuth(token=os.environ["GDELT_API_KEY"])
) as client:
    # List available tools
    tools = await client.get_tools()
    print(f"Available tools: {[t.name for t in tools]}")
    
    # Discover today's top stories
    result = await client.call_tool(
        "get_media_events",
        arguments={"days": 1, "limit": 5, "detail": "summary"}
    )
    print(result)
    
    # Deep-dive into a cluster
    result = await client.call_tool(
        "get_media_event_cluster",
        arguments={"cluster_id": "abc123", "detail": "summary"}
    )
    print(result)
    
    # Look up an entity
    result = await client.call_tool(
        "get_entity",
        arguments={
            "canonical_name": "elon musk",
            "type": "person",
            "days": 7,
            "detail": "summary"
        }
    )
    print(result)

Available MCP Capabilities

Tools

Discover top story clusters. Start here for any news-related query.
result = await client.call_tool(
    "get_media_events",
    arguments={"days": 7, "category": "conflict_security", "detail": "summary", "limit": 10}
)
Deep-dive into a single story cluster with all articles and entities.
result = await client.call_tool(
    "get_media_event_cluster",
    arguments={"cluster_id": "abc123", "detail": "summary"}
)
Wikipedia-linked entity profile with linked stories and co-occurrences.
result = await client.call_tool(
    "get_entity",
    arguments={"canonical_name": "donald trump", "type": "person", "days": 7, "detail": "summary"}
)
News domain profile with stats, top entities, and recent articles.
result = await client.call_tool(
    "get_domain",
    arguments={"domain": "reuters.com", "days": 7}
)

Resources

Access CAMEO code references via resource URIs:
  • gdelt://codes/cameo-country — Country codes for actor filtering
  • gdelt://codes/cameo-event — Event type codes (01–20)
  • gdelt://codes/goldstein-scale — Goldstein scale reference

Prompts

  • gdelt_system_prompt — Core system prompt for GDELT analysis

Next Steps