
Uk Parliament Lordsvotes
io.github.nick-ma由 GitHub 账号 nick-ma 发布v1.0.1更新于 Nov 3, 2026
MCP server for UK Parliament Lords Votes API
概览
只读 MCP 服务器,让助手查询英国议会上议院表决(division)、议员投票记录以及按党派分组的投票汇总。
- 可以做什么
- 按 division id 获取单次上议院表决详情
- 按关键词、议员、日期范围、表决编号、投票总数或多数票差额搜索表决,支持分页,并有单独的总数统计工具
- 获取指定议员的投票记录,支持分页
- 获取按党派分组的表决列表,便于汇总分析
- 适用场景
- 适合议会研究、公民科技项目或需要上议院表决结果、议员个人投票历史、党派投票分布的报道与分析场景,无需自行编写 API 调用。
- 运行要求
- 以 stdio 方式在本机运行,通常通过 npx 启动,需要 Node.js 以及访问 Lords Votes API 的网络连接。未声明账号或 API 密钥;README 中列出可选的环境变量用于上游地址、超时和 User-Agent,以及可选 HTTP 模式的端口变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Uk Parliament Lordsvotes,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[MCP Compatible] [AI Agent Ready]
UK Parliament Lords Votes MCP Server
Summary
This MCP server provides structured access to UK Parliament Lords Votes data using the Model Context Protocol. It enables AI agents to retrieve divisions and voting records through API-backed tools for reliable data access and analysis. Developers can integrate the MCP server via stdio transport to query divisions, member voting history, and grouped vote summaries. The server exposes tools that map directly to the Lords Votes API for consistent automation and AI agents workflows.
Features
- Fetch a Lords division by division id with standardized responses.
- Search divisions with filters for members, dates, and vote metrics.
- Retrieve member voting records with paging controls.
- Access divisions grouped by party for summary analysis.
Available Tools
get_division_by_id
Get a single Division which has the Id specified.
Parameters:
- divisionId (number, path) – Division id.
search_divisions_total_results
Get total count of Divisions meeting the specified query.
Parameters:
- searchTerm (string, query)
- memberId (number, query)
- includeWhenMemberWasTeller (boolean, query)
- startDate (string, query)
- endDate (string, query)
- divisionNumber (number, query)
- totalVotesCastComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- totalVotesCastValueToCompare (number, query)
- majorityComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- majorityValueToCompare (number, query)
search_divisions
Get a list of Divisions which meet the specified criteria.
Parameters:
- searchTerm (string, query)
- memberId (number, query)
- includeWhenMemberWasTeller (boolean, query)
- startDate (string, query)
- endDate (string, query)
- divisionNumber (number, query)
- totalVotesCastComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- totalVotesCastValueToCompare (number, query)
- majorityComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- majorityValueToCompare (number, query)
- skip (number, query) – Defaults to 0.
- take (number, query) – Defaults to 25.
get_member_voting_records
Get a list of voting records for a Member.
Parameters:
- memberId (number, query) – Required.
- searchTerm (string, query)
- includeWhenMemberWasTeller (boolean, query)
- startDate (string, query)
- endDate (string, query)
- divisionNumber (number, query)
- totalVotesCastComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- totalVotesCastValueToCompare (number, query)
- majorityComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- majorityValueToCompare (number, query)
- skip (number, query) – Defaults to 0.
- take (number, query) – Defaults to 25.
get_divisions_grouped_by_party
Get a list of Divisions which contain grouped by party.
Parameters:
- searchTerm (string, query)
- memberId (number, query)
- includeWhenMemberWasTeller (boolean, query)
- startDate (string, query)
- endDate (string, query)
- divisionNumber (number, query)
- totalVotesCastComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- totalVotesCastValueToCompare (number, query)
- majorityComparator (string, query) – LessThan | LessThanOrEqualTo | EqualTo | GreaterThanOrEqualTo | GreaterThan
- majorityValueToCompare (number, query)
Example Output
Quick Start
Run the MCP server using npx:
MCP Configuration
Example mcpServers configuration for stdio transport:
Example Usage
- Fetch a division by id and inspect vote details.
- Search divisions for a member in a date range.
- Retrieve total results for a query before paging.
- Get divisions grouped by party for summary analysis.
Use Cases
- AI agents summarizing Lords divisions and voting outcomes.
- Parliamentary research tools tracking member voting history.
- Civic tech platforms monitoring vote trends and turnout.
- Automation pipelines exporting divisions for reporting.
Data Source
UK Parliament Lords Votes API https://lordsvotes-api.parliament.uk/
Installation
Run directly using npx:
Or install via pnpm from the repository root:
Run (HTTP proxy server)
Build first, then start:
Set a custom HTTP port with the UKPLV_HTTP_PORT environment variable (default: 8787):
Published package command:
If your shell cannot resolve the bin ("command not found"), run the HTTP entrypoint directly:
Health check:
Proxy pattern:
Example:
License
MIT License
MCP Metadata
Protocol: Model Context Protocol Transport: stdio Tools: get_division_by_id, search_divisions_total_results, search_divisions, get_member_voting_records, get_divisions_grouped_by_party
来源:servers/uk-parliament-lordsvotes/README.md,提交 38e74c9
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。