Skip to main content
Glama
kupad95

UK Parliament MCP Server

by kupad95

英国议会 MCP 服务器

npm version License: MIT GitHub

https://github.com/user-attachments/assets/eec2a7bc-1ddf-4b25-8553-8d5b33a57ff6

一个用于获取英国议会实时数据的 模型上下文协议 (MCP) 服务器。 直接从您兼容 MCP 的助手查询法案、投票、议员资料、财务利益和请愿书,无需 API 密钥。


功能特性

  • 无需身份验证 – 基于“开放议会许可”的开放数据

  • 反叛追踪 – 检测投票违背党鞭意愿的议员

  • 跨数据集查询 – 将投票记录与财务利益进行匹配

  • 模式检测 – 险胜投票、政府失败、党派反叛率

  • 法案与请愿搜索 – 按关键词、阶段或状态搜索


安装

# One‑off run
npx uk-parliament-mcp

# Global install
npm install -g uk-parliament-mcp

使用方法

Claude Desktop — 添加到 claude_desktop_config.json

{
  "mcpServers": {
    "uk-parliament": {
      "command": "npx",
      "args": ["-y", "uk-parliament-mcp"]
    }
  }
}

Claude Code:

claude mcp add uk-parliament -- npx -y uk-parliament-mcp

可用工具

工具

用途

rank_entities

按各次投票中的反叛次数对议员进行排名

get_events

近期的投票、反叛或法案

analyze_patterns

险胜投票、政府失败、党派反叛率

find_entities

查找议员、法案、请愿书或申报的利益

query_entities

将投票记录与财务利益进行交叉比对


您可以询问的问题

问题

工具

本届议会中哪些工党议员反叛次数最多?

rank_entities

本周下议院发生了哪些投票?

get_events

上个月哪些保守党议员反叛了?

get_events

目前有哪些关于福利改革的法案?

find_entities

向我展示今年的险胜投票(票差在 10 票或以内)

analyze_patterns

哪些政府法案在上议院被否决了?

analyze_patterns

申报了国防公司利益的议员

find_entities

在《租客改革法案》中投反对票且拥有房产利益的工党议员

query_entities

目前签名人数最多的公开请愿书有哪些?

find_entities


数据来源

API

覆盖范围

bills-api.parliament.uk

法案、阶段、提案人

commonsvotes-api.parliament.uk

下议院投票记录

lordsvotes-api.parliament.uk

上议院投票记录

members-api.parliament.uk

议员和贵族资料

interests-api.parliament.uk

议员财务利益登记册

petition.parliament.uk

请愿书及签名数量


开发

git clone https://github.com/YOUR_USERNAME/uk-parliament-mcp-server.git
cd uk-parliament-mcp-server
npm install
npm run build   # compile TypeScript
npm start       # production
npm run dev     # watch & reload

贡献

  1. Fork → 分支 → 提交

  2. git push 并发起 PR

  3. 遵循 src/ 中的编码风格


许可证

MIT – 参见 LICENSE


免责声明 本项目为非官方项目,未得到英国议会的认可。数据使用受 Open Parliament Licence 约束。

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kupad95/uk-parliament-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server