关于 Openparliament Ca
Openparliament Ca 是面向研究者和公民科技用户的加拿大议会记录 MCP 服务,涵盖辩论、法案、投票、议员及委员会。数据来自社区维护的 REST 接口。
主要功能
- 01搜索 Hansard 辩论
- 02浏览法案及详情
- 03列出众议院记录投票
- 04查找现任及历任议员
- 05浏览委员会与会议
适用场景
- 01按主题或政治人物搜索辩论发言
- 02查看法案详情与状态
- 03查询众议院投票记录
- 04查找议员资料或委员会会议
MCP 相关
通过 Pipeworx 网关或本地 stdio 服务向 MCP 客户端提供加拿大议会数据工具。托管端点还列出 Pipeworx 共享元工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/openparliament-ca/mcpclaude mcp add --transport http pipeworx-io-openparliament-ca https://gateway.pipeworx.io/openparliament-ca/mcp{"mcpServers":{"pipeworx-io-openparliament-ca":{"type":"http","url":"https://gateway.pipeworx.io/openparliament-ca/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-openparliament-ca":{"type":"http","url":"https://gateway.pipeworx.io/openparliament-ca/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-openparliament-ca":{"type":"http","url":"https://gateway.pipeworx.io/openparliament-ca/mcp"}}}{"mcpServers":{"pipeworx-io-openparliament-ca":{"serverUrl":"https://gateway.pipeworx.io/openparliament-ca/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/openparliament-ca
OpenParliament.ca MCP — 加拿大议会的公民科技镜像。下议院辩论(Hansard)、法案、投票、议员、委员会会议。无需身份验证。
属于 Pipeworx — 一个将 AI Agent 连接到 1683+ 个实时数据源的 MCP 网关。
注意:这是一个由社区维护的项目(Michael Mulley 等人),并非官方的议会图书馆 API(这些 API 仅提供 XML,使用起来不便)。OpenParliament.ca 会摄取并重新发布数据,提供简洁的 REST 接口。
工具
search_debates(query, date_from?, date_to?, politician?, party?, limit?, offset?)— Hansard 发言list_bills(session?, sponsor?, status?, limit?, offset?)— 议会法案get_bill(session, number)— 法案详情list_votes(session?, limit?, offset?)— 下议院记录的投票list_politicians(current?, party?, province?, name?, limit?, offset?)— 现任及历任议员get_politician(slug)— 议员资料list_committees(session?, limit?, offset?)— 下议院委员会list_committee_meetings(committee_slug?, date_from?, date_to?, limit?)— 会议
数据源
https://api.openparliament.ca/ — 通过 Accept: application/json 或 ?format=json 获取 JSON。
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"openparliament-ca": {
"url": "https://gateway.pipeworx.io/openparliament-ca/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/openparliament-ca/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 都连接到同一个网关和相同的 1683+ 个数据源。唯一的区别是直接列出哪个工具包的工具;无论连接哪一个,ask_pipeworx 都可以访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/search_debates \
-H 'Content-Type: application/json' \
-d '{"politician":"justin-trudeau","limit":10}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/search_debates。查找工具:使用 {"query":"..."} 向 POST https://gateway.pipeworx.io/v1/tools/search_packs 发送请求。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行——无需 Pipeworx 账户,也无需经由网关往返:
{
"mcpServers": {
"openparliament-ca": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-openparliament-ca"]
}
}
}
也可以直接运行,确认服务能正常启动:
npx -y @pipeworx/mcp-openparliament-ca
它通过 stdin/stdout 使用 MCP,并响应 initialize/tools/list/tools/call,提供的仅是此工具包的工具——不包含上述网关连接额外提供的任何共享元工具。数据源和工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
你可以用通俗的英语提问,而不是直接调用工具——此功能既适用于上面的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Openparliament Ca data" })
网关会自动选择合适的工具并填写参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。