Skip to main content
Glama
uk-parliament-commons-votes-mcp

uk-parliament-commons-votes-mcp

README.md
# uk-parliament-commons-votes-mcp

UK Parliament House of Commons divisions and roll-call voting records over Model Context Protocol (MCP). Policy analysts, legal teams, and civic researchers can query `commonsvotes-api.parliament.uk` for bill votes, party breakdowns, and MP voting histories with no API keys. Setup takes seconds.

## Hosted endpoint

Point any Streamable HTTP MCP client at the free Cloudflare Worker endpoint.

```text
https://uk-parliament-commons-votes-mcp.lipmichal.workers.dev/mcp
```

## Available tools

| Tool | Purpose |
| --- | --- |
| `search_uk_commons_divisions` | Search UK House of Commons legislative divisions by keyword, date window, and pagination. |
| `get_uk_commons_division_count` | Get the total number of matching UK House of Commons divisions for optional filters. |
| `get_uk_commons_division_details` | Fetch Aye and No counts, party vote breakdowns, and tellers for a specific Commons division ID. |
| `get_mp_voting_record` | Retrieve recent House of Commons division votes cast by a specific MP member ID. |
| `filter_commons_divisions_by_date` | List House of Commons divisions held within a required start and end date range. |

## Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

```json
{
  "mcpServers": {
    "uk-parliament-commons-votes": {
      "url": "https://uk-parliament-commons-votes-mcp.lipmichal.workers.dev/mcp"
    }
  }
}
```

## Run locally over stdio

You can also run this server locally on Node 20 or newer over stdio.

```bash
npm install
npm run build
npm start
```

## Compliance and reliability

Every upstream request queries `commonsvotes-api.parliament.uk` with a polite `User-Agent` header (`mcpstamp-uk-parliament-commons-votes/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions cleanly.

## More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.uk-parliament-commons-votes-mcp) with hosted commercial servers and priority endpoints.

TDQS

A3.5/5.0

Scored across 5 tools

Disambiguation4/5

Most tools have clearly distinct purposes: search, count, details, and MP voting record are well separated. However, filter_commons_divisions_by_date overlaps heavily with search_uk_commons_divisions since search already supports a date window, so an agent may be unsure which to use for date-only retrieval.

Naming Consistency4/5

All tools use a readable verb_noun pattern (search_, get_, filter_), and the get_* tools are internally consistent. Minor inconsistency exists in prefixing: search_uk_commons_divisions and the get_uk_commons_* tools use 'uk_commons', while filter_commons_divisions_by_date drops the 'uk_' prefix.

Tool Count5/5

Five tools is well-scoped for a read-only parliamentary divisions API, covering search, count, details, MP records, and date filtering. Each tool has a plausible role, and the set avoids the bloat of an oversized surface.

Completeness4/5

The surface covers the core read workflows: finding divisions, counting them, inspecting details, and retrieving an MP's voting record. Minor gaps remain, such as date-filter pagination and broader member/party lookups, but core use cases are covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues