io.github.cyanheads/uk-legislation-mcp-server MCP Server
io.github.cyanheads/uk-legislation-mcp-server
What this kind of tool is for
- Let your agent search the web or a document set and cite what it found.
- Pull structured facts out of pages instead of copy-pasting by hand.
- Track changes on a topic over days without re-reading everything.
How to compare servers like this
- Source coverage:
- Check which engines, sites, or document types the tool can actually reach.
- Citation behavior:
- Prefer tools that return links you can open, not just summarized claims.
- Terms of service:
- Some sources forbid automated access; make sure the tool stays inside them.
- Maintenance signal:
- Scrapers break silently when pages change; recent commits are the best proxy.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the io.github.cyanheads/uk-legislation-mcp-server MCP server?
Search and read UK legislation at any date, resolve citations, list amendments, track changes.
How to install io.github.cyanheads/uk-legislation-mcp-server
Copy-paste configuration for popular MCP clients.
UK_LEGISLATION_CONTACTEmail 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_MSMinimum 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_MBResponse cache size bound, in MB (8-1024).
MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_HTTP_HOSTThe hostname for the HTTP server.
MCP_HTTP_PORTThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.
MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.
{
"mcpServers": {
"uk-legislation-mcp-server": {
"command": "node",
"args": [
"-y",
"@cyanheads/uk-legislation-mcp-server",
"run",
"start:stdio"
],
"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>",
"MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
"MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
"MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
"MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
}
}
}
}Related MCP servers
UN Comtrade international trade statistics via MCP. Country/HS lookups, flows, balances, rankings.
Query UNHCR refugee, IDP, and stateless populations, asylum decisions, returns, and resettlement.
Protein research over UniProtKB — search by function, fetch curated records, map IDs, proteomes.
Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.
Search foods, compare nutrients, and look up the full USDA FoodData Central database.
Query real-time and historical USGS water data from ~8,000 stream gages and groundwater wells.
