trackmcp
Back to directory

MCP server for NewsAPI integration - enables AI assistants to search articles, get headlines, and browse news sources

0 stars TypeScriptAI & Machine Learning Updated May 30, 2025
aiapimcpmcp-servernews-apinewsapi

Documentation

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:

bash
npm install

2. Get a NewsAPI key:

    3. Configure environment:

    Create a `.env` file in the project root:

    env
    NEWS_API_KEY=your_api_key_here

    4. Build the project:

    bash
    npm run build

    MCP Configuration

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

    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):

    bash
    npm run dev

    Build for production:

    bash
    npm run build
    npm start

    Test NewsAPI integration:

    bash
    npm run test-api

    License

    MIT

    Frequently asked questions

    What is news_mcp?

    news_mcp is MCP server for NewsAPI integration - enables AI assistants to search articles, get headlines, and browse news sources

    How do I install news_mcp?

    Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

    Is news_mcp open source?

    Yes — it is hosted on GitHub at https://github.com/kcjonnyc/news_mcp.

    Related MCP tools

    Run your own MCP server? See who uses it and what to fix.

    Measure it with TrackMCP