Skip to main content
Glama
Alegra MCP Server

Alegra MCP Server

by Dattics

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 con POST, PUT o PATCH.

  • 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 start

npm 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 tool
AlegraAPIC

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

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness2/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    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

      https://cotlet.dev/mcp/v1/alegra
    • 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.

      https://mcp.mercadopago.com/mcp
    • A Model Context Protocol server for Wix AI tools

      https://mcp.wix.com/mcp
    • 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

      https://mcp.apideck.dev/mcp

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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 PyPI
      23
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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
    • A
      license
      B
      quality
      B
      maintenance
      A 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.
      116
      64 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      A 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.
      119
      103 npm
      20
      MIT