Mcp Alegra

io.github.codespar由 GitHub 账号 codespar 发布v0.2.2更新于 Oct 24, 2026

Alegra — cloud accounting for LATAM (Colombian-founded)

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向拉美云会计平台 Alegra 的本地 MCP 服务器,让助手管理发票、联系人、商品和付款。

可以做什么
  • 创建、列出、查询、作废发票,发送发票邮件并获取发票 PDF 下载链接
  • 创建、更新、删除和列出联系人(客户或供应商)
  • 创建、更新和列出商品与服务项目
  • 登记、列出、查询和作废付款
  • 列出商品分类与银行账户,读取公司资料与设置
适用场景
适用于在哥伦比亚、墨西哥、阿根廷、智利等市场使用 Alegra 记账的场景,希望助手代为起草发票、查询联系人和付款记录或查看公司设置,而无需切换到网页端。
运行要求
以本地进程方式通过 npx 运行(需要 Node.js)。需要 Alegra 账户,并设置两个环境变量:ALEGRA_EMAIL 和密钥 ALEGRA_API_TOKEN,后者可在 Alegra 设置的 API 部分获取。可选设置 MCP_HTTP 和 MCP_PORT 以启用 HTTP 传输。需要能访问 Alegra API 的网络。
安装前请注意
服务器持有可访问会计数据的 Alegra API 令牌。多个工具会写入或更改数据:创建、作废和发送发票,创建、更新和删除联系人,创建和更新商品,以及登记或作废付款。发送发票会把邮件发给外部收件人。允许助手执行写操作前请先确认。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Alegra,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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

bash
# Set your credentialsexport ALEGRA_EMAIL="[email protected]"export ALEGRA_API_TOKEN="your-api-token"
# Run via stdionpx tsx packages/colombia/alegra/src/index.ts
# Run via HTTPnpx tsx packages/colombia/alegra/src/index.ts --http

Environment Variables

VariableRequiredDescription
ALEGRA_EMAILYesAccount email address
ALEGRA_API_TOKENYesAPI token from Alegra settings
MCP_HTTPNoSet to "true" to enable HTTP transport
MCP_PORTNoHTTP port (default: 3000)

Tools (20)

ToolPurpose
create_invoiceCreate an invoice
get_invoiceGet invoice details by ID
list_invoicesList invoices
void_invoiceVoid/cancel an invoice
get_invoice_pdfGet invoice PDF download URL
send_invoiceEmail an invoice to one or more recipients
create_contactCreate a contact (customer or supplier)
update_contactUpdate an existing contact
delete_contactDelete a contact
list_contactsList contacts
create_itemCreate a product or service item
update_itemUpdate an existing item
list_itemsList products and services
list_paymentsList payments
get_paymentGet payment by ID
create_paymentRecord a payment
void_paymentVoid/annul a payment
list_categoriesList item categories (chart of accounts)
list_bank_accountsList bank accounts
get_companyGet 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

来源:packages/colombia/alegra/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分