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

keycae-mcp

v1.2.0

Published

MCP Server for KeyCAE - Argentine electronic invoicing (factura electrónica) with ARCA/AFIP. 12 tools for AI agents.

Readme

keycae-mcp 🔌

npm version npm downloads License: MIT

MCP Server for KeyCAE.arArgentine electronic invoicing (facturación electrónica) with ARCA/AFIP.

Let AI agents emit invoices, manage credentials, handle delegations, and more — directly from Claude, Cursor, Windsurf, or any MCP-compatible client.

⚡ Quick Start

npx keycae-mcp

That's it. Your AI agent now has 15 tools for Argentine invoicing.

☁️ Remote MCP Server (no installation required)

KeyCAE also exposes a Streamable HTTP MCP server — no npx, no local setup.

Endpoint: https://keycae.ar/v1/mcp

{
  "mcpServers": {
    "keycae-remote": {
      "url": "https://keycae.ar/v1/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_..."
      }
    }
  }
}

⚠️ Requisito: Delegación en ARCA

ANTES de facturar, debés delegar la facturación electrónica al representante de KeyCAE en ARCA:

  1. Ingresá a ARCA Clave Fiscal
  2. Buscá el servicio "Facturación Electrónica" (ws://wsfe)
  3. Delegá al CUIT representante: 20254459306 (Amilcar Waldemar Serra)
  4. Aceptá la relación de representación

Sin esta delegación, no podés emitir facturas. El MCP server te permite verificar el estado con check_delegation y solicitarla con request_delegation.

🔧 Configuration

The MCP server requires a KEYCAE_API_KEY to run. You can configure it with:

  • Sandbox Mode (No registration needed): Use the public sandbox key sk_test_public_sandbox_cuit_20999999999. Note that in Sandbox mode you must emit using CUIT 20999999999.
  • Production Mode: Use your live API key sk_live_... generated when registering on keycae.ar.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "keycae": {
      "command": "npx",
      "args": ["-y", "keycae-mcp"],
      "env": {
        "KEYCAE_API_KEY": "sk_test_public_sandbox_cuit_20999999999"
      }
    }
  }
}

Cursor / Windsurf

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "keycae": {
      "command": "npx",
      "args": ["-y", "keycae-mcp"],
      "env": {
        "KEYCAE_API_KEY": "sk_test_public_sandbox_cuit_20999999999"
      }
    }
  }
}

🛠️ Available Tools (13)

| Tool | Description | |------|-------------| | emit_invoice | Emitir factura (24 tipos: A/B/C/M/E + 5 NC + 5 ND + 9 FCE MiPyMEs). Soporta precios netos (iva_incluido), tributos, moneda extranjera y datos del emisor por comprobante (emisor_razon_social, emisor_ingresos_brutos, etc.) | | get_invoice | Consultar factura por ID | | list_invoices | Listar facturas recientes | | get_sales_report | Reporte mensual de ventas para el contador (por tipo y alícuota; NC restan, ND suman) | | list_credentials | Listar certificados digitales | | create_credential | Generar RSA keypair + CSR para ARCA | | check_delegation | Verificar delegación ARCA | | request_delegation | Solicitar delegación ARCA | | lookup_taxpayer | Buscar contribuyente por CUIT | | check_emission_capability | Verificar qué tipos de factura puede emitir un CUIT | | get_condiciones_iva | Tabla de 15 condiciones IVA del receptor (códigos oficiales ARCA) | | get_billing_status | Estado del plan y consumo | | list_puntos_de_venta | Listar puntos de venta habilitados | | keycae_health | Health check de la API |

📖 Resources

The server also exposes a keycae://docs resource with inline documentation covering invoice types, common workflows, and ARCA/AFIP notes.

🔄 Workflow Típico

1. check_delegation  → Verificar que el CUIT esté delegado
2. list_credentials  → Verificar que el certificado esté activo
3. check_emission_capability → Saber qué tipos de factura puede emitir
4. emit_invoice      → Emitir la factura
5. get_invoice       → Consultar detalles

📋 Tipos de Comprobante

| Tipo | Descripción | Quién emite | |------|-------------|-------------| | A | IVA discriminado | Responsable Inscripto → RI | | B | IVA incluido | RI → Consumidor Final | | C | Exento (sin IVA) | Monotributo / Exento | | M | Monotributo | Monotributista | | E | Exportación | Exportadores |

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | KEYCAE_API_KEY | ✅ | — | Your KeyCAE API key | | KEYCAE_API_URL | ❌ | https://keycae.ar | API base URL |

Licencia

MIT