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

@integradte/mcp

v1.0.3

Published

MCP Server para consultar datos de facturación electrónica desde la API IntegraDTE

Readme

@integradte/mcp

MCP Server para consultar datos de facturación electrónica chilena desde la API IntegraDTE.

Permite a modelos de lenguaje (Claude, etc.) consultar documentos tributarios, folios, estadísticas y más mediante el protocolo MCP (Model Context Protocol).

Tools disponibles

| Tool | Descripción | |------|-------------| | get_user_info | Info del usuario autenticado (nombre, email, estado) | | get_certificate_info | Estado del certificado digital (vencimiento, titular) | | list_documents | Listar DTEs con filtros (tipo, estado, fechas, paginación) | | get_document | Detalle de un documento por ID | | get_document_stats | Estadísticas: totales emitidos, montos, por tipo DTE | | get_numeration_summary | Resumen de folios disponibles por tipo | | get_last_folio | Último folio usado para un tipo de DTE |

Instalación

npm install
npm run build

Variables de entorno

| Variable | Descripción | Default | |----------|-------------|---------| | API_BASE_URL | URL de la API IntegraDTE | http://localhost:5058 | | API_KEY | API Key de autenticación (requerida) | — |

Uso con Claude Desktop

Agregar a claude_desktop_config.json:

{
  "mcpServers": {
    "integradte": {
      "command": "npx",
      "args": ["-y", "@integradte/mcp"],
      "env": {
        "API_BASE_URL": "https://api.integradte.cl",
        "API_KEY": "tu_api_key"
      }
    }
  }
}

Uso con npx (una vez publicado)

{
  "mcpServers": {
    "integradte": {
      "command": "npx",
      "args": ["-y", "@integradte/mcp"],
      "env": {
        "API_BASE_URL": "https://api.integradte.cl",
        "API_KEY": "tu_api_key"
      }
    }
  }
}

Tipos de DTE soportados

| Código | Tipo | |--------|------| | 33 | Factura Electrónica | | 34 | Factura Exenta | | 39 | Boleta Electrónica | | 41 | Boleta Exenta | | 46 | Factura de Compra | | 52 | Guía de Despacho | | 56 | Nota de Débito | | 61 | Nota de Crédito |

Desarrollo

npm install
npm run dev    # Watch mode
npm run build  # Build
npm start      # Run

Publicación a npm con versiones automáticas

Este repo usa Changesets + GitHub Actions.

Configuración inicial

  1. Crear el secret NPM_TOKEN en GitHub (Settings > Secrets and variables > Actions).
  2. El token debe tener permisos para publicar en el scope @integradte.
  3. Si la organización exige 2FA para publish, usa un token con bypass 2fa.

Flujo de versiones

  1. Para cada cambio que quieras versionar, crea un changeset:
    pnpm changeset
  2. Haz commit del archivo en .changeset/*.md junto a tu cambio.
  3. Al hacer merge a main, el workflow Release crea/actualiza un PR de release con el nuevo versionado.
  4. Cuando ese PR se mergea, el mismo workflow publica automáticamente a npm.