X
Xero MCP Server
Details
- Command
-
npx -y @xeroapi/xero-mcp-server@latest - Docs
- https://github.com/XeroAPI/xero-mcp-server
Authentication
env XERO_CLIENT_ID, XERO_CLIENT_SECRET In the Xero Developer app manager, create a Custom Connection app to get a Client ID and Client Secret for a single Xero organisation. Xero documents custom connections at Custom connections. The MCP server README also points to this setup and notes you must grant the required API scopes for your use case.
env XERO_CLIENT_BEARER_TOKEN In the Xero Developer app manager, create an OAuth 2.0 app to get a Client ID and, for confidential apps, a Client Secret. Configure your redirect URI(s) there. For CLI PKCE usage, create a PKCE app and set the redirect URI to http://localhost:8742/callback. For user-authorized API access, follow the OAuth 2.0 authorization flow guide.