Skip to main content
Glama
kcjonnyc

News API MCP Server

by kcjonnyc

News API MCP Server

A Model Context Protocol (MCP) server that provides access to news content through the NewsAPI.org service. This server enables AI assistants to search articles, get top headlines, and browse news sources.

Setup

  1. Install dependencies:

    npm install
  2. Get a NewsAPI key:

    • Sign up at NewsAPI.org

    • Get your free API key (up to 100 requests/day)

  3. Configure environment: Create a .env file in the project root:

    NEWS_API_KEY=your_api_key_here
  4. Build the project:

    npm run build

Related MCP server: GNews MCP Server

MCP Configuration

Add to your MCP settings (e.g., ~/.cursor/mcp.json):

{
  "mcpServers": {
    "news-mcp": {
      "command": "npm",
      "args": ["run", "start", "--prefix", "/path/to/news_mcp"]
    }
  }
}

Available Tools

  • searchArticles - Search through millions of articles from news sources worldwide.

  • getTopHeadlines - Get breaking news headlines and top stories.

  • getSources - Discover and filter available news sources.

Development

Development mode (with auto-reload):

npm run dev

Build for production:

npm run build
npm start

Test NewsAPI integration:

npm run test-api

License

MIT

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides AI agents access to news aggregation from 80,000+ sources via the NewsAPI. Supports both authenticated access with API keys and pay-per-use via HTTP 402 protocol with blockchain payment verification.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables searching news articles and retrieving top headlines from the GNews API with support for filtering by topic, language, and country.
    -
  • A
    license
    A
    quality
    A
    maintenance
    Get access to real-time and historical news data including top headlines from global sources via AllNewsAPI. Supports multiple filter options including keyword search, category, language and more
    4
    3
    1,109 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables fetching top headlines and searching news archives from NewsAPI.org, allowing AI agents to access current and historical news data.
    MIT