Skip to main content
Glama

uk-parliament-mcp-server

Server Details

Search UK Parliament bills, members, votes, Hansard, written questions, statements, and committees.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
cyanheads/uk-parliament-mcp-server
GitHub Stars
1
Server Listing
uk-parliament-mcp-server
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 11 tools

Disambiguation4/5

Each tool maps to a distinct parliamentary resource (bills, committees, constituencies, members, divisions, Hansard, questions, statements) plus a meta reference tool, so misselection risk is low. The only fuzzy boundaries are the search_X/get_X pairs (e.g. search_members vs get_member, search_bills vs get_bill), which are distinguished only by reading the dense descriptions. Heavy reliance on a 'mode' parameter inside get_committee and get_constituency means one tool multiplexes several operations, but it stays within one resource.

Naming Consistency5/5

Every tool is prefixed 'ukparl_' and follows a single verb_noun pattern: get_* for direct retrieval, search_* for searching, and one lookup_*. No camelCase/snake_case mixing or stray verb styles.

Tool Count4/5

11 tools is a good fit for the breadth of the UK Parliament API (8 distinct data domains plus reference lookup). However, several tools absorb many sub-operations via mode selectors (committee search/detail/evidence/publications, constituency search/detail/results), so the effective surface is larger than the count suggests.

Completeness4/5

Core research workflows are covered end to end: find and read bills, members, constituencies, committees, divisions, Hansard, written questions and statements, with a reference tool for ID resolution. Gaps remain for petitions, early day motions, treaties, and any change/write operations, though these mirror read-only API limits.

Available Tools

11 tools
ukparl_get_billUkparl Get BillA
Read-onlyIdempotent
Inspect

Retrieve a Westminster bill overview or select stages, stage, publications, amendments, amendment, motions or motion. Stage/amendment/motion selections require the bill-specific billStageId from section=stages; singular amendment/motion also require itemId from their parent collection. Use amendmentId for amendment retrieval and motion.id for motions. Filter only the amendments collection by amendmentNumber, decision or sponsoring memberId. Collection selectors paginate whole records. Overview leaves publications unchecked; select publications to discover actual supplied legislation.gov.uk statute links. Follow contentCursor with the original selection to reconstruct oversized records.

Inputs: billId (required), limit, cursor, itemId, +6 more. Returns: cap, page, error, found, +20 more

ukparl_get_committeeGet committees and evidenceA
Read-onlyIdempotent
Inspect

Find Westminster committees with mode=search, then use committeeId for detail, members, inquiries or publications. Inquiries returns every committee business type, labelled by isInquiry; use businessId with mode=inquiry for complete business detail or to filter publications. Use publicationId with mode=publication for complete report/publication metadata and source links. Use mode=evidence with businessId and evidenceType=written|oral to list evidence; mode=evidence_detail requires evidenceId and evidenceType in the same namespace, and mode=evidence_document takes the same pair and adds the published Html rendition as documentHtml. Memberships retain all role periods; personId is distinct from Members API memberId. Publication files and other renditions are not downloaded, and no text is extracted. Follow cursors with unchanged filters; contentCursor retrieves oversized records losslessly. Typed entities retain sourcePath relationships to reconstruct nested source metadata.

Inputs: mode, house, limit, query, +16 more. Returns: cap, mode, page, error, +21 more

ukparl_get_constituencyGet constituencies and resultsA
Read-onlyIdempotent
Inspect

Find Westminster constituencies and read a seat's MPs and election results. mode=search (default) matches current seat names or the seats a postcode falls in, or lists all 650 without query; an abolished seat's constituencyId comes from ukparl_get_member roles representations or electionsContested rows. Each boundary set has its own ID (Bath 3895 since 2024, 3308 before). With constituencyId: detail; representations, membership periods with memberId (a member can repeat; member.latestHouseMembership is their latest seat, not this one); election_results, without candidates; election_result, one election with candidates, the latest unless electionId is set. turnout counts valid votes; voteShare is a fraction of 1; candidate memberId is null, winners included, so reach winners through representations. Older seats have partial coverage: an empty list never means no MP or election.

Inputs: mode, limit, query, cursor, +3 more. Returns: cap, mode, page, error, +20 more

ukparl_get_memberUkparl Get MemberA
Read-onlyIdempotent
Inspect

Retrieve a member profile, roles, committee seats, official contact information, registered interests or recorded voting history. Roles without category lists available biography categories; select category to page whole periods; a representations or electionsContested value.id is a constituencyId for ukparl_get_constituency. Interests and voting require an explicit House. Committee person IDs differ from member IDs. Voting uses native 20-row pages and reports recorded lobby and teller facts, without lifetime participation metrics. Follow collection cursors with unchanged selectors; use contentCursor to reconstruct oversized records.

Inputs: memberId (required), house, limit, cursor, +3 more. Returns: cap, page, error, found, +22 more

ukparl_lookup_referenceUkparl Lookup ReferenceA
Read-onlyIdempotent
Inspect

