npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@notset/boe-legal-mcp

v0.2.0

Published

MCP server for Spanish legislation. Access Spain's entire consolidated legal database (BOE) from Claude, Cursor, or any MCP-compatible AI agent.

Readme

@notset/boe-legal-mcp

MCP server to access Spain's entire consolidated legal database (BOE) from Claude, Cursor, or any MCP-compatible AI agent.

Zero config. No API keys. Always up to date.

Quick Start

Add to your MCP host configuration:

{
  "mcpServers": {
    "boe-legal": {
      "command": "npx",
      "args": ["-y", "@notset/boe-legal-mcp"]
    }
  }
}

Then ask your AI assistant:

  • "¿Qué dice el artículo 14 de la Constitución Española?"
  • "Busca leyes sobre protección de datos"
  • "¿Qué obligaciones fiscales tiene un autónomo?"

Tools

| Tool | Description | |---|---| | search_legislation | Search laws by title, full text, subject, rank, date, or status | | get_law | Get full metadata and legal analysis for a specific law | | get_article | Get the exact text of a specific article from any law | | get_law_index | Browse a law's structure (titles, chapters, articles) | | get_law_analysis | Get legal references: repeals, amendments, subjects | | get_auxiliary_tables | Get BOE reference codes (subjects, law types, departments) |

Common Law IDs

| Law | BOE ID | |---|---| | Constitución Española | BOE-A-1978-31229 | | Código Civil | BOE-A-1889-4763 | | Código Penal | BOE-A-1995-25444 | | Estatuto de los Trabajadores | BOE-A-2015-11430 | | LOPDGDD (Protección de datos) | BOE-A-2018-16673 | | Ley General Tributaria | BOE-A-2003-23186 | | Ley IRPF | BOE-A-2006-20764 | | Ley IVA | BOE-A-1992-28740 | | Ley Autónomos (LETA) | BOE-A-2007-13409 | | Ley Arrendamientos Urbanos | BOE-A-1994-26003 |

Examples

Search legislation

User: "Search for laws about protección de datos"
→ Tool: search_legislation({ query: "protección datos" })
→ Returns: LOPDGDD (BOE-A-2018-16673) and related regulations

Get article text

User: "What does Article 14 of the Constitution say?"
→ Tool: get_article({ boe_id: "BOE-A-1978-31229", article_id: "a14" })
→ Returns: "Los españoles son iguales ante la ley..."

Browse a law

User: "Show me the structure of the Workers' Statute"
→ Tool: get_law_index({ boe_id: "BOE-A-2015-11430" })
→ Returns: Full table of contents with article IDs

Data Source

All data comes directly from the official BOE Open Data API maintained by the Agencia Estatal Boletín Oficial del Estado (AEBOE).

  • ✅ Always up to date (live API)
  • ✅ Covers state and autonomous community legislation
  • ✅ Consolidated texts with full amendment history

Requirements

  • Node.js ≥ 18
  • Internet connection (queries the BOE API in real time)

Legal Notice

⚖️ Consolidated legal texts are informational and have no official legal validity. For decisions with legal implications, always consult a qualified legal professional and the official publication in the BOE.

License

MIT — NotSet