# Legislation Uk

> Legislation Uk is an open-source MCP server. legislation.gov.uk MCP — the UK's official legislation database. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://pipeworx.io/packs/legislation-uk
- **Repository:** https://github.com/pipeworx-io/mcp-legislation-uk
- **MCP Registry name:** io.github.pipeworx-io/legislation-uk
- **Listing updated:** 2026-11-13

## About

legislation.gov.uk MCP — the UK's official legislation database.

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http legislation-uk https://gateway.pipeworx.io/legislation-uk/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://gateway.pipeworx.io/legislation-uk/mcp
```

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "legislation-uk": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/legislation-uk/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "legislation-uk": {
      "serverUrl": "https://gateway.pipeworx.io/legislation-uk/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "legislation-uk": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/legislation-uk/mcp"
    }
  }
}
```

## FAQ

### Is Legislation Uk free?

Yes. Legislation Uk is open source, so you can use and self-host it for free.

### How do I add Legislation Uk to Claude Code?

Run this command in your terminal: claude mcp add --transport http legislation-uk https://gateway.pipeworx.io/legislation-uk/mcp

---
Source: https://ai-powered.com/mcp/legislation-uk
