search_members

Pack: uk-parliament · Endpoint: https://gateway.pipeworx.io/uk-parliament/mcp

Search MPs and Lords by name / party / location / house.

Parameters

NameTypeRequiredDescription
namestringnoSearch across name fields
locationstringnoPostcode or constituency name
partystringnoParty name
housenumberno
is_currentbooleannoOnly currently-sitting members (default true)
takenumberno1-20 (default 20)
skipnumberno0-based offset

Example call

Arguments

{
  "name": "Keir Starmer",
  "is_current": true
}

curl

curl -X POST https://gateway.pipeworx.io/uk-parliament/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_members","arguments":{"name":"Keir Starmer","is_current":true}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_members', {
  "name": "Keir Starmer",
  "is_current": true
});

More examples

{
  "location": "SW1A 1AA",
  "party": "Labour",
  "take": 10
}

Response shape

FieldTypeDescription
membersarrayList of member records matching search criteria
totalResultsnumberTotal count of matching members
Full JSON Schema
{
  "type": "object",
  "description": "Search results for MPs and Lords",
  "properties": {
    "members": {
      "type": "array",
      "description": "List of member records matching search criteria",
      "items": {
        "type": "object",
        "description": "Individual member record"
      }
    },
    "totalResults": {
      "type": "number",
      "description": "Total count of matching members"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "uk-parliament": {
      "url": "https://gateway.pipeworx.io/uk-parliament/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026