Contabilidade global, #2 em ERP (líder em UK/AU/NZ). Contatos, faturas, pagamentos, itens, contas, balanço patrimonial. Junto com o QuickBooks cobre cerca de 80% da contabilidade de PMEs global.
O Xero dá ao seu agente 24 tools que ele chama direto — escolha as que precisar, no Claude, Cursor ou qualquer cliente MCP.
create_contact — Create a Xero contact (customer or supplier — Xero uses one unified Contact object with IsCustomer/IsSupplier flags inferred from transactions).get_contact — Retrieve a single Xero contact by ContactID (UUID).list_contacts — List Xero contacts. Supports Xero's where clause for server-side filtering (e.g. 'Name=="ACME Ltd"', 'IsCustomer==true').// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_contact", { /* ... */ });$ npm install @codespar/mcp-xeroAdicione esta entrada ao seu claude_desktop_config.json (ou a config de qualquer cliente compatível com MCP).
{
"mcpServers": {
"xero": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-xero"
],
"env": {
"XERO_ACCESS_TOKEN": "<your_xero_access_token>",
"XERO_TENANT_ID": "<your_xero_tenant_id>"
}
}
}
}Depois de reiniciar, seu agente pode chamar qualquer uma das 24 ferramentas abaixo — teste create_contact primeiro.
Necessárias pra autenticar o server. Armazenadas criptografadas ao usar a hospedagem gerenciada da CodeSpar.
XERO_ACCESS_TOKENXero OAuth2 access token (Bearer). Obtain via Xero OAuth2 flow; rotate on expiry.
XERO_TENANT_IDXero tenant/organization id sent in the Xero-tenant-id header on every request.
Cada ferramenta é independente — seu agente carrega só o que precisa pra reduzir contexto e tempo de resposta.
create_contactget_contactlist_contactscreate_invoiceget_invoicelist_invoicesemail_invoicecreate_paymentMCP é um protocolo — qualquer framework que o fale pode montar este server.