
Uk Parliament Lordsvotes
io.github.nick-maPublished by GitHub account nick-mav1.0.1Updated Nov 3, 2026
MCP server for UK Parliament Lords Votes API
Overview
Read-only MCP server that lets an assistant query UK Parliament House of Lords divisions, member voting records and party-grouped vote summaries.
- What you can do
- Fetch a single Lords division by its division id
- Search divisions by keyword, member, date range, division number, vote totals or majority, with paging and a separate total-count tool
- Retrieve a member's voting records with paging controls
- Get divisions grouped by party for summary analysis
- When to use it
- Useful for parliamentary research, civic-tech work or reporting that needs Lords division outcomes, individual peer voting history or party-level vote breakdowns, without writing API calls by hand.
- Requirements
- Runs locally over stdio, typically launched with npx, so Node.js and network access to the Lords Votes API are needed. No account or API key is declared; the README shows optional environment variables for the upstream base URL, timeout and user agent, and a port variable for an optional HTTP mode.
Installation
In SourceWeft
- Open Uk Parliament Lordsvotes in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: servers/uk-parliament-lordsvotes/README.md at commit 38e74c9
Tools
0Version history
1- v1.0.1LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.