UK Legislation MCP. Access primary source law records directly.
Works with every AI agent you already use
…and any MCP-compatible client
Just plug in your AI agents and start using Vinkius.
UK Legislation MCP Server connects your AI agent directly to the official UK law database. Search, retrieve, and analyze Acts, Statutory Instruments, and specific sections of British law in real-time.
Need to verify a rule or track legislative changes? This server gives you direct access to primary legal sources from the UK Parliament.
What your AI agents can do
Get legislation
Retrieves specific details about a named piece of UK legislation.
Get legislation by year
Lists all Acts and instruments that were enacted during a specified calendar year.
Get recent legislation
Pulls the full details of legislative documents published most recently by the government.
The agent searches across multiple acts and instruments using broad keywords related to a topic.
You pinpoint an exact section within a piece of legislation, retrieving its full text immediately.
The agent lists all major acts and instruments passed during a specified calendar year.
You pull up a list of legislative documents that were most recently published, ensuring you see new rules fast.
The agent fetches the complete table of contents for an act, showing its full hierarchy and scope.
Ask AI about this MCP
Supported MCP Clients
Waiting for input…
UK Legislation MCP Server: 8 Tools for Legal Retrieval
Use these tools to search by subject, retrieve specific sections, map tables of contents, or list all legislation passed during a precise year.
019d8494get legislation
Retrieves specific details about a named piece of UK legislation.
019d8494get legislation by year
Lists all Acts and instruments that were enacted during a specified calendar year.
019d8494get recent legislation
Pulls the full details of legislative documents published most recently by the government.
019d8494get schedule
Retrieves the content of a specific schedule attached to an act or instrument.
019d8494get section
Pulls the full, verbatim text for one defined section within any law.
019d8494get table of contents
Generates and returns a hierarchical map of all chapters and sections for a given act.
019d8494search by subject
Searches the entire database for laws that pertain to a defined subject area or keyword group.
019d8494search legislation
Returns a list of matching acts, statutory instruments, and legislative documents based on general search criteria.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with UK Legislation, then connect any of our 4,700+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 4,700+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
What you can do with this MCP connector
Your AI agent connects directly to the official UK legal database using this UK Legislation MCP Server. You'll find real-time access to Acts, Statutory Instruments, and specific British law sections straight from the Parliament. When you need to verify a rule or track legislative changes, your agent pulls primary source data instantly.
Searching for Law
To start looking through the massive body of UK law, you've got two main search paths. If you know what subject matter you're dealing with—say, environmental regulations or banking rules—you use search_by_subject. This tool searches across multiple Acts and Instruments using broad keywords related to that topic, giving you a pool of relevant laws.
If your criteria are more general (like searching by title or a specific year), you run search_legislation; it returns a list of matching acts, instruments, or legislative documents based on those general search terms.
Deep Structural Analysis and Retrieval
Once you've got a promising act from the searches, you need to understand its structure. You can use get_table_of_contents to generate a complete, hierarchical map of chapters and sections for that specific Act. This shows you exactly how the law is organized—it’s crucial for knowing your scope. If you're looking at a detailed section of text, you don't have to wade through pages; get_section pulls the full, verbatim text for one defined section within any law immediately.
You also use get_schedule when an Act references specific supplementary content attached to it; this tool retrieves that precise schedule material.
Time-Based and Targeted Retrieval
For tracking changes or finding foundational laws, you've got time-stamped tools. If you want to see every major law passed during a specific calendar year, you run get_legislation_by_year, which lists all Acts and instruments enacted in that chosen year. To stay ahead of the curve and know what just dropped, you use get_recent_legislation; this pulls up the full details for legislative documents published most recently by the government.
If you're targeting one specific piece of legislation by its known name, get_legislation retrieves all the core details about that named Act or Instrument.
Putting It All Together
You don’t just search; you analyze. You can combine these tools to build a complete legal picture for your agent. You'll use search_by_subject to narrow down general topics, then run get_table_of_contents on the results to map out their internal scope, and finally pull specific details using get_section or get_schedule. This whole process gives your AI client direct, reliable access that beats searching through dusty PDFs.
You're getting primary legal sources directly from the UK Parliament into your workflow.
How UK Legislation MCP Works
- 1 First, subscribe to the UK Legislation server. No API key is needed; access is public.
- 2 Next, instruct your AI client (Claude, Cursor, etc.) using natural language. For example: 'What is Section 5 of the Data Protection Act?'
- 3 The agent selects and executes the appropriate tool (like
get_section), pulls the raw data from the official source, and delivers the specific text back to you.
The bottom line is that your AI client handles the complex query flow—you just ask what law you need.
Who Is UK Legislation MCP For?
Legal professionals, compliance officers, and policy researchers use this when they can't trust general search engines with verifiable legal facts. They need direct access to primary source documents to avoid costly errors in drafting or regulatory reporting.
You check for required changes by running get_recent_legislation and comparing new rules against existing internal policies.
You track the history of a law, using search_by_subject combined with annual searches to build an argument's legal foundation.
You analyze legislative trends by retrieving full tables of contents (get_table_of_contents) for entire acts, mapping out structural shifts in policy.
What Changes When You Connect
- Verify legal compliance instantly. Instead of manually checking government sites, use
get_recent_legislationto pull the text of new statutory instruments and confirm if they affect your operations. - Build a chronological legal history. Use
get_legislation_by_yearto list all acts passed in 1998 or 2004, letting you trace how specific laws have evolved over decades. - Understand the full scope of an Act. Calling
get_table_of_contentsshows you the entire structure of a complex law, preventing you from missing a critical chapter buried deep inside. - Target precise data points. If you need to quote a rule, use
get_section. It pulls only that specific section's text, cutting out pages of irrelevant legal boilerplate. - Find laws by theme. Don't know the exact name of the law? Use
search_by_subjectto find all relevant legislation related to 'data privacy,' even if the acts are from different years.
Real-World Use Cases
Updating internal policy after a regulatory change
A compliance officer sees a news alert about new regulations. Instead of reading multiple government circulars, they prompt their agent: 'Show me all recent changes regarding financial reporting.' The agent uses get_recent_legislation and filters the results, immediately giving them the necessary text to update company policy.
Drafting a legal memo requiring historical context
A lawyer needs to reference how data protection rules changed after 2015. They use get_legislation_by_year for that period, then combine it with search_by_subject (e.g., 'data retention') to pull all relevant acts and sections for their memo.
Mapping the structure of a massive act
A student is studying constitutional law and needs to know how an Act is organized. They use get_table_of_contents on the main act, which provides the full, chapter-by-chapter breakdown, allowing them to understand the document's hierarchy without reading everything.
Verifying a specific legal clause for a client
A user needs to confirm exactly what 'The Convention rights' are under UK law. They use get_section on the Human Rights Act 1998, which immediately pulls the definitive text of that section, ensuring zero ambiguity.
The Tradeoffs
Running a general search for specific details
The user asks: 'Tell me about data protection.' The agent runs search_legislation and returns 50 links, forcing the user to click through multiple PDFs just to find the correct section.
→
Instead of searching generally, use targeted tools. If you need a specific rule, call get_section. If you need all related acts, use search_by_subject first, then drill down with get_table_of_contents.
Assuming keyword search is enough for history
The user asks: 'What laws covered banking in the 1980s?' A general search might miss acts that were passed but never widely publicized or indexed by a simple keyword query.
→
Always start with time boundaries. Use get_legislation_by_year for 1984, then repeat for 1985 to ensure you capture every piece of legislation from that period.
Confusing general search with structural analysis
The user asks: 'What are the parts of this Act?' They rely on search_legislation and get a list of documents, but no internal structure or chapter breakdown.
→
To understand the organization, you must use get_table_of_contents. That tool maps out the entire document's hierarchy, showing you exactly where everything is located.
When It Fits, When It Doesn't
Use this server if your research requires verifiable primary source data from the UK government. You need to know what the law says, not just that a law exists. If you are trying to understand structural relationships or historical changes (e.g., 'How did X change between 2015 and 2020?'), this is your primary toolset.
Don't use this if you simply need general information about the law, like an overview for a non-legal client. If you only need to know which agency handles a certain topic, another database might be faster. Also, don't rely on search_legislation as your single source of truth; always follow up with specialized tools like get_section or get_table_of_contents to guarantee data granularity and integrity.
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by UK Legislation. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This server provides 8 capabilities that interface natively with Claude, ChatGPT, Cursor, and any MCP client. No middleware. No custom integration required.
Available Capabilities
Finding the exact legal text you need shouldn't require three different government websites.
Today, finding a specific regulatory section means jumping between Act titles, checking date ranges on one site, and then cross-referencing that with another database to find the current version. It’s copy/paste hell just to verify a single paragraph.
With this server, you simply ask your agent: 'What is Section 3 of the Data Protection Act?' It runs `get_section`, pulls the definitive text directly from the source, and gives it to you in one clean response. No tabs, no jumping around.
The UK Legislation MCP Server delivers granular control using `get_section`.
Manual research forces you into macro views: 'I need to check the law.' This means fetching massive documents that contain thousands of irrelevant pages. You waste time filtering boilerplate language just to find one crucial paragraph.
Now, your agent uses `get_section`. It isolates exactly what you asked for—the section's text only. The output is clean, precise, and ready to cite immediately.
Common Questions About UK Legislation MCP
How do I find all laws related to finance from a specific year using get_legislation_by_year? +
You must first call get_legislation_by_year with the target year (e.g., 2024). Then, use search_by_subject on the resulting list of acts to filter for 'finance' or 'taxation' laws.
Is search_legislation better than get_section when I just need a general overview? +
No. search_legislation gives you a list of documents, which is too vague. If you want to see the actual text and structure of one document, use get_table_of_contents first, then drill down with get_section.
What do I use if I need to know what laws were published last week? +
You run the get_recent_legislation tool. This pulls the most recently published documents and gives you a list of acts, instruments, or amendments that are active now.
Can I find all regulations concerning data privacy using search_by_subject? +
Yes, this is the right tool. search_by_subject lets you input a high-level topic like 'data privacy' and retrieves every law across different years that touches on it.
How does using `get_table_of_contents` help me understand a complex Act's structure? +
It provides the full document hierarchy. This returns all chapters, parts, and sections within an Act, letting you map out the entire legal framework before diving into specifics.
When should I use `get_schedule` instead of retrieving a main section using `get_section`? +
Use get_schedule when the law contains supporting documents or detailed lists that aren't part of the narrative text. It isolates these structured appendix items for clean extraction.
What is the best sequence to use `search_legislation` and then look up details? +
First, run search_legislation to narrow results down to the specific Act or instrument you need. Then, pass that identifier directly into get_table_of_contents or get_legislation. This minimizes calls.
If I know an Act's name and year, how do I use `get_legislation` efficiently? +
You pass the specific identifier to get all core details in one go. This single call retrieves both the metadata and the main text, bypassing the need for multiple lookup steps.
Can I find the 'Human Rights Act 1998' and read its sections? +
Yes! Use the search_legislation tool with the title 'Human Rights' and year '1998'. Once you have the type (ukpga) and number (42), you can use get_section to read specific parts of the act.
How do I see all legislation enacted in 2023? +
Use the get_legislation_by_year tool and specify the year as '2023' and the type (e.g., 'ukpga' for Public General Acts). It will list all documents registered for that year.
Does this server provide recently published laws? +
Yes, you can use the get_recent_legislation tool to fetch a list of the most recently enacted and published legislative documents in the UK.
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
More in this category
Coda
Combine docs, spreadsheets, and apps into powerful all-in-one documents that grow with your team and automate routine work.
Notion
Manage your Notion workspace, databases, and pages via AI.
LlamaIndex (AI Data Framework & RAG)
Query and manage RAG pipelines via LlamaIndex — execute natural language searches, audit indexed files, and monitor data pipelines.
You might also like
Whop
Manage digital products, payments, and memberships on Whop with AI agents.
JSON Path Query Engine
Extract specific data from massive JSON payloads using JSONPath expressions.
Geekbot
Run asynchronous standups and team check-ins through Slack or Microsoft Teams that respect everyone timezone and schedule.