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

newsapi-mcp

v1.1.0

Published

MCP server for NewsAPI.ai (Event Registry)

Readme

NewsAPI.ai MCP Server

An MCP server for real-time news intelligence — search articles, track events, and analyze text through natural conversation.

Make sure to follow the NewsAPI.ai Terms of Service.

Quick Start

  1. Get an API key at newsapi.ai/register (free tier: one time 2,000 tokens)
  2. Add to your MCP client (see configuration examples below)

Configuration

The server runs via npx -y newsapi-mcp with your API key in the NEWSAPI_KEY environment variable. Below are examples for popular MCP clients.

Claude Desktop

Add to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "newsapi": {
      "command": "npx",
      "args": ["-y", "newsapi-mcp"],
      "env": {
        "NEWSAPI_KEY": "your_api_key_here"
      }
    }
  }
}

Claude Code

claude mcp add newsapi -e NEWSAPI_KEY=your_api_key_here -- npx -y newsapi-mcp

Or add to .claude/settings.json (project) or ~/.claude/settings.json (global):

{
  "mcpServers": {
    "newsapi": {
      "command": "npx",
      "args": ["-y", "newsapi-mcp"],
      "env": {
        "NEWSAPI_KEY": "your_api_key_here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "newsapi": {
      "command": "npx",
      "args": ["-y", "newsapi-mcp"],
      "env": {
        "NEWSAPI_KEY": "your_api_key_here"
      }
    }
  }
}

Other MCP Clients

Use the same JSON structure above. The server expects:

  • Command: npx
  • Args: ["-y", "newsapi-mcp"]
  • Environment: NEWSAPI_KEY set to your API key

What You Can Do

Search News Articles

Find articles by keyword, source, author, date, language, sentiment, and more.

"Find recent articles about the EU AI Act"

"What has Reuters published about climate change this week?"

"Show me negative-sentiment articles about Tesla from the last 3 days"

Track Events

Events are clusters of related articles about the same real-world happening.

"Find events related to mergers and acquisitions in the tech sector"

"What larger events happened in Slovenia last week?"

Use Topic Pages

Pull articles or events from saved Topic Pages on NewsAPI.ai.

"Make a summary of the latest articles from my topic page on cyber-security with URI b220679c-95ff-4e4e-a1fa-ad8b3905b7df"

Available Tools

| Category | Tools | |----------|-------| | Articles | search_articles, get_article_details | | Events | search_events, get_event_details | | Topic Pages | get_topic_page_articles, get_topic_page_events | | Lookups | suggest (supports concepts, categories, sources, locations, authors) | | Usage | get_api_usage |

Links