Xero

v0.1.4
io.github.mindstone/mcp-server-xero Checked 1 hour ago Published 7 days ago

Xero MCP server for invoices, contacts, payments, quotes, and financial reports.

Values you need

VariableWhat it is
XERO_CLIENT_IDrequired secret Client ID of your Xero Web app (Sign in with Xero) or Custom Connection.
XERO_CLIENT_SECRETrequired secret Client secret of your Xero Web app (Sign in with Xero) or Custom Connection.
XERO_REFRESH_TOKENoptional secret Optional refresh token from Sign in with Xero, for a Web app. Rebel saves it when you click Connect. With it, the client ID and secret are used as a Web app's, not a Custom Connection's.
XERO_CLIENT_BEARER_TOKENoptional secret Optional externally-managed Xero bearer token. When set, it takes precedence over the refresh token and the Custom Connection client credentials.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-server-xero -e 'XERO_CLIENT_ID=<XERO_CLIENT_ID>' -e 'XERO_CLIENT_SECRET=<XERO_CLIENT_SECRET>' -- npx -y @mindstone/mcp-server-xero@0.1.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-xero": {
      "args": [
        "-y",
        "@mindstone/mcp-server-xero@0.1.4"
      ],
      "command": "npx",
      "env": {
        "XERO_CLIENT_ID": "<XERO_CLIENT_ID>",
        "XERO_CLIENT_SECRET": "<XERO_CLIENT_SECRET>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server-xero": {
      "args": [
        "-y",
        "@mindstone/mcp-server-xero@0.1.4"
      ],
      "command": "npx",
      "env": {
        "XERO_CLIENT_ID": "<XERO_CLIENT_ID>",
        "XERO_CLIENT_SECRET": "<XERO_CLIENT_SECRET>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "XERO_CLIENT_ID",
      "id": "xero-client-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "XERO_CLIENT_SECRET",
      "id": "xero-client-secret",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-server-xero": {
      "args": [
        "-y",
        "@mindstone/mcp-server-xero@0.1.4"
      ],
      "command": "npx",
      "env": {
        "XERO_CLIENT_ID": "${input:xero-client-id}",
        "XERO_CLIENT_SECRET": "${input:xero-client-secret}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server-xero]
command = "npx"
args = ["-y", "@mindstone/mcp-server-xero@0.1.4"]
env = { "XERO_CLIENT_ID" = "<XERO_CLIENT_ID>", "XERO_CLIENT_SECRET" = "<XERO_CLIENT_SECRET>" }

For AI agents

  1. Ask the user for: XERO_CLIENT_ID, XERO_CLIENT_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: xero_sign_in, delete-timesheet, get-timesheet, get-invoice-attachment-content, create-contact, create-credit-note, create-manual-journal, create-invoice, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json