AllNewsAPI
概览
作者提供的说明(英文原文)
Get access to real-time and historical news data including top headlines from global sources
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 搜索与 AI 记忆
- 你需要填写:ALLNEWSAPI_KEY, X-API-Key
安装
选择你使用的 AI 应用,然后复制设置。
通过 4/5 项检查 · 你的提问会经过开发者的服务器(mcp.allnewsapi.com)
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude · 约 5 分钟
需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个
打开 Claude 的 Connectors 页面
CustomizeConnectors
点击“+ Add” → “Add custom connector”,填写这 2 项
把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue
Name · 名称AllNewsAPIRemote MCP server URL · 地址https://mcp.allnewsapi.com/mcp在 Request headers 下添加这个名称和值
Header 名称X-API-Key值<在这里粘贴你的密钥>只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
Authentication 保持 Claude 检测到的设置,然后点击 Add
在聊天中开启
+ConnectorsAllNewsAPI
试一试
用 AllNewsAPI 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 AllNewsAPI,或回答中出现 AllNewsAPI 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 AllNewsAPI
AllNewsAPI 连接时需要你自己的密钥,但 OpenAI 帮助页面只说明了 OAuth 登录,没有我们能核实的填密钥方式
你可以改用这些方式
A · 使用能连接 AllNewsAPI 的应用
- 需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个
- 需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费)
- 需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费)
- 需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费)
B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- AIHOT✓ ChatGPT
- Sui Knowledge Base (kapa.ai)✓ ChatGPT
- Exa✓ ChatGPT
可连接 Claude Code · 约 5 分钟
需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --transport http allnewsapi https://mcp.allnewsapi.com/mcp --header 'X-API-Key: your-value'按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 AllNewsAPI 在列表中并显示已连接
试一试
用 AllNewsAPI 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 AllNewsAPI,或回答中出现 AllNewsAPI 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor · 约 5 分钟
需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费)
填写你的密钥
在 AllNewsAPI 的设置中,X-API-Key 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 AllNewsAPI 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 AllNewsAPI,或回答中出现 AllNewsAPI 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code · 约 5 分钟
需要 AllNewsAPI 的密钥(在开发者网站注册,可能收费)
填写你的密钥
在 AllNewsAPI 的设置中,X-API-Key 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 AllNewsAPI 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 AllNewsAPI,或回答中出现 AllNewsAPI 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
通过网页连接
Claude Code
claude mcp add --transport http allnewsapi https://mcp.allnewsapi.com/mcp --header 'X-API-Key: your-value'Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"allnewsapi": {
"url": "https://mcp.allnewsapi.com/mcp",
"headers": {
"X-API-Key": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"allnewsapi": {
"type": "http",
"url": "https://mcp.allnewsapi.com/mcp",
"headers": {
"X-API-Key": "your-value"
}
}
}
}安装在电脑上
Claude Code
claude mcp add allnewsapi --env ALLNEWSAPI_KEY=your-value -- npx -y allnewsapi-mcp --apikey your-valueClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"allnewsapi": {
"command": "npx",
"args": [
"-y",
"allnewsapi-mcp",
"--apikey",
"your-value"
],
"env": {
"ALLNEWSAPI_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"allnewsapi": {
"command": "npx",
"args": [
"-y",
"allnewsapi-mcp",
"--apikey",
"your-value"
],
"env": {
"ALLNEWSAPI_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"allnewsapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"allnewsapi-mcp",
"--apikey",
"your-value"
],
"env": {
"ALLNEWSAPI_KEY": "your-value"
}
}
}
}需要你填写的值
ALLNEWSAPI_KEY机密 envYour AllNewsAPI key, used when --apikey is not passed as an argument.X-API-Key机密 必填 HTTP headerYour AllNewsAPI key (get one at https://allnewsapi.com).
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
通过互联网连接,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
服务器要求先登录,才会列出它的工具。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 AllNewsAPI 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于上个月
- ✓ 通过
有许可证
使用 MIT
- ✓ 通过
端点有响应
在 103 毫秒内响应(HTTP 401)
- ! 注意
使用 OAuth 登录
需要你自己复制粘贴密钥或令牌
- … 尚未检查
工具描述中没有隐藏指令
尚未检查;我们会在检查端点时读取工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5886 个服务器的 81%
- 发布到注册中心的时间比此分类中其他 5886 个服务器的 38% 更新
- 基础检查结果等于或优于此分类中其他 5886 个服务器的 49%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
AllNewsAPI 安全吗?
它在 5 项适用的基础检查中通过了 4 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:ALLNEWSAPI_KEY, X-API-Key
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于上个月,最新版本(1.1.9)于2个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于支持远程 MCP 的应用,例如 ChatGPT Business 及以上方案。
有什么可以替代它?
同一分类中有:Ruflo, Context7, Metabase
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
AllNewsAPI MCP
Get access to real-time and historical news data including top headlines from global sources via AllNewsAPI. Supports multiple filter options including keyword search, category, language and more. This Model Context Protocol server lets MCP clients (Claude, Cursor, VS Code, Windsurf, and others) search news articles, fetch top headlines, and check your API usage.
You'll need an API key — get one at allnewsapi.com.
Quick start
Pick one of the two ways to connect.
Hosted (no install)
Point your client at the hosted server and pass your API key in the X-API-Key header:
{
"mcpServers": { "allnewsapi": { "type": "remote", "url": "https://mcp.allnewsapi.com/mcp", "headers": { "X-API-Key": "YOUR_API_KEY_HERE" } } } }
Prefer a URL-only setup? Use https://mcp.allnewsapi.com/mcp?apikey=YOUR_API_KEY_HERE instead of the header.
The key can be supplied three ways, in this order of precedence: the X-API-Key header, the apikey query parameter, or an Authorization: Bearer YOUR_API_KEY_HERE header (a fallback for clients that only support bearer tokens).
Local (npx)
Runs the server on your machine via npx — no clone or build needed:
{
"mcpServers": { "allnewsapi": { "command": "npx", "args": ["allnewsapi-mcp@latest", "--apikey", "YOUR_API_KEY_HERE"] } } }
You can also supply the key as an ALLNEWSAPI_KEY environment variable instead of --apikey.
Client-specific setup
Claude Desktop
Edit your config (Settings → Developer → Edit Config) and add the local or hosted snippet above. Full guide: modelcontextprotocol.io/quickstart/user.
Cursor
Cursor Settings → MCP → Add new MCP Server. Name it "AllNewsAPI", choose the command type, and enter:
npx allnewsapi-mcp@latest --apikey YOUR_API_KEY_HERE
VS Code
code --add-mcp '{"name":"allnewsapi","command":"npx","args":["allnewsapi-mcp@latest","--apikey","YOUR_API_KEY_HERE"]}'
The server is then available to your GitHub Copilot agent. Full guide: VS Code MCP docs.
Windsurf
Add the local or hosted snippet above to your MCP config. Full guide: Windsurf MCP docs.
Claude Code
Add it from the terminal — local:
claude mcp add allnewsapi -- npx allnewsapi-mcp@latest --apikey YOUR_API_KEY_HERE
Or the hosted server:
claude mcp add --transport http allnewsapi https://mcp.allnewsapi.com/mcp --header "X-API-Key: YOUR_API_KEY_HERE"
Claude Cowork
Cowork runs inside Claude Desktop. Add the hosted server as a custom connector — Customize → Connectors → + — and enter the URL with your key:
https://mcp.allnewsapi.com/mcp?apikey=YOUR_API_KEY_HERE
For a local setup, use the Claude Desktop config shown above.
OpenWork
OpenWork is an open-source Cowork alternative with MCP support. Add AllNewsAPI using either the local command (npx allnewsapi-mcp@latest --apikey YOUR_API_KEY_HERE) or the hosted URL above, following OpenWork's MCP configuration.
Any other MCP client: point it at the hosted URL (https://mcp.allnewsapi.com/mcp) or run the npx allnewsapi-mcp@latest command with your API key.
Tools
search-news
Search articles by keyword, date, and filters.
| Parameter | Type | Description |
|---|---|---|
q | string | Keywords to search for |
startDate / endDate | string | Date range (YYYY-MM-DD) |
content | boolean | Include full article content (default: false) |
lang | string | Language code(s), e.g. en, fr |
country | string | Country code(s), e.g. us, gb |
region | string | Region(s), e.g. americas, europe |
category | string | Category/categories, e.g. business |
max | number | Number of articles, 1–100 (default: 5) |
page | number | Page number (default: 1) |
attributes | string | Where to match keywords: title, description, content |
sortby | string | publishedAt or relevance |
publisher | string | Filter by publisher(s) |
ai_sentiment | string | positive, negative, or neutral |
ai_entity_name | string | Named entity, e.g. Apple |
ai_entity_type | string | Entity type, e.g. person, organization, location |
headlines
Get top headlines, optionally filtered.
| Parameter | Type | Description |
|---|---|---|
country | string | Country code(s), e.g. us, gb |
category | string | Category, e.g. technology |
lang | string | Language code, e.g. en |
max | number | Number of articles, 1–100 (default: 5) |
ai_sentiment | string | positive, negative, or neutral |
ai_entity_name | string | Named entity, e.g. Apple |
ai_entity_type | string | Entity type, e.g. person, organization, location |
usage
Check your plan, request limits, and remaining quota. No parameters.
Plan note: Advanced filters —
country,region,category,publisher,lang,attributes, andsortby— require a paid plan. On the free plan, usesearch-newswithqandmax. See pricing.
AI filtering
search-news and headlines accept AI-analyzed filters:
ai_sentiment— overall article sentiment (positive,negative,neutral)ai_entity_name— a named entity in the article (e.g.United Nations)ai_entity_type— entity category (person,organization,location)
Returned articles may also include AI sentiment scores, detected entities, and a short AI summary when available.
Example prompts
- "Get me the latest technology news from the US"
- "Find articles about climate change from European sources"
- "Show me top business headlines from the past week"
- "Find positive news about renewable energy"
- "Show me articles mentioning Apple as an organization"
- "Check my API usage and remaining quota"
Supported values
Full lists of accepted values live in the AllNewsAPI docs:
License
MIT © AllNewsAPI — see LICENSE for details.