boe-mcp
# BOE-MCP. MCP Integration with the BOE API
[](README_es.md)
[](README.md)
## DESCRIPTION
**BOE is the Official State Gazette of Spain.**
**Boe-mcp** enables querying consolidated legislation, BOE/BORME summaries, and legal reference data directly through Claude AI and other MCP-compatible clients using the **Model Context Protocol (MCP)**.
Boe-mcp is an MCP server that exposes tools for LLMs to access:
- Consolidated legislation of the Spanish legal system
- Daily BOE and BORME summaries
- Auxiliary tables for legal domains, jurisdictions, and government departments
## KEY FEATURES
- Advanced search of consolidated legislation with date, jurisdiction, and validity filters
- Full legal text retrieval in XML/JSON formats
- Historical BOE and BORME summary queries
- Access to legal reference tables (domains, departments, legal relationships)
- Block-level navigation of legal texts
- Automatic consolidation status validation
## INSTALLATION
### Install with uv
### Prerequisites
- Python 3.10 or higher.
- [uv](https://docs.astral.sh/uv/getting-started/installation/) package manager.
### Installing uv
The first step is to install `uv`, a package manager for Python.
**It can be installed from the command line**.
On macOS and Linux:
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
On Windows:
```bash
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```
You can also install it with pip:
```bash
pip install uv
```
For more information about installing uv, visit the [uv documentation](https://docs.astral.sh/uv/getting-started/installation/).
## INTEGRATION WITH CLIENTS LIKE CLAUDE FOR DESKTOP
1. Go to **Claude > Settings > Developer > Edit Config > `claude_desktop_config.json`**.
2. Add this configuration block under `"mcpServers"`:
```json
"boe_mcp": {
"command": "uvx",
"args": [
"boe_mcp"
]
}
```
3. If you have other MCP servers configured, separate them with commas `,`.
## USAGE EXAMPLES
Once configured, you can make queries like:
- "List current state laws on data protection"
- "Show the BOE summary for June 14, 2024"
- "Display the BOE legal domains table"
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: searching norms, retrieving norm sections, getting daily summaries for BOE and BORME, and accessing auxiliary tables. No two tools overlap in functionality, and the summary tools are differentiated by the source bulletin.
Four tools follow a consistent 'get_' prefix pattern (get_law_section, get_boe_summary, get_borme_summary, get_auxiliary_table), while search_laws_list deviates with 'search_'. Names are otherwise readable and predictable, but the single deviation and a cross-reference typo ('search_consolidated_laws_list' vs 'search_laws_list') prevent a perfect score.
With 5 tools, the server is well-scoped for its purpose of accessing BOE legal data. Each tool covers a distinct aspect (search, retrieval, summaries, auxiliary tables) without redundancy or excessive granularity.
The tool surface covers the core workflow for legal research: searching norms, retrieving full texts or specific sections, browsing daily summaries, and using controlled vocabularies for precise queries. There are no obvious dead ends or missing operations for typical use cases.