Contabilidad en la nube para LatAm: facturación, gastos, inventario y compliance con la DIAN. Tu agente maneja la contabilidad multi-país desde una sola API.
Alegra le da a tu agente 20 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
create_invoice — Create an invoiceget_invoice — Get invoice details by IDlist_invoices — List invoices// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_invoice", { /* ... */ });$ npm install @codespar/mcp-alegraAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"alegra": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-alegra"
],
"env": {
"ALEGRA_EMAIL": "<your_alegra_email>",
"ALEGRA_API_TOKEN": "<your_alegra_api_token>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 20 herramientas de abajo — probá create_invoice primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
ALEGRA_EMAILAccount email for Alegra
ALEGRA_API_TOKENAPI token for Alegra
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_invoiceget_invoicelist_invoicesvoid_invoiceget_invoice_pdfsend_invoicecreate_contactupdate_contactMCP es un protocolo — cualquier framework que lo hable puede montar este server.