关于 The Guardian
The Guardian 是用于搜索和获取 The Guardian Open Platform 内容的 MCP 服务。它支持文章查询,以及发现栏目、标签和版本;使用时需要 Guardian API 密钥。
主要功能
- 01按查询词和筛选条件搜索内容
- 02通过 ID 获取文章
- 03列出并搜索栏目
- 04列出并搜索标签
- 05浏览版本
适用场景
- 01按主题或日期查找文章
- 02获取已知文章
- 03探索 Guardian 栏目和标签
MCP 相关
向 MCP 客户端提供 The Guardian Open Platform 的搜索和内容工具。可通过 stdio 在本地运行,也可经由 Pipeworx 网关使用;网关连接还提供共享元工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/the-guardian/mcpclaude mcp add --transport http pipeworx-io-the-guardian https://gateway.pipeworx.io/the-guardian/mcp{"mcpServers":{"pipeworx-io-the-guardian":{"type":"http","url":"https://gateway.pipeworx.io/the-guardian/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-the-guardian":{"type":"http","url":"https://gateway.pipeworx.io/the-guardian/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-the-guardian":{"type":"http","url":"https://gateway.pipeworx.io/the-guardian/mcp"}}}{"mcpServers":{"pipeworx-io-the-guardian":{"serverUrl":"https://gateway.pipeworx.io/the-guardian/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/the-guardian
The Guardian Open Platform MCP — 文章、版块、标签和内容。免费开发者密钥(12 次请求/秒,每天 5,000 次)。
属于 Pipeworx — 一个将 AI Agent 连接到 1684+ 个实时数据源的 MCP 网关。
身份验证
- 平台:
PLATFORM_GUARDIAN_KEY。自带密钥:?_apiKey=…。
工具
search(q?, section?, tag?, from_date?, to_date?, page?, page_size?, order_by?, show_fields?, show_tags?, show_elements?)— 搜索内容item(id, show_fields?, show_tags?, show_blocks?, show_references?)— 按 ID 获取单篇文章(例如politics/2025/jan/01/...)sections(q?)— 列出版块(politics、sport、world 等)tags(q?, type?, section?, page?, page_size?)— 列出标签editions(q?)— 版本(uk、us、au、international)
数据源
https://content.guardianapis.com
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"the-guardian": {
"url": "https://gateway.pipeworx.io/the-guardian/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/the-guardian/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 共享元工具 — ask_pipeworx、
discover_tools、search_within、remember/recall 和其他全网关工具。因此,你看到的工具数量会多于此表:单个工具包端点目前会列出大约 30 个共享工具,以及该工具包自己的工具。连接的 initialize 响应会说明其准确范围,是当天情况的权威依据。
这是有意为之,并非意外复用。元工具使范围受限的连接也能回答此工具包未涵盖的问题 — 通过跨整个目录进行路由的 ask_pipeworx — 无需添加第二个 MCP 服务。目前无法挂载不含这些元工具的工具包端点;如果额外的架构定义占用的上下文超过路由带来的价值,请连接一次完整网关,而不是连接多个工具包端点。
或者连接完整的 Pipeworx 网关,直接列出每个工具包的工具,而不只是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都会访问同一个网关和相同的 1684+ 个数据源。唯一的区别是哪些工具包的工具会被直接列出;从任一端点都可以通过 ask_pipeworx 访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
此工具包使用你自己的 API 密钥(_apiKey)— 我们不会代为提供,因此没有不带密钥即可运行的 curl 命令。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/the_guardian_search。查找工具:POST https://gateway.pipeworx.io/v1/tools/search_packs,请求体为 {"query":"..."}。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行 — 无需 Pipeworx 账户,也无需往返网关:
{
"mcpServers": {
"the-guardian": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-the-guardian"]
}
}
}
或者直接运行以确认其可以启动:
npx -y @pipeworx/mcp-the-guardian
它通过 stdin/stdout 使用 MCP,并响应 initialize/tools/list/tools/call,且仅提供此工具包的工具 — 不包含上述网关连接所添加的任何共享元工具。数据源相同,工具相同,不包含 ask_pipeworx 路由。
与 ask_pipeworx 搭配使用
你可以用自然语言提问,而不是直接调用工具 — 在上面的工具包端点和完整网关上都可以使用:
ask_pipeworx({ question: "your question about The Guardian data" })
网关会选择合适的工具并自动填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。