Resolve Parliament filter IDs and inspect source coverage before searching. Use identifiers for ID namespaces and required selectors, coverage for Hansard date limitations, or a named reference topic for filter IDs. Follow opaque collection cursors with the same filters; use contentCursor to reconstruct an oversized selected payload.

Inputs: topic (required), house, limit, cursor, +2 more. Returns: cap, page, error, items, +17 more

ukparl_search_billsUkparl Search BillsA
Read-onlyIdempotent
Inspect

Search Westminster bill summaries by title, current or originating House, session, sponsoring member, department, reference stage, bill type or status, with optional official ordering. Use ukparl_lookup_reference for stage/type/department IDs and ukparl_get_bill for complete selected records. Department IDs are distinct from answering-body IDs. inAmendableStage=true restricts to amendable stages; false equals omission. No session or date scope is inferred. Follow collection cursors with the same filters; use contentCursor to reconstruct an oversized item.

Inputs: house, limit, query, cursor, +11 more. Returns: cap, page, error, items, +14 more

ukparl_search_divisionsUkparl Search DivisionsA
Read-onlyIdempotent
Inspect

Search official Commons or Lords division summaries, or use detail, voters or party_totals with a divisionId from the same House. Search supports title/number text, member and inclusive division dates; member searches include memberVote with the recorded House-native lobby and teller flag. A first search page adds totalCount from the official House count when available. Detail preserves complete metadata and teller identities, with roster selectors for voters mode. Voters can filter exact source party labels and House-compatible lobbies. not_recorded means only the source list, never abstention. Party totals count listed non-tellers and tellers separately from official headline counts. Follow collection cursors with unchanged filters; reconstruct oversized content using contentCursor.

Inputs: house (required), mode, limit, lobby, +8 more. Returns: mode, page, error, found, +19 more

ukparl_search_hansardSearch spoken HansardA
Read-onlyIdempotent
Inspect

Search spoken Westminster Hansard contributions by topic, member, House, date or numeric debateSectionId. Results run newest sitting first; sortOrder=SittingDateAsc starts from the oldest sitting. Returns full source contribution text where supplied, including HTML; previews are labelled summaries. Repeat with a returned debateSectionId to search that section, which does not establish an entire debate transcript. Historical completeness is not guaranteed, including the 2004–2006 website warning despite some API records. Use ukparl_lookup_reference topic=coverage for archive guidance. Follow collection cursors unchanged and contentCursor for lossless oversized contributions; retry timeouts with shorter date windows.

Inputs: house, limit, query, cursor, +6 more. Returns: cap, page, error, items, +20 more

ukparl_search_membersUkparl Search MembersA
Read-onlyIdempotent
Inspect

Find MPs and peers by name, location or constituency, party, House, and current or historical membership. currentOnly=false includes current and former members. constituency matches each member's latest seat, so a seat's earlier MPs whose latest seat is another or abolished seat, or the Lords, are absent; ukparl_get_constituency mode=representations lists a seat's MPs. asOf selects historical membership and accepts name only, without House, party or location filters. Search results preserve latest profile fields; retrieve sections with ukparl_get_member. Follow opaque cursors with unchanged filters and use contentCursor for oversized records.

Inputs: asOf, name, house, limit, +5 more. Returns: cap, mode, page, error, +16 more

ukparl_search_questionsSearch written questionsA
Read-onlyIdempotent
Inspect

Search Westminster written questions and answer previews by text, exact UIN, asking or answering member, House, answering body, answer state and dates. An undated UIN returns candidates across sessions; narrow with tabling dates and retrieve mode=detail with a returned questionId for complete question and answer HTML, corrections and attachment links. A UIN is not a questionId and never determines House. Search includes all sessions and withdrawn questions. Follow collection cursors unchanged; use contentCursor for lossless oversized answers.

Inputs: uin, mode, house, limit, +12 more. Returns: cap, mode, page, error, +19 more

ukparl_search_statementsSearch written statementsA
Read-onlyIdempotent
Inspect

Search Westminster written ministerial statements by text, exact UIN, minister, House, answering body and date made. Search returns plain-text previews; retrieve mode=detail with a returned statementId for the complete HTML. A UIN such as HLWS419 is reused across sessions: narrow it with madeFrom/madeTo. A UIN is not a statementId. Search covers all sessions. A CorrectedAnswer link carries a written-question questionId for ukparl_search_questions mode=detail. Follow collection cursors unchanged; use contentCursor for lossless oversized statements.

Inputs: uin, mode, house, limit, +8 more. Returns: cap, mode, page, error, +19 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides access to live UK Parliament data including bills, votes, MP profiles, and financial interests without requiring an API key. It enables users to track parliamentary rebellions, search petitions, and cross-reference voting records with declared financial interests.
      5
      9
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables searching and reading UK legislation as it stands now, as enacted, or on any date, resolving citations to canonical items and provisions, listing amendments and effects, and tracking daily changes via the legislation.gov.uk publication log.
      506 npm
      2
      Apache 2.0
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.