search_legislation

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

Search UK legislation by title words (and optional year), returning matching Acts/instruments with their full-text URLs.

Parameters

NameTypeRequiredDescription
typestringyesDocument type, e.g. “ukpga”. One of: ${TYPES}.
titlestringyesWords to match in the title, e.g. “equality”.
yearnumbernoOptional year to restrict results, e.g. 2010.
pagenumbernoResults page (default 1). 20 results per page.

Example call

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

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 31, 2026