About Legislation MCP Ts
Legislation MCP Ts is an MCP server in the Science category: an MCP server for legislation.gov.uk in TypeScript.
Install
git clone https://github.com/legislation/legislation-mcp-tsThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (10)
count_powers_and_dutiesCount rows in the dataset, optionally grouped by one dimension (`enactment_type`, `enactment_year`, `actor`, `modality`, `priority`, `inference`, or `enactment_uri`). Grouped results are top-N by count, with a `groupsTruncated` flag.
Parameters not published.
get_legislationRetrieve full legislation documents. Default format is plain text; also supports XML (CLML), Akoma Ntoso, and HTML. Plain-text responses include an up-to-date callout listing any unapplied effects.
Parameters not published.
get_legislation_fragmentRetrieve a specific fragment (section, part, etc.) of a legislation document. Default format is plain text.
Parameters not published.
get_legislation_metadataGet structured JSON metadata for a document or a specific fragment (e.g. `section/12`, `part/2/chapter/1`). Returns status, extent, key dates, available versions, and unapplied effects. Supports point-in-time versions and Welsh-language metadata for bilingual legislation.
Parameters not published.
get_legislation_table_of_contentsRetrieve the table of contents for a piece of legislation. Default format is structured JSON.
Parameters not published.
get_powers_and_dutiesReturn all powers and duties for a single Act, SI, or Regulation, in best-effort provision order. Paginated, with an optional duty-vs-power `modalityBreakdown`.
Parameters not published.
get_resourceFetch an MCP resource by URI. Intended for API-connected agents that support tool calls but cannot access MCP resources directly; not needed for local MCP clients.
Parameters not published.
search_effectsSearch legislative effects (amendments, repeals, insertions) by source (affecting) and/or target (affected) legislation. Filter by `applied` status to find unapplied amendments.
Parameters not published.
search_legislationSearch by keyword (`q`), title, or metadata filters: `type` (single or multi-value, including aggregates like `primary`/`secondary`), `year`/`startYear`/`endYear`, `subject`, `department`, `extent` (E/W/S/NI), and `language` (english/welsh). Order results with `sort` (relevance, published, title, type, subject, basic). Returns 20 results per page with pagination support (`page` parameter, `meta.morePages` flag).
Parameters not published.
search_powers_and_dutiesSearch The National Archives' powers-and-duties research dataset. Each row identifies a power or duty granted to or imposed on an actor by a specific provision of UK legislation, with the action expressed in plain English. Free-text `query` supports implicit AND, `"quoted phrases"`, `OR` between terms, and `-` negation; combine with filters for `enactment_type`, year range, `actor`, `modality` (duty/power), `priority` (primary/secondary), and `inference` (explicit/implicit).
Parameters not published.
Ask AI
Ask AI about Legislation MCP Ts
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.