Skip to content
← All MCP servers

Is the Xero MCP server safe? What it can reach

What the Xero MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Xero maintains an official MCP server in the XeroAPI GitHub organization. It runs locally with npx and signs in through a Xero custom connection or a bearer token you supply. It can create invoices, journals and payments, and it can approve and delete payroll timesheets. Cut the XERO_SCOPES list and try it on a Demo Company first.

Who maintains it

ImplementationKindStatus
xero-mcp-server (XeroAPI)Officialactive

It runs as a local process on your machine.

How it signs in

Either a Xero custom connection (client ID and secret for one organisation) or a bearer token from an OAuth flow you run. The server acts with the scopes granted to that connection or token.

Scope or permissionAccess
accounting.invoiceswrite
accounting.invoices.readread
accounting.paymentswrite
accounting.payments.readread
accounting.banktransactionswrite
accounting.banktransactions.readread
accounting.manualjournalswrite
accounting.manualjournals.readread
accounting.reports.aged.readread
accounting.reports.balancesheet.readread
accounting.reports.profitandloss.readread
accounting.reports.trialbalance.readread
accounting.contactswrite
accounting.settingswrite
payroll.settingswrite
payroll.employeeswrite
payroll.timesheetswrite

What its tools can do

KindTools
Readlist-accounts, list-contacts, list-credit-notes, list-invoices, list-items, list-manual-journals, list-organisation-details, list-profit-and-loss, list-quotes, list-tax-rates, list-payments, list-trial-balance, list-bank-transactions, list-payroll-employees, list-report-balance-sheet, list-payroll-employee-leave, list-payroll-employee-leave-balances, list-payroll-employee-leave-types, list-payroll-leave-periods, list-payroll-leave-types, list-timesheets, list-aged-receivables-by-contact, list-aged-payables-by-contact, list-contact-groups, list-tracking-categories, get-payroll-timesheet
Writecreate-bank-transaction, create-contact, create-credit-note, create-invoice, create-item, create-manual-journal, create-quote, create-payroll-timesheet, create-tracking-category, create-tracking-option, update-bank-transaction, update-contact, update-invoice, update-item, update-manual-journal, update-quote, update-credit-note, update-tracking-category, update-tracking-options, update-payroll-timesheet-line, revert-payroll-timesheet, add-payroll-timesheet-line
Can’t be undonecreate-payment, approve-payroll-timesheet, delete-payroll-timesheet

Listed scopes are those the README says to request for a bearer token. The README says update-invoice, update-quote and update-credit-note change drafts only. Payroll tools work only for NZ or UK organisations. create-payment is listed as destructive because it records money paid against an invoice.

Built-in limits

OptionWhat it does
XERO_SCOPESA space-separated list that replaces the default scopes. Request only the .read scopes for a read-only setup.
Custom connectionA custom connection is set up for one specific organisation, which keeps the server from reaching others.
Demo CompanyThe README recommends testing against Xero’s Demo Company, which you can reset.

The risks

  • create-payment, create-bank-transaction and create-manual-journal change your books, and an injected instruction could add entries that distort reports.
  • Invoice, contact and bank transaction text can come from outside parties, so a crafted invoice name can carry instructions to the agent.
  • approve-payroll-timesheet and delete-payroll-timesheet change pay records for real employees.
  • Reports, contacts and payroll employee data go to your model provider when the agent reads them.
  • A bearer token carries every scope you requested when you got it, so ask only for the ones the task needs.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env XERO_CLIENT_ID=... --env XERO_CLIENT_SECRET=... --env XERO_CLIENT_BEARER_TOKEN=... --env XERO_SCOPES=... xero -- npx -y @xeroapi/xero-mcp-server@latest

Claude Code names MCP tools mcp__xero__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__xero__delete-payroll-timesheet"
    ],
    "ask": [
      "mcp__xero__create-bank-transaction",
      "mcp__xero__create-contact",
      "mcp__xero__create-credit-note",
      "mcp__xero__create-invoice",
      "mcp__xero__create-item",
      "mcp__xero__create-manual-journal",
      "mcp__xero__create-quote",
      "mcp__xero__create-payroll-timesheet",
      "mcp__xero__create-tracking-category",
      "mcp__xero__create-tracking-option",
      "mcp__xero__update-bank-transaction",
      "mcp__xero__update-contact",
      "mcp__xero__update-invoice",
      "mcp__xero__update-item",
      "mcp__xero__update-manual-journal",
      "mcp__xero__update-quote",
      "mcp__xero__update-credit-note",
      "mcp__xero__update-tracking-category",
      "mcp__xero__update-tracking-options",
      "mcp__xero__update-payroll-timesheet-line",
      "mcp__xero__revert-payroll-timesheet",
      "mcp__xero__add-payroll-timesheet-line",
      "mcp__xero__create-payment",
      "mcp__xero__approve-payroll-timesheet"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.xero]
command = "npx"
args = ["-y", "@xeroapi/xero-mcp-server@latest"]
env_vars = ["XERO_CLIENT_ID", "XERO_CLIENT_SECRET", "XERO_CLIENT_BEARER_TOKEN", "XERO_SCOPES"]
disabled_tools = ["delete-payroll-timesheet"]

Checklist

  • Start on a Demo Company before you connect real books.
  • Set XERO_SCOPES to the .read scopes for reporting work.
  • Use a custom connection tied to one organisation.
  • Review create-payment and journal calls before they run.

Checked against the vendor documentation on November 25, 2026. xero-mcp-server README (XeroAPI) · XeroAPI/xero-mcp-server repository metadata (GitHub API)

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing