# BOE (Boletín Oficial del Estado) MCP

> BOE (Boletín Oficial del Estado) MCP gives your agent direct access to Spain's official legal gazette. Search consolidated laws, track daily regulatory updates from both the BOE and BORME, and pull specific articles or full texts for compliance review.

## Overview
- **Category:** knowledge-management
- **Price:** Free
- **Tags:** spanish-law, legislation, official-gazette, legal-research, boe

## Description

Need to navigate Spanish law? This connector connects you directly to the Boletín Oficial del Estado (BOE), letting your agent search and analyze Spain’s official legal system using natural conversation. You can find the latest updates on consolidated laws, get daily indexes of publications from both the BOE and the Mercantile Registry (BORME), or access detailed metadata about any piece of legislation. If you need to check how one law relates to another—like finding all previous or subsequent legal changes—you can map those complex relationships instantly. The entire catalog is housed on Vinkius, meaning once you connect your preferred AI client, this BOE tool just works with everything else you use.

## Tools

### get_boe_summary
Retrieves the daily index of all documents published in the Official State Gazette (BOE).

### get_borme_summary
Retrieves the daily index of all documents published in the Mercantile Registry (BORME).

### get_consolidated_legislation
Gets the current consolidated text for a specific law using its official ID format.

### get_legislation_analysis
Performs a deep legal analysis, showing the subject matter and general context of a given piece of legislation.

### get_legislation_block
Retrieves the text for one specific section or article within a consolidated law.

### get_legislation_eli_metadata
Pulls European Legislation Identifier (ELI) metadata to map the law's global context and standard ID format.

### get_legislation_metadata
Gets general, high-level metadata about a specific piece of consolidated legislation.

### get_legislation_text_index
Gets a structured index that outlines how the latest version of a law is organized by its internal blocks and sections.

### get_legislation_text
Fetches the complete, full text of an entire consolidated law or regulation.

### list_consolidation_states
Lists all available auxiliary consolidation states for filtering legislation searches.

### list_departments
Lists the issuing departments that created or managed the legal documents.

### list_posterior_relations
Shows which laws are affected by, or relate to, a specific law published.

### list_previous_relations
Shows which laws came before and influenced the current legislation being reviewed.

### list_ranks
Lists all available legal ranks used to categorize the type of law or decree.

### list_scopes
Lists auxiliary scopes for narrowing down the focus of a legislative search.

### list_subjects
Lists common topics or subject areas that the legislation covers (e.g., finance, property).

### search_consolidated_legislation
Performs a targeted search across all consolidated laws based on keywords or dates.

## 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

### Search for current laws
Find the updated versions of Spanish federal and regional legislation using a specific identifier.

### Retrieve daily publication indexes
Get a full list or index of all documents published in the BOE or BORME for any given day.

### Analyze legal relationships
Examine how one law connects to others by listing what norms it modifies, repeals, or relates to.

### Extract specific text blocks
Pull the full text of a whole law, or just a single section or article you need for review.

### Get legal context metadata
Access structured data like European Legislation Identifiers (ELI) and general legislative details for any document.

## Use Cases

### Monitoring a new industry regulation
A Compliance Officer needs to know every change related to 'Energy' in the last month. They ask their agent to first use `list_subjects` to confirm the correct subject code, then run `search_consolidated_legislation` with that term, and finally pull all resulting documents using `get_legislation_text` for a full audit.

### Mapping corporate legal history
A law firm needs to understand if their client's current operating procedure violates an older norm. They run the consolidated ID through `list_previous_relations` and then check `get_legislation_analysis` to see which specific rules are affected by recent changes.

### Quickly reviewing a single article
A legal scholar is reading about property rights. Instead of slogging through 50 pages, they ask the agent for `get_legislation_block` using the specific article ID. This instantly delivers only that small piece of text.

### Understanding a law's structure
A policy analyst receives a massive new legal document and needs to quickly grasp its internal organization. They use `get_legislation_text_index` first, which breaks the document down into navigable sections before they read anything.

## Benefits

- Track daily changes across the board. Instead of checking multiple websites, use `get_boe_summary` or `get_borme_summary` to get a single index of all new publications for both the BOE and BORME.
- Go beyond simple searches. If you need to know how Law X interacts with Law Y, run an analysis using `list_previous_relations` and `list_posterior_relations`. It maps out every legal predecessor or successor instantly.
- Stop reading dense PDFs. Use `get_legislation_text_index` first; it gives you a structural map of the law, letting you know exactly which sections to focus on before requesting the full text with `get_legislation_text`.
- Understand the context immediately. Using `get_legislation_analysis`, your agent doesn't just read the words, it tells you what subject areas (like 'Public Finance') or general types of law apply to that document.
- Verify the source and structure. Tools like `get_legislation_eli_metadata` pull official European identifiers, giving you verifiable data points critical for compliance reporting.

## How It Works

The bottom line is that you talk naturally about Spanish law, and this MCP handles all the complex database lookups and retrieval.

1. Subscribe to this MCP and enable public access via your AI client.
2. Ask your agent a question, like 'What was published in the BOE on October 1st?'
3. Your agent uses the appropriate tool to fetch the data and presents you with the actionable results.

## Frequently Asked Questions

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

**When I need to know what a law impacts, how do I use `list_posterior_relations`?**
It lists every subsequent norm that references or is modified by the target legislation. This tool provides crucial insight into compliance dependencies and legal ripple effects.

**If I need official European Identifiers, how does calling `get_legislation_eli_metadata` help me?**
It fetches the formal ELI metadata for any given consolidated law ID. This ensures you are using universally recognized identifiers required for deep legal mapping and structured data handling.

**Before I search, how do I understand the available legal contexts or categories using `list_scopes`?**
This function provides a list of auxiliary scopes, allowing you to narrow down your research scope immediately. It helps filter out irrelevant laws and focuses your queries on the exact legal domain you need.

**If I want an overview of a law's structure without fetching the full text, should I use `get_legislation_text_index`?**
Yes. This tool generates a detailed index by mapping out the structural hierarchy (articles and sections) of a consolidated law. It gives you the blueprint before committing to massive data retrieval.

**What’s the practical difference between calling `get_boe_summary` versus `get_borme_summary`?**
The summary tools are specific: `get_boe_summary` retrieves daily publications from the Official State Gazette, while `get_borme_summary` pulls records specifically from the Mercantile Registry.