
AllNewsAPI
io.github.AllNewsAPI由 GitHub 账号 AllNewsAPI 发布v1.1.9更新于 Oct 24, 2026
Get access to real-time and historical news data including top headlines from global sources
概览
AllNewsAPI 让助手通过托管或本地 MCP 服务器检索实时与历史新闻、获取头条,并查询 API 用量。
- 可以做什么
- 按关键词、日期范围、语言、国家、地区、分类、发布者或排序方式搜索新闻文章,可选择返回全文
- 获取头条新闻,可按国家、分类、语言、情感或命名实体筛选
- 利用 AI 情感评分、识别出的实体和简短摘要进行筛选与补充
- 查询当前套餐、请求上限与剩余配额
- 适用场景
- 适合需要助手获取当前或历史新闻报道、按国家或主题跟踪头条,或在调研与写作时按情感、命名实体筛选新闻的场景。
- 运行要求
- 需要来自 allnewsapi.com 的 AllNewsAPI 密钥。可连接托管端点 mcp.allnewsapi.com,通过 X-API-Key 请求头(或 apikey 查询参数、Bearer 令牌)传入密钥;也可用 npx 运行 npm 包 allnewsapi-mcp,通过 --apikey 参数或 ALLNEWSAPI_KEY 环境变量提供密钥。需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 AllNewsAPI,将其添加到工作区。
- 连接 X-API-Key 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.AllNewsAPI%2Fmcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"allnewsapi": {
"type": "http",
"url": "https://mcp.allnewsapi.com/mcp",
"headers": {
"X-API-Key": "<YOUR_API_KEY>"
}
}
}
}README
AllNewsAPI MCP
[npm] [Listed on mcpservers.org] [AllNewsAPI/mcp-server MCP server]
[AllNewsAPI/mcp-server MCP server]
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:
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:
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:
VS Code
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:
Or the hosted server:
Claude Cowork
Cowork runs inside Claude Desktop. Add the hosted server as a custom connector — Customize → Connectors → + — and enter the URL with your key:
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.
headlines
Get top headlines, optionally filtered.
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.
来源:README.md,提交 613634d
工具
0版本历史
1- v1.1.9最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分