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

infoleg-mcp

v1.0.0

Published

MCP Server Oficial para buscar y extraer legislación argentina desde InfoLEG y Argentina.gob.ar (leyes, decretos, resoluciones, textos consolidados y Boletín Oficial).

Readme

Argentina InfoLEG - MCP Server

Servidor MCP local para consultar normativa nacional argentina desde InfoLEG y el portal de normativa de Argentina.gob.ar.

Este conector expone busqueda, extraccion de texto consolidado/original y alcance de fuente para agentes compatibles con Model Context Protocol usando transporte stdio.

Tools principales

  • buscar_normativa: busca leyes, decretos, resoluciones y actos nacionales por criterio, tipo, numero y anio.
  • buscar_normativa_avanzada: usa filtros del buscador oficial: jurisdiccion, provincia, dependencia, fechas y texto libre.
  • buscar_norma_por_tipo_numero_anio: resuelve pedidos como Ley 27430/2017.
  • buscar_normas_por_dependencia: lista normas de un organismo emisor.
  • obtener_texto_norma: obtiene el texto actualizado u original de una norma por idNorma y lo devuelve como Markdown limpio.
  • obtener_metadatos_norma: trae ficha resumen oficial, fechas, dependencia y enlaces.
  • obtener_urls_norma: construye visor, texto original y texto actualizado.
  • extraer_links_norma: extrae anexos/enlaces normativos desde una ficha.
  • comparar_texto_original_actualizado: obtiene ambas variantes y muestra diferencias mecanicas preliminares.
  • consultar_boletin_por_numero: obtiene sumario oficial por numero de boletin.
  • consultar_boletin_por_fecha: obtiene sumario oficial por fecha.
  • buscar_en_sumario_boletin: filtra dentro de un sumario por tema u organismo.
  • alcance_fuente: informa cobertura, limitaciones tecnicas y disclaimer legal.

Prompts MCP

  • buscar_ley_decreto
  • auditar_norma_completa
  • comparar_original_actualizada

Instalacion local

npm install
npm run build
npm start

Configuracion en clientes MCP

Claude Desktop / Cursor / Windsurf

{
  "mcpServers": {
    "infoleg-mcp": {
      "command": "node",
      "args": ["D:/MCP/Legales/infoleg-mcp/Argentina-InfoLeg-MCP/build/index.js"],
      "env": {
        "NODE_TLS_REJECT_UNAUTHORIZED": "0"
      }
    }
  }
}

Si luego se publica en npm, el comando puede reemplazarse por:

{
  "mcpServers": {
    "infoleg-mcp": {
      "command": "npx",
      "args": ["-y", "infoleg-mcp"],
      "env": {
        "NODE_TLS_REJECT_UNAUTHORIZED": "0"
      }
    }
  }
}

Validacion

npm run build
node test_infoleg_parser.mjs

Notas tecnicas

InfoLEG publica textos estaticos en carpetas por rangos de 50.000 IDs. El conector calcula ese rango de forma automatica y construye URLs como:

https://servicios.infoleg.gob.ar/infolegInternet/anexos/250000-299999/296831/texact.htm

Cuando la red bloquea scraping directo, obtener_texto_norma acepta textoHtmlManual para pegar HTML copiado desde el navegador y procesarlo localmente.

Disclaimer

Este MCP no reemplaza asesoramiento juridico profesional. Devuelve informacion desde fuentes publicas oficiales y debe verificarse contra el portal oficial antes de uso probatorio o presentaciones formales.