SPIJ MCP

An unofficial extension that lets Claude search laws and case law in the SPIJ (Peru's official legal information system, run by the Ministry of Justice). It runs on your computer and queries the SPIJ from your own connection.

Ask things like "find the latest amendments to the Consumer Protection Code" or "look for Supreme Court cassations on wrongful dismissal", and Claude finds, reads and cites the documents for you.

Download the guide for lawyers (PDF, in Spanish)

What it can do

buscar_normasSearch legislation: laws, decrees, resolutions, ordinances.
buscar_jurisprudenciaSearch cassations, case files, Constitutional Court rulings, plenary agreements.
obtener_documentoRead a document in full, in parts if it's long.
exportar_documentoSave it to Downloads/SPIJ as Word or the original PDF.
catalogo_spijOfficial catalogs (document types, sectors, subjects) for filtering.
diagnostico_spijCheck the connection and access mode.
comprobar_actualizacionTell you when a new version is out.

Install in Claude Desktop

  1. Download the .mcpb file from the latest release.
  2. Double-click it (or go to Settings → Extensions and drag it in).
  3. Click Install. The SPIJ username and password fields are optional.

Install in Claude Code

git clone https://github.com/dariodemh/spijmcp
cd spijmcp
npm install
claude mcp add spij -s user -- node "$PWD/src/server.js"

To use your subscriber account, add --env SPIJ_USUARIO=... --env SPIJ_CLAVE=....

Free access vs. subscriber

FreeYour account
Metadata and summaryYesYes
Text of lawsMostlyYes
Text of case lawNoYes

It never bypasses the subscription: restricted text is only accessed with your own account.

Limits

Code and issues on GitHub. MIT license. Not affiliated with MINJUS.