MCP directory
UL

Uk Legislation Mcp Server

by github.com/cyanheads · v0.2.1 · updated Oct 29, 2026

Search and read UK legislation at any date, resolve citations, list amendments, track changes.

Remotenpm

Connect to the hosted server

Add this URL as a custom connector in your AI client.

Server URL

https://uk-legislation.caseyjhand.com/mcp

Claude Code

claude mcp add --transport http uk-legislation-mcp-server https://uk-legislation.caseyjhand.com/mcp

Run it locally

Install the package and point your AI client at it.

npm

npx -y @cyanheads/[email protected]

Environment variables

  • UK_LEGISLATION_CONTACT

    Email or URL appended to the User-Agent so legislation.gov.uk can reach the operator. Optional; set it on hosted deployments.

  • UK_LEGISLATION_MIN_REQUEST_GAP_MS

    Minimum gap between legislation.gov.uk request starts, in ms (minimum 250). Replicas sharing one User-Agent divide the fair use limit: use at least 250 ms x replica count.

  • UK_LEGISLATION_CACHE_MAX_MB

    Response cache size bound, in MB (8-1024).

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

npm

npx -y @cyanheads/[email protected]

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_AUTH_MODE

    Authentication mode to use: 'none', 'jwt', or 'oauth'.

  • UK_LEGISLATION_CONTACT

    Email or URL appended to the User-Agent so legislation.gov.uk can reach the operator. Set it on hosted deployments.

  • UK_LEGISLATION_MIN_REQUEST_GAP_MS

    Minimum gap between legislation.gov.uk request starts, in ms (minimum 250). Replicas sharing one User-Agent divide the fair use limit: use at least 250 ms x replica count.

  • UK_LEGISLATION_CACHE_MAX_MB

    Response cache size bound, in MB (8-1024).

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More from github.com/cyanheads

More MCP servers