
Xero MCP Server
by codespario.github.codespar/mcp-xerov0.2.2
MCP server for Xero — global cloud accounting: contacts, invoices, payments, items, reports
context tax
queued
security
queued
cold start
queued
freshness
Active13d ago
Install Xero MCP server
Install in Claude Code
claude mcp add xero-codespar -e XERO_ACCESS_TOKEN='<xero-access-token>' -e XERO_TENANT_ID='<xero-tenant-id>' -- npx -y @codespar/mcp-xeroInstall in Cursor
{
"mcpServers": {
"xero-codespar": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-xero"
],
"env": {
"XERO_ACCESS_TOKEN": "<xero-access-token>",
"XERO_TENANT_ID": "<xero-tenant-id>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"xero-codespar": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-xero"
],
"env": {
"XERO_ACCESS_TOKEN": "<xero-access-token>",
"XERO_TENANT_ID": "<xero-tenant-id>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"xero-codespar": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codespar/mcp-xero"
],
"env": {
"XERO_ACCESS_TOKEN": "<xero-access-token>",
"XERO_TENANT_ID": "<xero-tenant-id>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"xero-codespar": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-xero"
],
"env": {
"XERO_ACCESS_TOKEN": "<xero-access-token>",
"XERO_TENANT_ID": "<xero-tenant-id>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| XERO_ACCESS_TOKEN | yes | yes | Xero OAuth2 access token (Bearer). Obtain via Xero OAuth2 flow; rotate on expiry. |
| XERO_TENANT_ID | yes | — | Xero tenant/organization id sent in the Xero-tenant-id header on every request. |
Freshness
Active — last maintenance signal 13d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-27 · 13d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-06-22 · 4mo ago · official registry · v0.2.2
FAQ
›How do I install the Xero MCP server in Claude Code?
Run: claude mcp add xero-codespar -e XERO_ACCESS_TOKEN='<xero-access-token>' -e XERO_TENANT_ID='<xero-tenant-id>' -- npx -y @codespar/mcp-xero. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Xero require an API key?
Yes. It expects XERO_ACCESS_TOKEN, XERO_TENANT_ID, of which 1 is a secret.
›Can I use Xero as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Xero in the official MCP registry?
Yes, as io.github.codespar/mcp-xero.
Alternatives to Xero
Other finance & fintech MCP servers.