# BOE MCP for AI Agents AI Agent Connect

> BOE (Boletín Oficial del Estado) MCP lets you query the official Spanish State Gazette directly through your AI agent. You can pull consolidated legislation, daily summaries of the BOE and BORME, and detailed legal analysis. It turns the complex Spanish legal framework into a conversational interface for legal research and compliance monitoring.

## Overview
- **Category:** knowledge-management
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_VIYX9J107gxOUdbcYhccemKFwIdGfUF2CuwSet9a/ai-agent-connect
- **Tags:** spanish-law, legislation, official-gazette, legal-research, boe

## Description

Navigating the Spanish legal system is usually a slog of tabs, bookmarks, and manual searching through official gazettes. This Connector changes that by letting your AI agent do the heavy lifting for you. Instead of hunting for the latest version of a law or trying to figure out if a specific regulation was repealed three years ago, you just ask your agent to find the consolidated text or summarize the latest daily publications. It pulls directly from the official BOE and BORME open data feeds, meaning you're getting the source of truth without the manual navigation. Whether you're a lawyer trying to find a specific article in a massive code or a compliance officer tracking daily updates, this connector makes the data actionable. You can see the hierarchy of a law, its previous relations, and its current status in one go. It's one of the many practical tools available in the Vinkius catalog that turns static government data into a searchable, conversational knowledge base for your legal workflow. You can get answers about legal ranks, issuing departments, and specific subjects without ever having to leave your chat interface. It turns a massive, intimidating database into a clear, organized set of facts that you can query as naturally as you're talking to a colleague.

## Tools

### get_borme_summary
Get daily summary of the BORME. This helps you quickly see all business registry updates for a specific day.

### get_consolidated_legislation
Get consolidated legislation by ID. Use this to pull the most recent, updated version of a Spanish law.

### get_legislation_analysis
Get legal analysis for consolidated legislation. This shows you how different laws relate to each other.

### get_legislation_block
Get specific block of consolidated legislation. Pull a single article or section without reading the whole law.

### get_legislation_eli_metadata
Get ELI metadata for consolidated legislation. This is useful for identifying European Legislation Identifiers.

### get_legislation_metadata
Get metadata for consolidated legislation. This provides the core details and status of a specific law.

### get_legislation_text_index
Get text index of consolidated legislation. This shows you the internal structure and hierarchy of a law.

### get_legislation_text
Get full text of consolidated legislation. This is the best way to pull the entire text of a law for review.

### list_consolidation_states
List auxiliary consolidation states. Use this to see the various states of a law's consolidation over time.

### list_departments
List auxiliary issuing departments. This tells you which government bodies are responsible for the legislation.

### list_posterior_relations
List auxiliary posterior legal relations. This helps you see which laws were created after a specific one.

### list_previous_relations
List auxiliary previous legal relations. This shows which laws were modified or repealed by the current one.

### list_ranks
List auxiliary legal ranks. This clarifies the hierarchy and authority level of a piece of legislation.

### list_scopes
List auxiliary scopes. This helps you understand the reach and application of a specific law.

### list_subjects
List auxiliary subjects/topics. This makes it easier to categorize and find laws by theme.

### search_consolidated_legislation
Search consolidated legislation. Use this to find the latest versions of laws based on your search terms.

### get_boe_summary
Get daily summary of the BOE. This allows you to see everything published in the official gazette on a given day.

## Prompt Examples

**Prompt:** 
```
Show me the summary of documents published in the BOE for January 10th, 2024.
```

**Response:** 
```
I've retrieved the BOE summary for 20240110. It contains 142 documents across sections like 'General Dispositions', 'Authorities and Personnel', and 'Other Dispositions'. Would you like to see the titles in a specific section?
```

**Prompt:** 
```
Search for consolidated legislation related to 'Ley de Propiedad Intelectual'.
```

**Response:** 
```
I found the consolidated version of the Intellectual Property Law (BOE-A-1996-8930). It was last updated on March 30, 2023. Would you like me to fetch the full text or the structural index?
```

**Prompt:** 
```
Get the legal analysis and relations for law BOE-A-2015-10565.
```

**Response:** 
```
Analyzing BOE-A-2015-10565 (General Tax Law)... This law has 15 previous relations (norms it modifies or repeals) and 42 posterior relations. It covers subjects like 'Tax Administration' and 'Public Finance'. Should I list the specific laws it modifies?
```

## Capabilities

### Pull consolidated laws
Get the most recent version of Spanish legislation using its official ID.

### Fetch daily summaries
Retrieve a complete index of documents published in the BOE or BORME for any date.

### Analyze legal relations
Understand how different laws modify, repeal, or relate to one another.

### Extract specific articles
Grab a single block of text, like a specific article, from a larger law.

### View structural indexes
See the internal hierarchy and sections of a piece of legislation.

### Access full legal text
Get the complete text of a law for deep analysis.

### Retrieve ELI metadata
Fetch European Legislation Identifiers for cross-border legal tracking.

## Use Cases

### Verifying the current status of a law
A lawyer needs to know if a specific regulation is still active. They ask their agent to pull the latest consolidated version and check the status.

### Monitoring daily business registrations
A compliance officer wants to see what was published in the BORME today. They ask the agent to provide a summary of the daily registry.

### Mapping out legal modifications
A researcher wants to see every law that has modified the General Tax Law. They ask the agent to list all posterior relations.

### Extracting specific requirements
A citizen needs to find the specific requirements for a new permit. They ask the agent to pull just the relevant block of articles from the law.

## Benefits

- Stop hunting for updated laws because get_consolidated_legislation pulls the latest versions automatically.
- Track daily regulatory changes without manual browsing by using get_boe_summary for daily gazette updates.
- Understand complex legal histories using list_previous_relations and list_posterior_relations to see how laws interact.
- Extract specific articles instantly with get_legislation_block so you don't have to scroll through hundreds of pages.
- Verify regulatory scope and hierarchy using list_scopes and list_ranks to ensure full compliance with Spanish law.

## How It Works

The bottom line is you get direct, conversational access to the official Spanish legal registry without leaving your chat interface.

1. Subscribe to the BOE MCP on the Vinkius Marketplace.
2. Connect your AI client to the public open data feed.
3. Ask your agent to find specific Spanish laws or summarize daily gazettes.

## Frequently Asked Questions

**Does the BOE MCP work for all types of Spanish law?**
Yes, it covers consolidated legislation, daily summaries, and official gazettes. It's a direct link to the official Spanish legal registry.

**Can I use the BOE MCP to find the latest version of a specific law?**
Yes, that's one of its main jobs. You can ask your agent to find the consolidated version of any law by its ID or name.

**Does this Connector include the Mercantile Registry (BORME)?**
It does. You can use it to get daily summaries of the BORME to track business-related publications.

**Can my agent extract specific articles from a law?**
Yes, it can. You can tell your agent to pull a specific block or article so you don't have to read through the entire document.

**Is the data from the BOE MCP official?**
It pulls directly from the official BOE open data service, so it's the same source the government uses.

**How does this help with legal compliance?**
It allows you to monitor daily publications and check the current status of regulations, making it much easier to stay up to date.

**How can I see all the laws and decrees published in the BOE on a specific date?**
Use the `get_boe_summary` tool by providing the date in YYYYMMDD format. The agent will return the full index of documents and sections published on that day.

**Can I search for the most recent version of a specific law like the Civil Code?**
Yes! You can use `search_consolidated_legislation` with a query like 'Código Civil' to find the latest updated version, or use `get_legislation_text` if you already have the ID (e.g., BOE-A-1889-4763).

**Is it possible to retrieve only a specific article of a law instead of the whole text?**
Absolutely. First, use `get_legislation_text_index` to find the block ID for the article you need, then use `get_legislation_block` to fetch only that specific content.