关于 Uk Parliament
Uk Parliament 是访问英国议会官方数据的 MCP 服务,适用于研究议员、法案、辩论和投票。它整合了议员、法案及 Hansard API 的搜索和详情工具。
主要功能
- 01搜索下议院及上议院议员
- 02获取议员详情
- 03搜索法案并查看阶段
- 04搜索 Hansard 辩论
- 05列出近期表决
适用场景
- 01按姓名、党派或地区查找议员
- 02跟踪法案及其阶段
- 03按日期或议员研究 Hansard 发言
- 04查看近期议会表决
MCP 相关
向 MCP 客户端提供议员、法案、Hansard 发言和表决的搜索与读取工具。可通过本地 stdio 服务或 Pipeworx 网关运行。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/uk-parliament/mcpclaude mcp add --transport http pipeworx-io-uk-parliament https://gateway.pipeworx.io/uk-parliament/mcp{"mcpServers":{"pipeworx-io-uk-parliament":{"type":"http","url":"https://gateway.pipeworx.io/uk-parliament/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-uk-parliament":{"type":"http","url":"https://gateway.pipeworx.io/uk-parliament/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-uk-parliament":{"type":"http","url":"https://gateway.pipeworx.io/uk-parliament/mcp"}}}{"mcpServers":{"pipeworx-io-uk-parliament":{"serverUrl":"https://gateway.pipeworx.io/uk-parliament/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/uk-parliament
英国议会 MCP — 官方威斯敏斯特 API:议员、法案、Hansard(辩论)。无需身份验证。
属于 Pipeworx — 一个将 AI Agent 连接到 1684+ 个实时数据源的 MCP 网关。
工具
search_members(name?, location?, party?, house?, is_current?, take?, skip?)— 下议院议员和上议院议员get_member(id, includes?)— 议员详情search_bills(query?, session?, stage?, member_id?, current_house?, take?, skip?)— 法案get_bill(bill_id)— 法案详情bill_stages(bill_id)— 法案的所有阶段search_hansard(query, house?, date_from?, date_to?, member_id?, take?, skip?)— 辩论 / 发言recent_divisions(house?, date_from?, take?)— 最近的投票
数据源
- 议员:
https://members-api.parliament.uk/api/ - 法案:
https://bills-api.parliament.uk/api/v1/ - Hansard:
https://hansard-api.parliament.uk/
快速开始
将其添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"uk-parliament": {
"url": "https://gateway.pipeworx.io/uk-parliament/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/uk-parliament/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 的共享元工具 — ask_pipeworx、
discover_tools、search_within、remember/recall 和其他全网关工具。因此,你看到的工具数量会多于此表:目前,单个工具包端点会列出约 30 个共享工具,以及该工具包自身的工具。连接的 initialize 响应会说明其准确范围,这是当天情况的权威答案。
这是有意为之,并非意外的多路复用。元工具让受限范围的连接也能回答此工具包未覆盖的问题 — 通过 ask_pipeworx 在整个目录中进行路由 — 无需你再添加第二个 MCP 服务。目前无法挂载不含这些工具的工具包端点;如果额外的 schema 占用的上下文超过路由带来的收益,请只连接完整网关,而不要连接多个工具包端点。
也可以连接完整的 Pipeworx 网关,直接列出每个工具包的所有工具,而不只是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都连接到同一个网关和相同的 1684+ 个数据源。唯一的区别是哪些工具包的工具会被直接列出;无论连接哪个端点,ask_pipeworx 都可以访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/search_members \
-H 'Content-Type: application/json' \
-d '{"name":"Keir Starmer","is_current":true}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/search_members。查找工具:使用 {"query":"..."} 调用 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行 — 无需 Pipeworx 账户,也无需经由网关中转:
{
"mcpServers": {
"uk-parliament": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-uk-parliament"]
}
}
}
也可以直接运行,以确认服务已启动:
npx -y @pipeworx/mcp-uk-parliament
它通过 stdin/stdout 使用 MCP 通信,并响应 initialize/tools/list/tools/call,仅提供此工具包的工具 — 不包含上文网关连接额外提供的任何共享元工具。数据源相同,工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
你可以不直接调用工具,而是用日常语言提问 — 这既适用于上文的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Uk Parliament data" })
网关会选择合适的工具并自动填充参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。