AllNewsAPI
概览
作者提供的说明(英文原文)
Get access to real-time and historical news data including top headlines from global sources
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 64/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 搜索与 AI 记忆
- 你需要填写:ALLNEWSAPI_KEY, X-API-Key
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 需要你自己填写:
ALLNEWSAPI_KEY,X-API-Key
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"allnewsapi": {
"command": "npx",
"args": [
"-y",
"allnewsapi-mcp",
"--apikey",
"your-value"
],
"env": {
"ALLNEWSAPI_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http allnewsapi https://mcp.allnewsapi.com/mcp --header 'X-API-Key: your-value'或者在你的电脑上运行
claude mcp add allnewsapi --env ALLNEWSAPI_KEY=your-value -- npx -y allnewsapi-mcp --apikey your-value运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"allnewsapi": {
"url": "https://mcp.allnewsapi.com/mcp",
"headers": {
"X-API-Key": "your-value"
}
}
}
}或者在你的电脑上运行
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"allnewsapi": {
"command": "npx",
"args": [
"-y",
"allnewsapi-mcp",
"--apikey",
"your-value"
],
"env": {
"ALLNEWSAPI_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"allnewsapi": {
"type": "http",
"url": "https://mcp.allnewsapi.com/mcp",
"headers": {
"X-API-Key": "your-value"
}
}
}
}或者在你的电脑上运行
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"allnewsapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"allnewsapi-mcp",
"--apikey",
"your-value"
],
"env": {
"ALLNEWSAPI_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Your 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 为准。
它能做什么
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 AllNewsAPI 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
端点有响应
尚未检查;我们会轮流检查各个端点
- … 尚未检查
使用 OAuth 登录
尚未检查;我们会轮流检查各个端点
- … 尚未检查
工具描述中没有隐藏指令
尚未检查;我们会在检查端点时读取工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5756 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5756 个服务器的 39% 更新
- 基础检查结果等于或优于此分类中其他 5756 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
AllNewsAPI 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:ALLNEWSAPI_KEY, X-API-Key
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.1.9)于2个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 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.