Alegra MCP Server
Un servidor MCP local (stdio) que expone una herramienta para consultar y administrar recursos de la API de contabilidad de Alegra.
Ejecuta operaciones CRUD (
get,post,put,delete) sobre recursos de Alegra.Abarca recursos como
invoices,contacts,items,credit-notes,purchase-orders,payments,bills,warehouses,bank-accounts,taxes,currencies,company,users,webhooks-subscriptionsy más de 35 endpoints.Permite obtener o modificar un registro específico pasando su
id.Acepta
queryParams: como parámetros URL enGET/DELETEy como cuerpo JSON enPOST/PUT.Se autentica con las variables de entorno
ALEGRA_USERyALEGRA_TOKEN.Requiere Node.js 20+ y escribe logs en
stderr, sin incluir cuerpos, parámetros ni credenciales.
Used for securely managing Alegra API credentials, loading them from a local .env file to authenticate API requests without exposing sensitive information.
Mentioned in the security context to ensure credentials in .env files are not accidentally committed to repositories through proper .gitignore configuration.
Required runtime environment for the MCP server, with version 18 or higher needed to run the Alegra API integration.
Used for package management, installation of dependencies, and running build and start scripts for the Alegra MCP server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Alegra MCP Server show me the last 5 invoices created this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Alegra MCP
Servidor local del Model Context Protocol (MCP) para consultar y administrar recursos de la API de Alegra.
Usa el SDK TypeScript v2 y el transporte estándar stdio. Solo acepta el protocolo moderno MCP 2026-07-28; los clientes legacy son rechazados.
La salida estándar queda reservada para el protocolo.
Requisitos
Node.js 20 o posterior.
Usuario y token de API de Alegra.
Related MCP server: MCP-Odoo
Configuración en un cliente MCP
Configura las credenciales como variables de entorno del proceso. Por ejemplo, en VS Code:
{
"servers": {
"Alegra": {
"command": "npx",
"args": ["-y", "@juancsanchez/alegra-mcp"],
"env": {
"ALEGRA_USER": "su-correo@dominio.com",
"ALEGRA_TOKEN": "su_token_de_api"
}
}
}
}Consulta la documentación del cliente MCP para conocer su formato exacto de configuración. No guardes credenciales en el repositorio ni compartas el archivo de configuración.
Herramientas
alegra_read: consulta colecciones y registros. Marcada como solo lectura.alegra_write: crea o actualiza registros conPOST,PUToPATCH.alegra_delete: elimina un registro por ID y se anuncia como operación destructiva.AlegraAPI: herramienta de propósito general para ejecutar operaciones CRUD en recursos de Alegra.
Los recursos admitidos incluyen facturas, contactos, ítems, notas crédito, órdenes de compra, pagos, bodegas, cuentas bancarias, impuestos y otros recursos disponibles en la API de Alegra.
Para GET y DELETE, queryParams se convierte en parámetros URL. Para POST, PUT y PATCH, queryParams se envía como cuerpo JSON. Los logs se escriben en stderr y no incluyen cuerpos, parámetros, respuestas ni credenciales.
Desarrollo
npm install
npm test
npm startnpm run build compila el servidor en build/. Las pruebas ejercitan la construcción de URLs, autenticación, cuerpos JSON, errores HTTP y la aceptación del protocolo moderno junto con el rechazo de clientes legacy, sin conectarse a una cuenta real de Alegra.
Available Tools
1 toolAlegraAPIC
Una herramienta para interactuar con la API de contabilidad de Alegra. Permite realizar operaciones CRUD en una amplia gama de recursos como Facturas, Contactos, Items, Notas de Crédito, Órdenes de Compra y muchos más.
Inputs: endpoint (required), id, method, queryParams.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool clearly handles all operations for the Alegra accounting API, so agents cannot misselect between multiple options.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'AlegraAPI' follows a clear and descriptive pattern, and there are no other tools to compare it against for inconsistency.
The server has only one tool, which is too few for the stated purpose of handling CRUD operations on a wide range of resources like invoices, contacts, items, credit notes, and purchase orders. A single tool for such a broad domain forces agents to handle complex parameter parsing and lacks the granularity needed for effective tool use.
While the single tool claims to cover all CRUD operations for many resources, this monolithic approach creates significant gaps in the tool surface. Agents will struggle with dead ends due to the lack of specific tools for distinct operations (e.g., separate create_invoice, get_contact tools), making the surface incomplete for reliable agent workflows.
Maintenance
Related MCP Connectors
Alegra MCP server for ChatGPT, Claude and any AI agent: create invoice, email invoice, record payment, add contact and list unpaid invoices in your own Alegra account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Alegra yourself; Cotlet does not store your password and you need no Alegra API key. About the official Alegra API: Yes, Alegra has a REST API for invoices, contacts, payments and items (checked 14 Oct 2026). You call it with your account email and an API token, and Alegra Help says integrations need the Plus plan. Setup and FAQ: https://cotlet.dev/integrations/alegra-api-mcp-server
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with Odoo ERP systems, providing comprehensive tools for searching, creating, updating, and managing Odoo records through a standardized interface.159 PyPI23GPL 3.0
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that bridges Odoo ERP systems with AI agents, enabling them to access and manipulate partner information, accounting data, invoices, and perform financial reconciliation through a standardized interface.MIT
- AlicenseBqualityBmaintenanceA Model Context Protocol server for KikoBooks enterprise bookkeeping software that enables AI assistants to perform accounting operations on accounts, customers, invoices, bills, and more through natural language.11664 npmMIT
- AlicenseBqualityBmaintenanceA Model Context Protocol (MCP) server for the Holded Invoice API. This server allows AI assistants like Claude to interact with Holded's invoicing, contacts, products, and more.119103 npm20MIT