ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Uk Legislation MCP Server

โดย cyanheadsรุ่น 0.2.1i★ –iบนเครื่องหรือคลาวด์
ชื่อใน registryio.github.cyanheads/uk-legislation-mcp-server

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

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

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: บนเครื่องหรือคลาวด์
  • ช่องทาง (transport): stdio, Streamable HTTP
  • หมวด: กฎหมายและข้อมูลภาครัฐ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • รันบนคลาวด์ไม่ต้องลงโปรแกรมเพิ่ม ต่อผ่านอินเทอร์เน็ตได้เลย
  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

ใช้ได้ทั้ง Claude บนเว็บ แอปคอมพิวเตอร์ และมือถือ:

  1. เปิด Settings → Connectors
  2. กด Add custom connector
  3. วางที่อยู่ด้านล่างแล้วกด Add
  4. ถ้าให้ล็อกอิน ให้ล็อกอินกับผู้ทำ
SettingsConnectors1+ Add2https://…3
https://uk-legislation.caseyjhand.com/mcp

หรือรันในเครื่องคุณ

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "uk-legislation": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server"
      ],
      "env": {
        "UK_LEGISLATION_CONTACT": "ใส่ค่าของคุณ",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "ใส่ค่าของคุณ",
        "UK_LEGISLATION_CACHE_MAX_MB": "ใส่ค่าของคุณ",
        "MCP_LOG_LEVEL": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

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

หรือรันในเครื่องคุณ

claude mcp add uk-legislation --env UK_LEGISLATION_CONTACT='ใส่ค่าของคุณ' --env UK_LEGISLATION_MIN_REQUEST_GAP_MS='ใส่ค่าของคุณ' --env UK_LEGISLATION_CACHE_MAX_MB='ใส่ค่าของคุณ' --env MCP_LOG_LEVEL='ใส่ค่าของคุณ' -- npx -y @cyanheads/uk-legislation-mcp-server

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "uk-legislation": {
      "url": "https://uk-legislation.caseyjhand.com/mcp"
    }
  }
}

หรือรันในเครื่องคุณ

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "uk-legislation": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server"
      ],
      "env": {
        "UK_LEGISLATION_CONTACT": "ใส่ค่าของคุณ",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "ใส่ค่าของคุณ",
        "UK_LEGISLATION_CACHE_MAX_MB": "ใส่ค่าของคุณ",
        "MCP_LOG_LEVEL": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "uk-legislation": {
      "type": "http",
      "url": "https://uk-legislation.caseyjhand.com/mcp"
    }
  }
}

