Koskamo

UK Legislation MCP

An MCP server providing tools to search, read, and resolve UK legislation from legislation.gov.uk. It supports querying primary, secondary, and EU-origin legislation, resolving citations, listing amendments, and tracking changes over time. The server operates via STDIO or Streamable HTTP and requires no API key.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

UK Legislation MCP logo, by cyanheadsCommunity listingLocal stdioSource reviewed; not executedPublished by cyanheads
Vendor documentation

What you can do with it

  • Search legislation by full text or title
  • Read provisions as enacted or on a past date
  • Resolve citations to canonical items
  • List amendments and changes for specific items

Source and maintenance

Community listingRegistry 0.2.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@cyanheads/uk-legislation-mcp-server 0.2.1

npmnpx
@cyanheads/uk-legislation-mcp-server package definition
{
  "version": "0.2.1",
  "transport": "stdio",
  "identifier": "@cyanheads/uk-legislation-mcp-server",
  "runtimeHint": "npx",
  "registryType": "npm",
  "registryBaseUrl": "https://registry.npmjs.org",
  "environmentVariables": [
    {
      "name": "UK_LEGISLATION_CONTACT",
      "format": "string",
      "description": "Email or URL appended to the User-Agent so legislation.gov.uk can reach the operator. Optional; set it on hosted deployments."
    },
    {
      "name": "UK_LEGISLATION_MIN_REQUEST_GAP_MS",
      "format": "number",
      "default": "1000",
      "description": "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."
    },
    {
      "name": "UK_LEGISLATION_CACHE_MAX_MB",
      "format": "number",
      "default": "64",
      "description": "Response cache size bound, in MB (8-1024)."
    },
    {
      "name": "MCP_LOG_LEVEL",
      "format": "string",
      "default": "info",
      "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn')."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "uk-legislation-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server@0.2.1"
      ],
      "env": {
        "UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
        "UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "uk-legislation-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server@0.2.1"
      ],
      "env": {
        "UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
        "UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "uk-legislation-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server@0.2.1"
      ],
      "env": {
        "UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
        "UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "uk-legislation-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server@0.2.1"
      ],
      "env": {
        "UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
        "UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

Let your agent find its tools

Find servers like UK Legislation MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.