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
| Name | Type | Required | Description |
|---|---|---|---|
type | string | yes | Document type, e.g. “ukpga”. One of: ${TYPES}. |
title | string | yes | Words to match in the title, e.g. “equality”. |
year | number | no | Optional year to restrict results, e.g. 2010. |
page | number | no | Results 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.