MCP.so
登录

MCP News API Server

@matteoantoci

关于 MCP News API Server

An MCP server exposing News API endpoints for searching and retrieving news articles. Provides reliable, easy-to-use tools for integrating news data into applications and workflows, with robust error handling and secure API key management.

基本信息

分类

开发工具

许可证

View license

运行时

node

传输方式

stdio

发布者

matteoantoci

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-newsapi": {
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP News API Server?

A Model Context Protocol (MCP) server that exposes endpoints from the News API to search for and retrieve news articles. It allows programmatic access to news data via the MCP protocol, intended for use with MCP-compatible clients.

How to use MCP News API Server?

Install dependencies with npm install, build with npm run build, set the NEWSAPI_KEY environment variable, and run via node build/index.js or through an MCP runner configured with stdio transport. The server exposes two tools: search_articles and get_top_headlines.

Key features of MCP News API Server

  • Searches news articles via the News API “Everything” endpoint.
  • Fetches top headlines via the News API “Top Headlines” endpoint.
  • Supports filtering by keywords, sources, domains, language, date range, and country.
  • Allows sorting by relevancy, popularity, or published date.
  • Provides pagination with configurable page size and page number.

Use cases of MCP News API Server

  • Automated news monitoring and aggregation for research or dashboards.
  • Building a custom news feed filtered by topic, source, or language.
  • Integrating breaking news or trending headlines into applications or workflows.

FAQ from MCP News API Server

What are the runtime requirements?

Node.js v18 or later and npm are required.

How do I provide my News API key?

Set the NEWSAPI_KEY environment variable before running the server, or configure it in your MCP runner's environment settings.

Where does the data come from?

All data is fetched from the News API (newsapi.org); the server itself does not store any articles.

What transport does the server use?

The server communicates via stdio transport, making it compatible with MCP runners that support that transport type.

How are errors handled?

The server provides error messages based on the News API response, including the API error message and code if available.

评论

开发工具 分类下的更多 MCP 服务器