@integradte/mcp
MCP server for querying Chilean electronic invoicing data via the IntegraDTE API. Enables language models to retrieve tax documents, folios, statistics, and more.
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
- Crear el secret
NPM_TOKENen GitHub (Settings > Secrets and variables > Actions). - El token debe tener permisos para publicar en el scope
@integradte. - Si la organización exige 2FA para publish, usa un token con
bypass 2fa.
Flujo de versiones
- Para cada cambio que quieras versionar, crea un changeset:
pnpm changeset - Haz commit del archivo en
.changeset/*.mdjunto a tu cambio. - Al hacer merge a
main, el workflowReleasecrea/actualiza un PR de release con el nuevo versionado. - Cuando ese PR se mergea, el mismo workflow publica automáticamente a npm.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.