หรือรันในเครื่องคุณ

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "uk-legislation": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server"
      ],
      "env": {
        "UK_LEGISLATION_CONTACT": "ใส่ค่าของคุณ",
        "UK_LEGISLATION_MIN_REQUEST_GAP_MS": "ใส่ค่าของคุณ",
        "UK_LEGISLATION_CACHE_MAX_MB": "ใส่ค่าของคุณ",
        "MCP_LOG_LEVEL": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ChatGPT ต่อได้เฉพาะ server ที่อยู่บนอินเทอร์เน็ต:

  1. เปิด ChatGPT บนเว็บ → Settings → Connectors (Apps)
  2. กด Create หรือ Add (บางแพ็กเกจต้องเปิด Developer mode ใน Advanced ก่อน)
  3. วางที่อยู่ด้านล่าง ตั้งชื่อ แล้วบันทึก
  4. ถ้าให้ล็อกอิน ให้ล็อกอินกับผู้ทำ
SettingsConnectors1+ Create2https://…3
https://uk-legislation.caseyjhand.com/mcp

ชื่อเมนูอาจต่างกันเล็กน้อยตามแพ็กเกจและรุ่นของแอป

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • UK_LEGISLATION_CONTACT env
    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 env
    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 env
    Response cache size bound, in MB (8-1024).
  • MCP_LOG_LEVEL env
    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

ชื่อและคำอธิบายเครื่องมือตามที่ server ตอบมาเมื่อ 7 พ.ย. 2569 ผู้ทำเป็นคนเขียน ไม่ใช่เรา แสดงเป็นข้อความล้วน

  • uklaw_search_legislation

    Search the UK statute book on legislation.gov.uk by full text or title, or list legislation by type and year, filtered by geographical extent and point in time. Full-text search ranks by relevance; title searches and type/year listings run newest year first and carry type and yea

  • uklaw_get_document

    Read one item or one provision of UK legislation from legislation.gov.uk — as it stands now (revised), as enacted/made, or as it stood on a date — in Markdown, with its editorial status, annotations (the applied amendment history), the unapplied effects touching it, the versions

  • uklaw_get_amendments

    List the effects — amendments, repeals, revocations, commencements, modifications — recorded against an item (direction affected) or made by an item (direction affecting), from legislation.gov.uk's changes feeds. Filter by the other item (counterpart), by applied status (unapplie

  • uklaw_track_changes

    Read the legislation.gov.uk Publication Log for a date window of up to 31 days: new items, new revised versions, newly recorded effects, and withdrawals, newest first — the compliance-monitoring view of "what changed". Filter by content type, effect direction, category, an item o

  • uklaw_lookup_citation

    Resolve a citation or short title to the canonical legislation.gov.uk item and provision: "Data Protection Act 2018 s. 45", "2018 c. 12", "S.I. 2019/419", "S.S.I. 2020/123", "S.R. 2020/12", "2020 asp 13", "Regulation (EU) 2016/679 art. 28", a legislation.gov.uk URI, or a short ti

  • uklaw_list_reference

    Decode the vocabulary the other uklaw_* tools take and return: legislation type codes (ukpga, uksi, eur, …) with their labels, categories and enacted keywords; type groups; extents; version keywords; document status; annotation letters (F, C, I, M, E, P, X); effect record fields;

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 9 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub cyanheads ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • ✓ ผ่าน

    endpoint ตอบ

    ตอบกลับใน 487 ms (HTTP 200)

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ไม่ต้องล็อกอิน

  • ✓ ผ่าน

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    อ่านคำอธิบายเครื่องมือ 6 ตัวแล้ว ไม่พบคำสั่งแอบแฝงถึง AI

เทียบกับตัวอื่นในหมวด กฎหมายและข้อมูลภาครัฐi

  • ดาวมากกว่า 0% ของอีก 1758 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 70% ของอีก 1758 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1758 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Uk Legislation MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 3 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

ได้ทั้งสองแบบ จะลงในเครื่องหรือต่อผ่านคลาวด์ก็ได้

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.1) เข้า registry 10 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT ที่เปิดโหมดนักพัฒนา

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Gerro: госзакупки для ИИ / Russian public procurement, Contract Compass, Thai Legal

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Contract Compass

Korean public procurement law: rule-engine rulings, statutes search, live court precedents

โดย sallim-appยังใหม่มากอัปเดต วันนี้

รันบนคลาวด์✓ sallim.app

Thai Legal

Thai legal search MCP — statutes, gazette, opinions, court cases. Pro: court-jurisdiction rulings.

โดย legaltech.in.thยังใหม่มากอัปเดต วันนี้

รันบนคลาวด์✓ legaltech.in.th

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

@cyanheads/uk-legislation-mcp-server Search and read UK legislation at any date, resolve citations, list amendments, track changes via MCP. STDIO or Streamable HTTP. 6 Tools • 1 Resource

Public Hosted Server: https://uk-legislation.caseyjhand.com/mcp


Overview

The UK statute book from legislation.gov.uk: primary, secondary, and EU-origin legislation for the UK, England, Scotland, Wales, and Northern Ireland. Resolve citations, search by text or title, read any provision as it stands today, as enacted, or on a past date, and track amendments. No API key required.

