Open Claude, click your profile in the bottom left corner, then go to Settings.

In Developer tab, you will see the Edit Config button below Local MCP Servers.
Click Edit Config

The claude_desktop_config.json file will be automatically selected.
Right-click the claude_desktop_config.json file and open it with any text editor. This will depend on on if you're using Windows or MacOS, and what text editor you use.

Go back to Developer.Xero's app's interface
Click Configuration, and you will see the "Generate a secret" button below Client ID.
Click Generate a secret.

The Client id and Client secret are now ready, keep this window so we can later return here to copy paste them.

Copy the following command
1{2 "mcpServers": {3 "xero": {4 "command": "npx",5 "args": ["-y", "@xeroapi/xero-mcp-server@latest"],6 "env": {7 "XERO_CLIENT_ID": "your_client_id_here",8 "XERO_CLIENT_SECRET": "your_client_secret_here"9 }10 }11 }12}Next, replace the client ID and client secret from the Developer.Xero, eg

Save the file once you are done.

Clicking on File > Quit (or Exit)
Launch Claude Desktop again
Once the file is saved, restart Claude and test the prompt.
"List my Xero contacts, please".
If Claude lists the contacts, then the setup is finished.
