Contabilidad global, #2 en ERP (líder en UK/AU/NZ). Contactos, facturas, pagos, ítems, cuentas, balance general. Junto con QuickBooks cubre cerca del 80% de la contabilidad de pymes global.
Xero le da a tu agente 24 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier 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-xeroAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con 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>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 24 herramientas de abajo — probá create_contact primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de 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 herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
create_contactget_contactlist_contactscreate_invoiceget_invoicelist_invoicesemail_invoicecreate_paymentMCP es un protocolo — cualquier framework que lo hable puede montar este server.