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

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

F
license - not found
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kcjonnyc/news_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server