UK Parliament

live GovernmentLegislatureEurope

Official Westminster APIs — Members, Bills, Hansard (debates). No auth.

7 tools
0ms auth
free tier 50 calls/day

Tools

search_members

Search MPs and Lords.

Parameters
Name Type Description
name opt string
location opt string
party opt string
house opt number 1=Commons, 2=Lords
is_current opt boolean
take opt number
skip opt number
Try it
get_member required: id

Member detail by id.

Parameters
Name Type Description
id req number
includes opt string
Try it
search_bills

Search bills.

Parameters
Name Type Description
query opt string
session opt number
stage opt number
member_id opt number
current_house opt number
sort opt string
take opt number
skip opt number
Try it
get_bill required: bill_id

Bill detail.

Parameters
Name Type Description
bill_id req number
Try it
bill_stages required: bill_id

All stages of a bill.

Parameters
Name Type Description
bill_id req number
Try it
search_hansard required: query

Search debate contributions.

Parameters
Name Type Description
query req string
house opt string
date_from opt string
date_to opt string
member_id opt number
take opt number
skip opt number
Try it
recent_divisions

Recent recorded votes.

Parameters
Name Type Description
house opt string
date_from opt string
take opt number
Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/uk-parliament/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/uk-parliament/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_members","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_members", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("official westminster apis — members, bills, hansard (debates)");