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

invoka-mcp

v1.0.0

Published

Servidor MCP de Invoka: deja que un asistente de IA consulte el SRI (RUC, cédula, razón social), revise comprobantes y emita facturas electrónicas de Ecuador por la API de Invoka

Readme

Servidor MCP de Invoka

Deja que un asistente de IA (Claude Desktop, Claude Code, Cursor, VS Code…) use la API de facturación electrónica del SRI de Ecuador de Invoka: consultar RUC, cédulas y razones sociales, revisar el estado, el XML y el PDF de tus comprobantes, ver tu saldo de créditos, configurar tu webhook y emitir facturas, notas de crédito y débito, guías de remisión, retenciones y liquidaciones de compra.

1. Tu API key

Entra a invoka.com.ec → Perfil y copia tu API key. Es la misma que usas en la cabecera X-API-KEY de la API.

2a. Opción remota (sin instalar nada)

URL del servidor: https://invoka.com.ec/mcp (transporte Streamable HTTP), con la cabecera Authorization: Bearer <tu API key> (también acepta X-API-KEY).

Claude Code

claude mcp add --transport http invoka https://invoka.com.ec/mcp --header "Authorization: Bearer TU_API_KEY"

Cursor / VS Code / Windsurf (configuración MCP):

{
  "mcpServers": {
    "invoka": {
      "url": "https://invoka.com.ec/mcp",
      "headers": { "Authorization": "Bearer TU_API_KEY" }
    }
  }
}

API de Anthropic (conector MCP): url: https://invoka.com.ec/mcp, authorization_token: TU_API_KEY.

Para permitir emitir en producción usa https://invoka.com.ec/mcp?produccion=1 (lee Seguridad abajo).

2b. Opción local (stdio)

Requiere Node.js 18 o superior.

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "invoka": {
      "command": "npx",
      "args": ["-y", "invoka-mcp"],
      "env": { "INVOKA_API_KEY": "TU_API_KEY" }
    }
  }
}

Claude Code

claude mcp add invoka --env INVOKA_API_KEY=TU_API_KEY -- npx -y invoka-mcp

Cursor (~/.cursor/mcp.json o .cursor/mcp.json del proyecto): el mismo bloque que Claude Desktop.

Variables

| Variable | Obligatoria | Para qué | |---|---|---| | INVOKA_API_KEY | sí | Tu API key de Invoka | | INVOKA_URL | no | Por defecto https://invoka.com.ec | | INVOKA_PRODUCCION | no | 1 para permitir emitir en ambiente 2 (producción) |

Herramientas

| Herramienta | Qué hace | Costo | |---|---|---| | consultar_ruc | Datos oficiales de un RUC en el SRI | 20 gratis al mes; luego billetera de consultas | | consultar_establecimientos_ruc | Establecimientos de un RUC | ídem | | consultar_cedula | Nombre oficial de una cédula (Registro Civil) | ídem | | buscar_razon_social | Busca contribuyentes por razón social o nombre comercial | ídem | | consultar_comprobante | Estado de un comprobante por su clave de acceso | gratis | | obtener_xml_comprobante | XML autorizado | gratis | | obtener_enlace_pdf_comprobante | Enlace temporal (24 h) al RIDE en PDF | gratis | | reprocesar_comprobante | Reencola un comprobante en estado temporal | gratis | | consultar_saldo_creditos / historial_creditos | Saldo y movimientos de créditos | gratis | | emitir_factura, emitir_nota_credito, emitir_nota_debito, emitir_guia_remision, emitir_retencion, emitir_liquidacion_compra | Emiten comprobantes electrónicos | pruebas: gratis · producción: 1 crédito | | ver_webhook, configurar_webhook, probar_webhook | Webhook de avisos firmados (ver_webhook muestra el secret enmascarado; solo configurar_webhook lo devuelve completo, y la URL tiene que ser pública) | gratis | | estado_servicio | Estado de Invoka y del SRI | gratis |

Invoka ID (verificación de identidad, en beta privada) no está expuesto en este servidor MCP.

Los esquemas de entrada salen del OpenAPI público (https://invoka.com.ec/docs/openapi.json), así que coinciden con la documentación de la API.

Seguridad

  • Las herramientas de emisión usan SIEMPRE el ambiente 1 (pruebas): gratis, ilimitado y sin validez tributaria, aunque el asistente pida otra cosa.
  • Para emitir en producción (ambiente 2) hay que decidirlo al configurar: INVOKA_PRODUCCION=1 en la opción local o ?produccion=1 en la URL remota. En producción cada comprobante consume créditos y es tributariamente real ante el SRI (no se borra: solo se anula). Aun así, el asistente usa el ambiente 1 salvo que se le pida el 2 expresamente.
  • Las consultas al SRI y al Registro Civil tienen 20 gratis al mes; después se descuentan de tu billetera de consultas (dinero real). Solo se cobra la consulta que devuelve datos.
  • Todo pasa por la API normal con tu API key: mismos límites (300 peticiones por minuto), validaciones y cobros que cualquier integración. Un secuencial repetido no crea un segundo comprobante ("Clave de Acceso ya existe").
  • La emisión es asíncrona: el asistente recibe la claveacceso y debe consultar el estado con consultar_comprobante.

Soporte: [email protected]