Connector guide1-minute read3 MCP toolsEN · DE · IT

如何通过 MCP 将 NewsAPI 连接到 ChatGPT

通过任何 AI 代理从 newsapi.org 搜索全球新闻头条、来源和文章。3 个工具,API 密钥认证。

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

MCP connector

NewsAPI

Search worldwide news headlines, sources and articles from newsapi.org via any AI agent. 3 tools, API-key auth.

Tools

3

Region

INTL

Category

Data & Analytics

Authentication

API Key

Required env vars

NEWSAPI_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the NewsAPI in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

通过任何 AI 代理从 newsapi.org 搜索全球新闻头条、来源和文章。3 个工具,API 密钥认证。

试试这样问

NewsAPI 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

NewsAPI · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 不需要安装?直接使用 cloud.anythingmcp.com 登录,点击 Connectors → NewsAPI,粘贴你的凭据,生成一个 MCP API 密钥 — 完成。无需 Docker,无需 git clone,无需本地服务器。

NewsAPI + ChatGPT

通过任何 AI 代理从 newsapi.org 搜索全球新闻头条、来源和文章。3 个工具,API 密钥认证。

前提条件

请参阅连接器中包含的完整设置说明(在你选择连接器时可在应用内商店中查看)。此连接器所需的环境变量为:

NEWSAPI_API_KEY

第一步 — 获取凭据

此连接器封装了 NewsAPI v2 REST API (newsapi.org)。

设置

  1. https://newsapi.org/register 注册以获取免费的开发者密钥。
  2. 设置 NEWSAPI_API_KEY

认证:NewsAPI 接受密钥作为 X-Api-Key 头(此适配器使用)或 apiKey 查询字符串。我们使用头部,以便它不会出现在 URL 日志中。

计划限制 — 重要

  • 开发者(免费):每天 100 次请求,文章延迟 24 小时,不可用于商业用途,结果限制为每个查询 100 条。
  • 付费计划:实时文章,无每日限制,完整历史档案。

…(在应用内连接器说明中继续)

第二步 — 安装适配器

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

第三步 — 在 ChatGPT 中添加连接器

ChatGPT 通过 Connectors 功能支持 MCP 服务器(Plus / Pro / Team / Enterprise 计划)。免费层不支持自定义连接器。

  1. 打开 ChatGPT → 设置 → Connectors(或点击创作器中的 🔧 图标 → 管理连接器)。
  2. 点击 "添加自定义连接器"
  3. 填写:
    • 名称: NewsAPI
    • MCP 服务器 URL: https://cloud.anythingmcp.com/mcp
    • 认证: Bearer token → 粘贴你的 MCP API 密钥(来自 AnythingMCP → 个人资料 → MCP API 密钥 → 新密钥
  4. 点击 连接 以授权。

可用工具

工具功能
newsapi_everything从 80,000 多个来源的数百万篇文章中进行完整档案搜索
newsapi_top_headlines突发新闻头条
newsapi_sources列出 NewsAPI 跟踪的所有新闻来源

常见问题

ChatGPT 免费层是否支持自定义 MCP 连接器? 不 — 需要 Plus、Pro、Team 或 Enterprise 计划。

下一步

这份指南对你有帮助吗?

Ready to ship

Your NewsAPI agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

相关指南