Back to Browse

Uk Legislation MCP Server

Developer ToolsScan in ProgressMCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

0.0
Use Caution0.0Moderate Risk

9 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Remote servers are capped at 8.0 because source code is not available for review. The score reflects endpoint verification only.

What You'll Need

Set these up before or after installing:

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

Environment variable: UK_LEGISLATION_CONTACT

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.Optional

Environment variable: UK_LEGISLATION_MIN_REQUEST_GAP_MS

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

Environment variable: UK_LEGISLATION_CACHE_MAX_MB

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

Environment variable: MCP_LOG_LEVEL

The hostname for the HTTP server.Optional

Environment variable: MCP_HTTP_HOST

The port to run the HTTP server on.Optional

Environment variable: MCP_HTTP_PORT

The endpoint path for the MCP server.Optional

Environment variable: MCP_HTTP_ENDPOINT_PATH

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

Environment variable: MCP_AUTH_MODE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-cyanheads-uk-legislation-mcp-server": {
      "env": {
        "MCP_AUTH_MODE": "your-mcp-auth-mode-here",
        "MCP_HTTP_HOST": "your-mcp-http-host-here",
        "MCP_HTTP_PORT": "your-mcp-http-port-here",
        "MCP_LOG_LEVEL": "your-mcp-log-level-here",
        "MCP_HTTP_ENDPOINT_PATH": "your-mcp-http-endpoint-path-here",
        "UK_LEGISLATION_CONTACT": "your-uk-legislation-contact-here",
        "UK_LEGISLATION_CACHE_MAX_MB": "your-uk-legislation-cache-max-mb-here",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "your-uk-legislation-min-request-gap-ms-here"
      },
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server"
      ],
      "command": "npx"
    }
  }
}

Reviews

No reviews yet

Be the first to review this server!