
Mcp Xero
io.github.codespar由 GitHub 账号 codespar 发布v0.2.2更新于 Oct 24, 2026
MCP server for Xero — global cloud accounting: contacts, invoices, payments, items, reports
概览
本地 MCP 服务器,让助手连接 Xero 云端会计,管理联系人、发票、付款、商品和报表。
- 可以做什么
- 创建、读取、更新和归档联系人(客户与供应商),并列出组织、税率和会计科目表。创建、读取、更新和作废发票,并把已授权的发票通过邮件发送到联系人存档邮箱。记录和列出付款、贷项通知单、商品和银行交易。获取该租户的资产负债表报表。可用 Xero where 子句表达式筛选列表结果。
- 适用场景
- 适合需要让助手处理 Xero 会计数据的场景,例如为在巴西以外运营或有国际实体的企业起草发票、记录付款或获取资产负债表,无需离开对话。
- 运行要求
- 以 npm 包形式通过 stdio 在本地运行(需要 Node.js)。需要预先签发的 Xero OAuth2 访问令牌(XERO_ACCESS_TOKEN)以及租户或组织 ID(XERO_TENANT_ID)。OAuth 授权、刷新令牌轮换和租户选择需在上游处理;令牌过期会返回 401,需刷新后重试。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Xero,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@codespar/mcp-xero
MCP server for Xero — global cloud accounting for SMBs.
Xero is the #2 global SMB ERP and the leader in the UK, Australia, and New Zealand, with rapid expansion in the US. Paired with QuickBooks, the two platforms cover roughly 80% of global SMB accounting. For LatAm SaaS serving US/UK/AU/NZ customers or with international subsidiaries, Xero is the essential complement to our Brazil-native ERPs (Omie, Conta Azul, Bling, Tiny).
Tools (24)
Install
Environment
Authentication
Xero uses OAuth2. Every request includes:
This server assumes a pre-issued access token. OAuth consent, refresh-token rotation, and tenant selection happen upstream (in your OAuth proxy or secrets layer). When the token expires, Xero returns 401 and the tool surfaces the error verbatim — refresh and retry.
Run
Where clause
Xero's list endpoints accept a where query param for server-side filtering. Examples:
Positioning in the CodeSpar ERP catalog
- Brazil-native: Omie, Conta Azul, Bling, Tiny — NF-e, Simples Nacional, local tax.
- Global SMB: Xero + QuickBooks — US/UK/AU/NZ/global accounting.
Use Xero for companies headquartered or operating outside Brazil (or with international entities). Use the BR-native servers for the local market.
Docs
- Xero Accounting API: https://developer.xero.com/documentation/api/accounting
- Xero OAuth2 guide: https://developer.xero.com/documentation/guides/oauth2/overview
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.
License
MIT
来源:packages/erp/xero/README.md,提交 d0a519a
工具
0版本历史
1- v0.2.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分