Alegra

Finance and commerce

Alegra, cloud accounting for LATAM (Colombian-founded).

Your AI app calls the Alegra MCP server, which does the finance and commerce work and sends the result back to the chat.

About Alegra

Alegra is a community MCP server from codespar, filed in our directory under finance and commerce. Alegra, cloud accounting for LATAM (Colombian-founded).

Alegra runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-alegra@0.2.2 and talks to it over standard input and output. It needs ALEGRA_EMAIL and ALEGRA_API_TOKEN set before Alegra starts.

Alegra is listed in the official MCP registry as io.github.codespar/mcp-alegra, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-alegra
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-alegra

How to set up Alegra

  1. Install Node.js on the machine that runs your AI app, because Alegra starts with npx and downloads its package on first run.
  2. Create ALEGRA_EMAIL and ALEGRA_API_TOKEN for Alegra in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Alegra to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Alegra tools to confirm the connection.
  5. Run one read-only task with Alegra first, and keep your app asking before each tool call until the results look right.

Alegra compared with similar servers

  • Amazon by codespar has fewer GitHub stars than Alegra (278 against 278); both are community servers, and both run locally.
  • Airwallex by codespar has fewer GitHub stars than Alegra (278 against 278); both are community servers, and both run locally.
  • Andreani by codespar has fewer GitHub stars than Alegra (278 against 278); both are community servers, and both run locally.

Before you connect Alegra

  • Give Alegra its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Alegra tool call until you trust what it does with them.
  • Treat text that Alegra fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Alegra on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Alegra

How marketing and sales teams put Alegra to work, by company size. Pick the size closest to yours and start Alegra on one use case.

Small business

  • A small business can ask Alegra which products and customers drive margin, then plan promotions around them.
  • Owners can use Alegra to check refunds, failed payments and churn reasons without opening three dashboards.
  • Alegra runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Alegra to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Alegra to check spend against budget each week and move money to what's working.
  • Start Alegra on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Alegra read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Alegra to answer revenue questions by channel and region with figures finance signs off on.
  • Alegra is a community server, so have security review the code and pin a version before Alegra touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Alegra README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCP Alegra

MCP server for Alegra, cloud accounting platform for LATAM (Colombian-founded), supporting invoicing, contacts, inventory, and payments across CO, MX, AR, CL, and more.

Quick Start

# Set your credentials
export ALEGRA_EMAIL="your-email@example.com"
export ALEGRA_API_TOKEN="your-api-token"

# Run via stdio
npx tsx packages/colombia/alegra/src/index.ts

# Run via HTTP
npx tsx packages/colombia/alegra/src/index.ts --http

Environment Variables

Variable Required Description
ALEGRA_EMAIL Yes Account email address
ALEGRA_API_TOKEN Yes API token from Alegra settings
MCP_HTTP No Set to "true" to enable HTTP transport
MCP_PORT No HTTP port (default: 3000)

Tools (20)

Tool Purpose
create_invoice Create an invoice
get_invoice Get invoice details by ID
list_invoices List invoices
void_invoice Void/cancel an invoice
get_invoice_pdf Get invoice PDF download URL
send_invoice Email an invoice to one or more recipients
create_contact Create a contact (customer or supplier)
update_contact Update an existing contact
delete_contact Delete a contact
list_contacts List contacts
create_item Create a product or service item
update_item Update an existing item
list_items List products and services
list_payments List payments
get_payment Get payment by ID
create_payment Record a payment
void_payment Void/annul a payment
list_categories List item categories (chart of accounts)
list_bank_accounts List bank accounts
get_company Get company profile and settings

Auth

Uses Basic authentication with email and API token. Obtain your API token from the Alegra settings page under "API" section.

API Reference

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

Authentication

Set these environment variables before launching the server:

  • ALEGRA_EMAIL (required), Account email for Alegra
  • ALEGRA_API_TOKEN (required, secret), API token for Alegra

Issue credentials at the provider's developer portal: https://developer.alegra.com.

License

MIT

Questions about Alegra

What is the Alegra MCP server?

Alegra, cloud accounting for LATAM (Colombian-founded). Alegra is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Alegra MCP server?

Add Alegra to your AI app's MCP config with the command npx -y @codespar/mcp-alegra@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-alegra -- npx -y @codespar/mcp-alegra@0.2.2. To run Alegra this way you need Node.js installed.

Does Alegra need an API key?

Yes. Alegra expects ALEGRA_EMAIL and ALEGRA_API_TOKEN to be set. Create the key for Alegra in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Alegra an official MCP server?

No. Alegra is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Alegra access to company data.

What license is Alegra under?

Alegra is released under the MIT license, according to its GitHub repository. The license covers the code of Alegra; the service it connects to has its own terms.