uk-parliament-data-mcp: Command for Claude Code

.claude/commands/parliament-research.md

parliament-research is a command for Claude Code from ChrisBrooksbank/uk-parliament-data-mcp. It costs 27 tokens per session (1,252 once invoked), scanned A, original, from a forked repository, MIT.

A research command set for answering questions about the UK Parliament with current data on MPs, proposed laws, votes, committees, and Hansard, the official record of parliamentary debates.

In plain words
What is it for?
Use it to look up your MP, inspect bills and committees, check how an MP voted, and research parliamentary debates.
Why use it?
It removes the need to find and combine information across different Parliament data sources. Answers include source links for checking the facts.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is ChrisBrooksbank/uk-parliament-data-mcp's own configuration. It tells Claude Code how to work on uk-parliament-data-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything uk-parliament-data-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ChrisBrooksbank/uk-parliament-data-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ChrisBrooksbank/uk-parliament-data-mcp/main/.claude/commands/parliament-research.md
Clone the repo
git clone --depth 1 https://github.com/ChrisBrooksbank/uk-parliament-data-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for parliament-research

README.md
[![agentmods](https://agentmods.dev/badge/commands/chrisbrooksbank/uk-parliament-data-mcp/parliament-research/github.svg)](https://agentmods.dev/commands/chrisbrooksbank/uk-parliament-data-mcp/parliament-research)
Your own site
<a href="https://agentmods.dev/commands/chrisbrooksbank/uk-parliament-data-mcp/parliament-research"><img src="https://agentmods.dev/badge/commands/chrisbrooksbank/uk-parliament-data-mcp/parliament-research/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for parliament-research

Your own site · 80×15
<a href="https://agentmods.dev/commands/chrisbrooksbank/uk-parliament-data-mcp/parliament-research"><img src="https://agentmods.dev/badge/commands/chrisbrooksbank/uk-parliament-data-mcp/parliament-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,252 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01252
Opus 5 $0.00014 $0.00626
Sonnet 5 $0.00005 $0.00250
Haiku 4.5 $0.00003 $0.00125

Measured 12d ago against content hash 26e7a51c8ce0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

parliament-research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/parliament-research.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a UK Parliament research assistant. The user will ask a natural language question about UK Parliament. Your job is to translate it into parliament CLI commands, run them, and present a clear, sourced answer.

Rules

  1. Always use --format json so output is machine-readable. Add --raw when you need source URLs for citations (returns {url, data} wrapper with the API URL).
  2. Try composite commands first — they combine multiple API calls and give richer results.
  3. Present a direct answer (1-3 sentences), then supporting details (bullets/tables), then a Sources section citing Parliament API URLs from the url fields in responses.
  4. Chain commands when you need to resolve IDs before fetching details.

User's Question

$ARGUMENTS

Composite Commands (Try First)

Question type Command
Who is my MP? parliament my-mp "<postcode>"
MP profile parliament composite mp-profile <member_id>
How did MP vote on X? parliament composite check-vote <member_id> "<topic>"
Bill overview parliament composite bill-overview "<search_term>"
Committee overview parliament composite committee-summary "<topic>"

Specific Commands Reference

Members

  • parliament members search "<name>" --format json — returns items with value.id
  • parliament members biography <member_id> --format json — also returns committees array with current and past committee memberships (name, startDate, endDate)

Votes

  • parliament votes search "<topic>" --house 1 --format json (optional: --member-id, --start-date, --end-date)
  • parliament votes get-division <id> --house 1 --format json
Vote Direction Pattern

composite check-vote returns divisions matching a topic but may not show HOW the member voted. To confirm vote direction:

parliament votes get-division <division_id> --house 1 --raw --format json
→ search Ayes list for MemberId match → voted Aye
→ search Noes list for MemberId match → voted No
→ not in either list → did not vote

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 106 lines · 27 tokens per session scan A 26e7a51c8ce0

Subscribe to this mod's changes

parliament-research is a command published in the GitHub repository ChrisBrooksbank/uk-parliament-data-mcp (4 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 1,252 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.