Integration

UK Parliament Members integration

The UK Parliament's open data API for Members of the House of Commons and the House of Lords. Search current and former MPs and peers by name, postcode, constituency, party or post; read a member's profile, career, contact details, registered interests, votes, written questions, early day motions and debate contributions; and look up constituencies with their election results and boundaries, party seat counts, government and opposition posts, and reference lists. Member records are personal data about public office holders as Parliament publishes them, and the staff registers name members' staff. The department logo route is left out (it answered 404 for every department). No authentication: the API is free and open, with no key or registration.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in UK Parliament Members.Built from the 42 UK Parliament Members tools below, on the connection you add once.

What you can do with UK Parliament Members

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Election result, 4 operations

  • get_constituency_election_resultGet constituency election resultGETAgents: ask firstGet one election result of a constituency by election id (from list_constituency_election_results): outcome, electorate, turnout, majority, winning party and every candidate with votes and share.
  • get_latest_constituency_election_resultGet latest constituency election resultGETAgents: ask firstGet the latest election result of a constituency: outcome, electorate, turnout, majority, winning party and every candidate with party, votes, vote share and finishing position.
  • get_member_latest_election_resultGet member latest election resultGETAgents: ask firstGet the result of the latest election a member stood in: constituency, outcome, electorate, turnout, majority, winning party and every candidate with votes and share.
  • list_constituency_election_resultsList constituency election resultsGETAgents: ask firstList the election results recorded for a constituency: outcome, electorate, turnout, majority, winning party and election id. Candidates come back empty here: use get_constituency_election_result.

Member, 3 operations

  • get_memberGet memberGETAgents: ask firstGet one member of the Commons or Lords by member id: names and titles, party, gender, latest house membership with status, and thumbnail URL. detailsForDate gives the record as of a past date.
  • search_historical_membersSearch historical membersGETAgents: ask firstSearch members of the Commons or Lords who were sitting on a given date, by name. Both name and dateToSearchFor are needed: the API answers 400 without either. 20 per page (skip, take).
  • search_membersSearch membersGETAgents: ask firstSearch members of the Commons and Lords by name, postcode or place, party, post, constituency, gender, dates of membership, policy interest or experience. 20 per page (skip, take).

Constituency, 2 operations

  • get_constituencyGet constituencyGETAgents: ask firstGet one constituency by id: name, start and end dates of this boundary version, and its current representation (the sitting MP and their membership of the seat).
  • search_constituenciesSearch constituenciesGETAgents: ask firstSearch UK Parliament constituencies whose name contains a term, 20 per page (skip, take). Each result has the constituency id, name, start and end dates and its current MP.

Department, 2 operations

  • list_departmentsList departmentsGETAgents: ask firstList government departments (id, name, gov.uk page), optionally one id or the departments whose name contains a term. Department ids filter list_government_posts and list_opposition_posts.
  • list_post_departmentsList post departmentsGETAgents: ask firstList the departments that posts are attached to, for a post type: 0 government, 1 opposition, 2 spokesperson (1 and 2 return the same list).

Member portrait, 2 operations

  • get_member_portraitGet member portraitGETAgents: ask firstDownload a member's official portrait as a JPEG file. The default full-size image can be several MB; cropType OneOne, ThreeTwo or ThreeFour returns a smaller cropped version.
  • get_member_portrait_urlGet member portrait urlGETAgents: ask firstGet the URL of a member's full-size official portrait (a JPEG served by this API), to embed or download.

Member thumbnail, 2 operations

  • get_member_thumbnailGet member thumbnailGETAgents: ask firstDownload a member's thumbnail portrait as a JPEG file.
  • get_member_thumbnail_urlGet member thumbnail urlGETAgents: ask firstGet the URL of a member's thumbnail portrait (a JPEG served by this API).

Answering body, 1 operation

  • list_answering_bodiesList answering bodiesGETAgents: ask firstList the answering bodies that answer parliamentary questions (id, name, short name, the minister questions are addressed to, department), optionally by id or name substring.

Constituency geometry, 1 operation

  • get_constituency_geometryGet constituency geometryGETAgents: ask firstGet the boundary of a constituency as GeoJSON, returned as a JSON-encoded string in value (coordinates are longitude, latitude pairs). Large constituencies give long strings.

Constituency representation, 1 operation

  • list_constituency_representationsList constituency representationsGETAgents: ask firstList the MPs who have represented a constituency (this boundary version), each with the member record and the start and end dates of the representation.

Constituency synopsis, 1 operation

  • get_constituency_synopsisGet constituency synopsisGETAgents: ask firstGet a one-sentence synopsis of a constituency: where it is and who has held it since when. The text contains HTML links.

Debate contribution, 1 operation

  • list_member_debate_contributionsList member debate contributionsGETAgents: ask firstList the Hansard debates a member took part in, newest first, with counts of speeches, questions, interventions, answers and statements in each. 20 per page (page).