Tools
ToolDescription
uklaw_search_legislationSearch by full text or title, or list by type and year, filtered by extent and point in time
uklaw_get_documentRead an item or provision as revised, as enacted or made, or on a date, with its editorial status and unapplied effects
uklaw_get_amendmentsList the effects (amendments, repeals, commencements, modifications) recorded against an item or made by it
uklaw_track_changesRead the legislation.gov.uk Publication Log for a window of up to 31 days
uklaw_lookup_citationResolve a citation, short title, or legislation.gov.uk URI to the canonical item and provision
uklaw_list_referenceDecode type codes, extents, version keywords, annotation letters, citation forms, and other vocabulary, offline
Resources
ResourceDescription
skill://uk-legislation-guide/SKILL.mdAgent Skill covering how to decide with the uklaw_* tools whether a provision is in force and current, its text on a date, what amended or commenced it, and what changed since a date

The skill is served over MCP through the Agent Skills extension (io.modelcontextprotocol/skills, skill://{+path} template) and ships in skills/ in the npm package, the Docker image, and the .mcpb bundle. The tools do not depend on it.

Capability reference

uklaw_search_legislation tool
  • text (full text: AND/OR, "quoted phrases", stemming) and/or title (every word must occur), or neither to list by type and year; limit 1–50 (default 20) with page
  • Filters: types (codes such as ukpga, uksi, eur, or the groups all, primary, secondary, eu-origin, draft; default all, which excludes drafts), year or year_from / year_to (1267–2100), extent (england, wales, scotland, ni) with extent_match (applicable or exact), and as_of (YYYY-MM-DD); extent and as_of cannot be combined
  • Each result carries the item path to pass to uklaw_get_document; has_more flags another page, and title searches and listings add facets (type counts and the newest 25 years)

uklaw_get_document tool
  • item is a full path (ukpga/2018/12, uksi/2019/419, eur/2016/679, regnal ukpga/Eliz2/3-4/19) or a legislation.gov.uk URI; provision a path (section/45/2/f, schedule/2/paragraph/3) or shorthand (s. 45(2)(f), Sch. 2 para. 3); version current (default), enacted (or made, adopted, created), or a YYYY-MM-DD date; language en or cy
  • kind is full (Markdown text with its annotations), outline (provision paths to read next, 100 per call from outline_offset), or pdf_only (links.pdf); text over 20,000 characters, or an item with more than 25 leaf provisions, comes back as an outline (a provision with no smaller provisions to list is returned whole up to 40,000 characters and cut past that, with a notice linking the full text), and match_text lists an item's provisions that contain a term
  • editorial (document_status, outstanding_effects, caveat) and unapplied_effects (the first 20, at item or provision level; a provision read also lists the effects on its enclosing provisions and, on full text, the provisions inside it, and says when it could not check them) show how far the revised text can be relied on; version.available lists the versions to pass as version

uklaw_get_amendments tool
  • item full or partial (uksi, ukpga/2018); direction affected (default: changes made to it) or affecting (changes it makes); filters counterpart (the other item, full or partial), status (all, unapplied, applied; default all), and provision (needs a full item; scans up to 1,500 effects per call)
  • limit 1–100 (default 20), continued with next_cursor; each effect names both sides with their provisions, in_force dates, applied / outstanding, and notes; total counts effects before the provision filter, and scan reports its coverage
  • Pre-1963 Acts are queried by calendar year (ukpga/1925/20) and drafts are not indexed: both fail as regnal_item / draft_item, with the route to take instead

uklaw_track_changes tool
  • start_date (required) and end_date (defaults to start_date), a window of at most 31 days; filters content_type (legislation, changes, draft, associated-documents), direction (with changes only), category (primary, secondary, eu-origin; with legislation or associated-documents only), item, new_only, and event (published, withdrawn)
  • limit 1–80 (default 40), continued with next_cursor; mode is day_walk (days newest first, up to 4 upstream requests per call) or item_log (a full item path reads that item's own log and reports read_back_to)
  • A changes event carries no effect detail: uklaw_get_amendments on its item has it

uklaw_lookup_citation tool
  • One citation of up to 300 characters: a numbered citation, a short title, or a legislation.gov.uk URI, optionally with a provision (forms below)
  • Returns the canonical item path, plus provision_found for a cited provision, checked against the current version; a miss or an ambiguous title is found: false with guidance or up to 20 candidates, not an error
FormExamplesResolves to
UK Act by chapter2018 c. 12ukpga/2018/12; before 1963 the calendar year is searched and the regnal candidates returned
Act of the Northern Ireland Assembly2016 c. 5 (N.I.)nia/2016/5
UK Statutory InstrumentS.I. 2019/419, SI 2019 No. 419, S.I. 2002/808 (W. 89)uksi/2019/419; alternative series numbers are ignored, and Welsh and NI SIs canonicalize to wsi / nisi
Scottish Statutory InstrumentS.S.I. 2020/123ssi/2020/123
Northern Ireland Statutory RuleS.R. 2020/12, S.R. 2020 No. 12nisr/2020/12
Scottish and Welsh Acts and Measures2020 asp 13, asp 2020/13, 2016 anaw 1, 2021 asc 1, 2010 nawm 1asp/2020/13, anaw/2016/1, asc/2021/1, mwa/2010/1
EU-origin legislationRegulation (EU) 2016/679, Regulation (EC) No 1535/2003, Directive 95/46/EC, Decision (EU) 2019/419; the issuing body may lead (Council Regulation (EC) No 1/2003)eur/2016/679, eur/2003/1535 (pre-2015 numbering is number/year), eudr/1995/46, eudn/2019/419
Defined nameUK GDPReur/2016/679
legislation.gov.uk URIhttps://www.legislation.gov.uk/ukpga/2018/12/section/45Split into item, provision, and version
Short titleData Protection Act 2018, Human Rights Act 1998 (c. 42)Resolved by title and year; a trailing chapter resolves the Act by number when the title does not

Any form can end with a provision (s. 45(2)(f), section 45, reg. 5, art. 28(3), r. 7, r. 3.4, Sch. 2 para. 3, Pt 3) or start with one followed by "of" or "of the": section 45 of the Data Protection Act 2018. uklaw_list_reference topic citation_formats returns the same list.


uklaw_list_reference tool
  • topic: types, type_groups, extents, versions, document_status, annotation_types, effects, provision_paths, citation_formats, publication_log, coverage, or attribution
  • Offline, with no request to legislation.gov.uk; each entry is a key, label, description, and optional details

skill://uk-legislation-guide/SKILL.md resource
  • Markdown with YAML frontmatter: scope, identifier sources, the gates for in-force status, revised-text lag, container effects, dated reads, and date semantics, and workflows for commencement, point-in-time text, amendment history, and changes since a date
  • Listed in resources/list; the skill://{+path} template reads any file under it

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

legislation.gov.uk-specific:

  • Keyless client for legislation.gov.uk's API: CLML XML for documents, Atom feeds for search, effects, and the Publication Log
  • Follows legislation.gov.uk's fair use policy: an identifying User-Agent on every request, one process-wide queue that spaces request starts (1 second apart by default) and adopts a longer robots.txt crawl delay set for this server, up to 60 seconds, and at most 4 upstream requests per tool call within a 45-second deadline
  • Process-wide response cache, with lifetimes taken from upstream max-age (capped at one hour) and If-Modified-Since revalidation
  • Citation shorthand (s. 45(2)(f), reg. 5, Sch. 2 para. 3) normalized to provision paths; pre-1963 regnal paths and Welsh-language text (language: "cy") supported
  • PDF-only items are linked, never fetched, as legislation.gov.uk's robots.txt requires

Agent-friendly output:

  • Every document read returns its editorial status with the text (`editoria

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx