Back to MCP directory
publicPublicdnsLocal runtime

news-mcp-server

一个基于newsdata.io的MCP服务器,用于获取最新新闻数据。

article

README

🚀 新闻数据MCP服务器

新闻数据MCP服务器可借助newsdata.io获取最新新闻。通过该服务器,用户能够轻松获取各类新闻资讯。 点击访问服务器

🚀 快速开始

📦 安装指南

如果你克隆了这个仓库,可使用以下配置:

{
  "mcpServers": {
    "news": {
        "command": "你自己的Node.js路径",
        "args": [
            "你dist文件夹的索引js路径"
        ],
        "env": {
            "NEWS_API_KEY": "从新闻数据获得的API密钥",
            "NEWS_BASE_URL": "https://newsdata.io"
        }
    }
  }
}

你也可以使用npx,配置如下:

{
  "mcpServers": {
    "news": {
        "command": "你的npx路径",
        "args": [
            "news-mcp-server"
        ],
        "env": {
            "NEWS_API_KEY": "从新闻数据获得的API密钥",
            "NEWS_BASE_URL": "https://newsdata.io"
        }
    }
  }
}

💻 使用示例

基础用法

以下是一些示例提示,展示如何使用该服务器获取新闻:

给我美国今天 trending 的最新新闻。
给我尼泊尔的顶级新闻头条(尼泊尔语)。
给我 Bhutan 的新闻来源。
给我 Lionel Messi 最新的消息。
给我最新的加密货币新闻。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client