Early day motion, 1 operation

  • list_member_early_day_motionsList member early day motionsGETAgents: ask firstList the early day motions recorded for a member, newest first: title, number, date tabled, number of sponsors, and whether it is a prayer or an amendment. 20 per page (page).

Government post, 1 operation

  • list_government_postsList government postsGETAgents: ask firstList government posts (ministers, whips and law officers) with their current holders and start dates, optionally for one department id.

Location, 1 operation

  • browse_locationBrowse locationGETAgents: ask firstGet a UK place by type and exact name: the place, the place containing it, the places inside it, and the number of seats each party holds there. Start from Country with United Kingdom or England.

Lords composition, 1 operation

  • get_lords_composition_by_peerage_typeGet lords composition by peerage typeGETAgents: ask firstGet the composition of the House of Lords on a date: for each party, the number of life peers, hereditary peers and bishops, and the total.

Lords interest, 1 operation

  • search_lords_interests_registerSearch lords interests registerGETAgents: ask firstSearch the House of Lords Register of Interests: each result is a member of the Lords with their registered interests by category. 20 per page (page). Public register of personal data.

Lords staff, 1 operation

  • search_lords_staff_registerSearch lords staff registerGETAgents: ask firstSearch the register of Lords members' staff: each result is a member of the Lords with the staff they registered (names and other interests). 20 per page (page). Personal data about named people.

Member biography, 1 operation

  • get_member_biographyGet member biographyGETAgents: ask firstGet a member's career record by member id: constituencies represented, house memberships, party affiliations, government, opposition and other posts, and committee memberships, each with dates.

Member contact, 1 operation

  • list_member_contact_detailsList member contact detailsGETAgents: ask firstList a member's published contact details: parliamentary and constituency office addresses, phone, fax, email, website and social media links. Personal data published by Parliament.

Member experience, 1 operation

  • list_member_experienceList member experienceGETAgents: ask firstList the experience a member has declared outside Parliament: kind, role, organisation and start and end month and year. Often empty.

Member focus, 1 operation

  • list_member_areas_of_focusList member areas of focusGETAgents: ask firstList a member's self-declared areas of focus, grouped by category (for example political interests and countries of interest).

Member history, 1 operation

  • get_members_historyGet members historyGETAgents: ask firstGet the history of one or more members by member id: every name, party affiliation and house membership they have had, with start and end dates. Pass the ids as a list.

Member staff, 1 operation

  • list_member_staffList member staffGETAgents: ask firstList the staff registered for a member of the Lords, each with name, title and registered other interests (the Lords members' staff register; an MP's answer can be empty). Personal data about named people.

Member synopsis, 1 operation

  • get_member_synopsisGet member synopsisGETAgents: ask firstGet a one-sentence synopsis of a member: party, seat or peerage, and since when. The text contains HTML links.

Member vote, 1 operation

  • list_member_votesList member votesGETAgents: ask firstList how a member voted in recorded divisions of one house, newest first: division title, date, number, totals, and whether they voted aye, no or acted as teller. house is required; 20 per page.

Opposition post, 1 operation

  • list_opposition_postsList opposition postsGETAgents: ask firstList official opposition (shadow) posts with their current holders and start dates, optionally for one department id.

Party, 1 operation

  • list_active_partiesList active partiesGETAgents: ask firstList the parties with at least one active member in the Commons or the Lords: party id, name, abbreviation, display colours and flags.

Party seat count, 1 operation

  • get_state_of_the_partiesGet state of the partiesGETAgents: ask firstGet the number of seats each party held in the Commons or the Lords on a date, with the male, female and non-binary split.

Policy interest, 1 operation

  • list_policy_interestsList policy interestsGETAgents: ask firstList the policy interest areas members can be searched by: id and description. Pass an id to search_members as PolicyInterestId.

Registered interest, 1 operation

  • list_member_registered_interestsList member registered interestsGETAgents: ask firstList a member's entries in the register of interests, by category, with payers, amounts and dates as published, and registration, amendment and deletion dates. Public register of personal data.

Speaker, 1 operation

  • list_speaker_and_deputiesList speaker and deputiesGETAgents: ask firstList the Speaker and Deputy Speakers of the House of Commons in office on a date, as member records.

Spokesperson post, 1 operation

  • list_spokespersonsList spokespersonsGETAgents: ask firstList the spokesperson and whip posts of one party with their current holders. partyId is needed: the API answers 400 without it. Party ids come from list_active_parties.

Written question, 1 operation

  • list_member_written_questionsList member written questionsGETAgents: ask firstList the written questions a member asked, newest first: question text, answering body and minister, dates tabled, due and answered, and the answer text. 20 per page (page).

Use UK Parliament Members from Claude Code, Cursor or Codex

Connect UK Parliament Members in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its UK Parliament Members operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect UK Parliament Members

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect UK Parliament Members once

    UK Parliament Members needs no credential, so its tools work immediately.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

UK Parliament Members integration FAQ

What can you do with the UK Parliament Members integration?

LiveContext exposes 42 operations on UK Parliament Members, covering election result, member, constituency and department.

Popular integrations

Browse the whole catalog