mcp-sri-ecuador
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SRI_AMBIENTE | No | Environment to use: `pruebas` or `produccion`. Defaults to `pruebas`. | pruebas |
| SRI_P12_PATH | No | Path to your electronic signature `.p12` / `.pfx` file (BCE, Security Data, Uanataca…). Without a certificate everything works except signing and issuing. | |
| SRI_P12_PASSWORD | No | Password of the `.p12` certificate. Read from environment variables and never passed through the model. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sri_generar_clave_accesoB | Genera la clave de acceso de 49 dígitos (con dígito verificador módulo 11) de un comprobante electrónico del SRI. |
| sri_validar_clave_accesoB | Verifica el dígito verificador de una clave de acceso y la desglosa en sus campos. |
| sri_validar_identificacionA | Valida una cédula (10 dígitos) o RUC (13 dígitos) ecuatoriano con los algoritmos módulo 10/11 e indica el tipo de contribuyente. |
| sri_generar_factura_xmlB | Construye el XML de una factura electrónica (versión 1.1.0) con totales e IVA calculados, sin firmar ni enviar. Útil para revisar antes de emitir. |
| sri_consultar_autorizacionB | Consulta en el SRI el estado de autorización de un comprobante por su clave de acceso. |
| sri_info_certificadoA | Muestra el titular, emisor y vigencia del certificado .p12 configurado (SRI_P12_PATH). No expone la clave. |
| sri_firmar_comprobanteA | Firma con XAdES-BES un XML de comprobante (raíz con id="comprobante") usando el certificado configurado. Devuelve el XML firmado; no lo envía. |
| sri_emitir_facturaA | Flujo completo: genera el XML de la factura, lo firma, lo envía al SRI y espera la autorización. En 'produccion' emite un comprobante tributario real: confirma los datos con el usuario antes de llamar. |
| sri_enviar_comprobanteA | Envía un XML YA FIRMADO (XAdES-BES) al web service de recepción del SRI y devuelve el estado (RECIBIDA/DEVUELTA) y mensajes. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Most tools have clearly distinct purposes (generate vs validate key, sign vs send, query authorization, inspect certificate). The main overlap is sri_emitir_factura, which composites generar_factura_xml + firmar_comprobante + enviar_comprobante, so an agent must decide between full-flow and step-by-step tools.
All tools use a consistent sri_ prefix and snake_case naming, mostly following a verb_noun Spanish pattern. sri_info_certificado is a minor deviation because 'info' is a noun rather than a verb, but the set remains highly readable.
Nine tools is well-scoped for an SRI electronic invoicing server. Each tool covers a meaningful operation or lifecycle step, and the set avoids unnecessary duplication.
The core factura electrónica lifecycle is covered: access-key generation/validation, ID validation, XML construction, signing, sending, authorization query, certificate inspection, and an all-in-one emit flow. Missing support for other comprobante types (notas de crédito/débito, retenciones) and cancellation/annulment keeps it from full coverage.