Legislation Uk vs Melta UI

A side-by-side look at the Legislation Uk and Melta UI MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.

Legislation Uk logoLegislation UkLegal · Local subprocess (stdio)legislation.gov.uk MCP — the UK's official legislation database.55GoodAuth: not declaredMelta UI logoMelta UILegal · Local subprocess (stdio)AI-Ready design system MCP: melta UI tokens, component contracts, 99 rules, check_html self-verify68GreatAuth: not declared

Verdict: choose Legislation Uk for legal work as a local process; choose Melta UI for legal as a local process. You can also run both side by side in one mcpServers block.

Which MCP server should you choose?

Legislation Uk logoChoose Legislation Uk when

  • You need dedicated capabilities in the Legal domain.
  • You prefer a local stdio subprocess transport.
  • You want tools like search_uk_legislation, get_legislation, get_legislation_section.
Explore Legislation Uk

Melta UI logoChoose Melta UI when

  • You need dedicated capabilities in the Legal domain.
  • You prefer a local stdio subprocess transport.
  • You want tools like get_token, get_component, check_rule.
Explore Melta UI

Feature & specification comparison

Rows where the two servers differ are marked.

SpecLegislation Uk logoLegislation UkMelta UI logoMelta UI
CategoryLegalLegal
Quality signal55/100 · Good68/100 · Great
Install commandConfirmedConfirmed
TransportLocal subprocess (stdio)Local subprocess (stdio)
AuthNot declaredNot declared
PricingNot declaredNot declared
Required env varsNone listedNone listed
Verified ownerCommunity listingCommunity listing
GitHub stars0202
Directory activity 0 views 0 installs 0 upvotes 3 views 0 installs 0 upvotes
Tools66

Tools & capabilities

Legislation Uk tools 6

  • search_uk_legislationSearch by title words (and optional year) → matching Acts/instruments with full-text URLs. `type` is optional — an exact code, a plain category (`"act"`, `"si"`, `"ssi"`), or omit it to default to `ukpga`. (Renamed from `search_legislation` — the old name still resolves.)
  • get_legislationMetadata for one Act/instrument by type + year + number: title, status, extent, enactment date, full-text URL
  • get_legislation_sectionThe actual text of ONE section — e.g. section 5 of the Data Protection Act 2018 (`ukpga/2018/12`) — without paying for the whole statute. Takes `as_at` (or `version`) for a point-in-time date.
  • get_legislation_textThe text of a whole Act/instrument, byte-bounded: large Acts are truncated with an explicit note pointing at the section-level tool. Takes `as_at` (or `version`).
  • legislation_amendmentsWhat has amended this legislation (`direction: "affected"`, default) or what it amends (`direction: "affecting"`) — amending/amended instrument, affected/affecting provisions, change type, whether applied, commencement date. **Paged at 50** — always states `total_results`/`total_pages`.
  • get_explanatory_notesPlain-language commentary written by the responsible government department, explaining what a section is meant to do. NOT part of the law. Pass `section` for one section's commentary, or omit for an overview + table of contents.

Melta UI tools 6

  • get_tokenGet a design token by dot-path. Returns the token object with its value and class mapping.
  • get_componentGet component metadata including variants, sizes, accessibility requirements, HTML sample, per-state specs (stateSpecs: disabled/loading/open/empty etc. — each with delta class strings + aria changes), and anatomy parts (overlay/container/th etc. with element/roles/class). Prefer these structured fields over inferring states from the HTML sample.
  • check_ruleCheck class strings against this design system's prohibition rules. Returns violations with reasons and alternatives.
  • check_htmlLint a full HTML/JSX source against melta-ui rules — the same checks as CI and the PostToolUse hook (class rules + html-attr rules + composition rules for HTML). Use this AFTER generating UI code to self-verify before presenting it. Response always includes coverage info (manual rules cannot be auto-checked).
  • searchSearch across tokens and components by keyword. Matches against names, values, class strings, and descriptions. Returns up to 20 results (truncated flag when more matched).
  • get_rulesGet melta-ui prohibition rules from rules.json (107 total). Use this to retrieve manual/contextual rules that check_rule cannot auto-detect. Supports filtering by category, severity, or detector.

Ready-to-paste client configs

Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.

Legislation Uk

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "legislation-uk": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-legislation-uk"
      ]
    }
  }
}

Melta UI

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "melta-ui": {
      "command": "npx",
      "args": [
        "-y",
        "melta-ds-mcp"
      ]
    }
  }
}

Frequently asked questions

Legislation Uk is categorized under Legal and uses a local stdio subprocess. Melta UI belongs to Legal and uses a local stdio subprocess. Pick Legislation Uk for legal work and Melta UI for legal.

Copy the mcpServers block from the config section on this page into your client's config (for example claude_desktop_config.json or ~/.cursor/mcp.json), then fully restart the client.

Legislation Uk has no declared pricing — check the project's own site. Melta UI has no declared pricing — check the project's own site. If a server needs environment variables such as API keys, define them under the env key in your client's MCP config.

Yes. MCP clients support multiple servers: add legislation-uk and melta-ui as separate keys in the same mcpServers object, and your assistant will call tools from either one.

On AllMCPs, Legislation Uk has a quality signal of 55/100 (Good) with 0 views, 0 installs and 0 GitHub stars. Melta UI has 68/100 (Great) with 3 views, 0 installs and 202 GitHub stars.