npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@missionsquad/mcp-gdelt

v1.0.0

Published

Model Context Protocol server for GDELT DOC 2.0 API

Readme

GDELT MCP Server

A Model Context Protocol (MCP) server that provides access to the GDELT DOC 2.0 API for searching global news articles and images.

Features

  • Search Articles: Search across 65 languages of global news coverage (3 months rolling window)
  • Search Images: Query the Visual Knowledge Graph (VGKG) for news imagery
  • Custom Defaults: Optimized defaults (ArtList mode, JSON format, 50 records, newest first, 1 month timespan)
  • Boolean Queries: Support for OR, AND operators and exact phrase matching
  • Flexible Timespan: Search from 1 hour to 3 months of coverage

Installation

npm install
npm run build

Configuration

The server can be configured using environment variables. Create a .env file:

cp .env.example .env

Available options:

  • GDELT_API_TIMEOUT: API request timeout in milliseconds (default: 30000)
  • GDELT_API_BASE_URL: GDELT API base URL (default: https://api.gdeltproject.org/api/v2/doc/doc)
  • GDELT_DEFAULT_MAX_RECORDS: Default maximum records to return (default: 50)
  • GDELT_DEFAULT_TIMESPAN: Default time period for searches (default: 1month)
  • GDELT_USER_AGENT: User agent string (default: GDELT-MCP-Server/1.0)
  • LOG_LEVEL: Logging level - debug, info, warn, error (default: info)

Usage

This MCP server is designed to be used with MCP-compatible clients. Add it to your MCP client configuration:

{
  "mcpServers": {
    "gdelt": {
      "command": "node",
      "args": ["/path/to/gdelt-mcp-server/dist/index.js"]
    }
  }
}

Available Tools

search_articles

Search GDELT's global news database for articles.

Parameters:

  • query (required): Search query with support for:
    • Exact phrases: "climate change"
    • OR operator: climate OR environment
    • AND operator: climate AND policy
  • maxRecords (optional): Number of results (1-250, default: 50)
  • timespan (optional): Time period like "1month", "7d", "24h" (default: "1month")
  • sort (optional): Sort order - DateDesc, DateAsc, ToneAsc, ToneDesc, HybridRel
  • startDateTime (optional): Start date in YYYYMMDDHHMMSS format
  • endDateTime (optional): End date in YYYYMMDDHHMMSS format

Example:

{
  "query": "\"climate change\" OR \"global warming\"",
  "maxRecords": 25,
  "timespan": "7d"
}

search_images

Search GDELT's Visual Knowledge Graph for news images.

Parameters:

  • query (required): Search term (e.g., "fire", "protest", "flood")
  • maxRecords (optional): Number of images (1-250, default: 50)
  • timespan (optional): Time period (default: "1month")
  • imageType (optional):
    • imagetag: Search by visual content (what the AI sees in the image)
    • imagewebtag: Search by caption/context text
    • imageocrmeta: Search by OCR text and metadata

Example:

{
  "query": "wildfire",
  "maxRecords": 30,
  "imageType": "imagetag",
  "timespan": "7d"
}

API Details

This server uses the GDELT DOC 2.0 API which provides:

  • Rolling 3-month window of coverage (back to January 2017)
  • 65 languages with English search terms
  • Deep learning-powered image analysis
  • Real-time and historical news data

License

MIT