# UK Legislation MCP for AI Agents AI Agent Connect

> UK Legislation MCP. Access the official UK government database for acts, statutory instruments, and legislative documents. Search by subject, year, or title to retrieve specific sections and schedules for legal research and compliance checks. This tool provides a direct connection to primary sources of truth for anyone needing to navigate the complexities of UK law.

## Overview
- **Category:** knowledge-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_xeq5gM1JIjKar6As1MxCRPQsZ6z4Lxz0GhmRAC32/ai-agent-connect
- **Tags:** law, public-records, regulatory-data, parliamentary-acts, search-engine

## Description

This Connector connects your agent directly to the official UK Parliament and devolved administration legislative database. Instead of manually digging through government portals, you can ask your agent to find specific acts or statutory instruments. It handles the heavy lifting of navigating complex legal hierarchies, letting you pull out exact sections, schedules, or the entire table of contents for a piece of law. If you're trying to track recent changes or find historical records from a specific year, this tool puts that data into your conversation. It's a way to turn your AI into a legal archivist that knows where to look for the primary source of truth. You'll find this in the Vinkius catalog alongside other knowledge management tools that help ground your agent in real-world data. It works by querying the public database to provide structured information on everything from Public General Acts to specific Statutory Instruments. Whether you are drafting a policy, checking a regulation, or studying constitutional history, you get the facts directly from the source without the manual searching. By providing a direct connection to the primary source, it removes the guesswork from finding the most current version of a statute.

## Tools

### get_legislation
Retrieves specific details for a piece of UK legislation. This provides a general overview of a specific act or instrument.

### get_recent_legislation
Pulls the most recently published legislative documents. This is useful for staying on top of new laws and updates.

### search_by_subject
Searches for legislation based on a specific subject area. Use this for broad research on topics like environment or finance.

### search_legislation
Returns a list of matching acts, statutory instruments, and other documents. Use this for general keyword searches across the database.

### get_legislation_by_year
Lists UK legislation for a specific year. This helps you find historical records and acts from any point in time.

### get_table_of_contents
Fetches the full table of contents for a piece of legislation. Use this to see the hierarchy and structure of a complex act.

### get_schedule
Fetches a specific schedule from a piece of legislation. Use this to find detailed lists or requirements within a larger act.

### get_section
Retrieves a specific section of UK legislation. This is the best way to extract the exact text you need for analysis.

## Prompt Examples

**Prompt:** 
```
Find the Data Protection Act 2018.
```

**Response:** 
```
I've searched the database and found the 'Data Protection Act 2018' (ukpga/2018/12). I can retrieve its full table of contents or specific sections for you. Which part would you like to examine?
```

**Prompt:** 
```
What acts were passed in 2024?
```

**Response:** 
```
Retrieving the list for 2024... I found several acts including the 'Finance Act 2024'. Would you like me to get the details or table of contents for any of these?
```

**Prompt:** 
```
What is Section 1 of the Human Rights Act 1998?
```

**Response:** 
```
Fetching Section 1... This section defines 'The Convention rights' and lists the specific articles of the European Convention on Human Rights that are given effect in the UK. Would you like me to list those articles?
```

## Capabilities

### Search for laws by keyword
Search the official database for specific acts or statutory instruments.

### Pull specific law sections
Extract exact text from a piece of legislation for analysis.

### Get full tables of contents
See the hierarchy and structure of a complex act at a glance.

### Track recent law updates
Find the most recently published legislative documents.

### Access historical records
Look up primary legislation enacted in any specific year.

## Use Cases

### New regulation tracking
A compliance officer needs to find the newest rules on data privacy. They ask the agent to find recent statutory instruments.

### Legal research structure
A law student wants to see the structure of the Human Rights Act. They ask for the table of contents.

### Historical act lookup
A researcher is looking for all laws passed in 2024. They ask for a list of legislation by year.

### Specific clause extraction
A policy analyst needs the exact text of a specific environmental rule. They ask for a specific section.

## Benefits

- Stop manual government site searching. Use search_legislation to find relevant acts instantly.
- Get exact wording for legal analysis. Use get_section to pull specific text without scrolling through hundreds of pages.
- Understand complex legal hierarchies. Use get_table_of_contents to see how a piece of legislation is structured.
- Keep up with new regulations. Use get_recent_legislation to see what the government just passed.
- Access historical data easily. Use get_legislation_by_year to find old acts for constitutional research.

## How It Works

The bottom line is your agent gets a direct line to official UK law without you having to leave your chat interface.

1. Subscribe to this Connector on Vinkius
2. Connect your AI client to the Vinkius catalog
3. Ask your agent to find or summarize UK laws

## Frequently Asked Questions

**Can the UK Legislation MCP find specific sections of a law?**
Yes, it can pull specific sections or schedules directly from the official database, allowing you to see the exact wording of a statute.

**Does the UK Legislation MCP include historical acts?**
Yes, it lets you search by year to find old legislation, which is helpful for historical research or tracking how laws have changed over time.

**Can I use the UK Legislation MCP for compliance checks?**
Yes, it helps you find the most recent statutory instruments and acts to ensure your records are based on current government rules.

**How does the UK Legislation MCP help with legal research?**
It provides primary source text from the official database, meaning you get the facts directly from the source rather than a secondary summary.

**Does the UK Legislation MCP require an API key?**
No, it uses public access to the legislation database, making it easy to connect to your AI client immediately.

**Can I use the UK Legislation MCP to find specific schedules?**
Yes, you can pull specific schedules from any act to see detailed requirements, lists, or appendices that might be buried deep in a long document.

**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.