Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

xero-mcp

MCP.Pizza Chef: john-zhang-dev

The xero-mcp is a Model Context Protocol server that enables clients to securely interact with Xero accounting software. It facilitates OAuth 2.0 authentication and exposes Xero's financial data and operations in a structured, model-readable format. This server allows developers to integrate real-time accounting context into AI workflows, automating tasks like invoice management, financial reporting, and bookkeeping within the MCP ecosystem.

Use This MCP server To

Automate invoice creation and tracking in Xero Fetch real-time financial reports for analysis Sync client data between Xero and AI workflows Generate payment reminders based on Xero data Extract transaction histories for audit preparation Update contact details in Xero via natural language Trigger bookkeeping tasks from AI-driven commands

README

Xero MCP Server

smithery badge

This MCP server allows Clients to interact with Xero Accounting Software.

Get Started

  1. Make sure node and Claude Desktop are installed.

  2. Create an OAuth 2.0 app in Xero to get a CLIENT_ID and CLIENT_SECRET.

    • Create a free Xero user account (if you don't have one)
    • Login to Xero Developer center https://developer.xero.com/app/manage/
    • Click New app
    • Enter a name for your app
    • Select Web app
    • Provide a valid URL (can be anything valid eg. https://www.myapp.com)
    • Enter redirect URI: http://localhost:5000/callback
    • Tick to Accept the Terms & Conditions and click Create app
    • On the left-hand side of the screen select Configuration
    • Click Generate a secret
  3. Modify claude_desktop_config.json file

    {
      "mcpServers": {
        "xero-mcp": {
          "command": "npx",
          "args": ["-y", "xero-mcp@latest"],
          "env": {
            "XERO_CLIENT_ID": "YOUR_CLIENT_ID",
            "XERO_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
            "XERO_REDIRECT_URI": "http://localhost:5000/callback"
          }
        }
      }
    }
  4. Restart Claude Desktop

  5. When the Client decides to access a Xero tool for the first time, a Xero login page will pop up to ask your consent. Complete the auth flow and manually close the web page (as the Xero page will not auto close in this version)

    Privacy alert: after completing the Xero OAuth2 flow, your Xero data may go through the LLM that you use. If you are doing testing you should authorize to your Xero Demo Company.

Tools

  • authenticate

    Authenticate with Xero using OAuth2

  • create_bank_transactions

    Creates one or more spent or received money transaction

  • create_contacts

    Creates one or multiple contacts in a Xero organisation

  • get_balance_sheet

    Retrieves report for balancesheet

  • list_accounts

    Retrieves the full chart of accounts

  • list_bank_transactions

    Retrieves any spent or received money transactions

  • list_contacts

    Retrieves all contacts in a Xero organisation

  • list_invoices

    Retrieves sales invoices or purchase bills

  • list_journals

    Retrieves journals

  • list_organisations

    Retrieves Xero organisation details

  • list_payments

    Retrieves payments for invoices and credit notes

  • list_quotes

    Retrieves sales quotes

Examples

  • "Visualize my financial position over the last month"

  • "Track my spendings over last week"

  • "Add all transactions from the monthly statement into my revenue account (account code 201) as receive money"

License

MIT

xero-mcp FAQ

How do I authenticate the xero-mcp server with Xero?
You must create an OAuth 2.0 app in Xero Developer Center to obtain CLIENT_ID and CLIENT_SECRET, then configure the server with these credentials.
Can xero-mcp handle multiple Xero organizations?
Yes, it supports managing multiple organizations by authenticating each separately via OAuth tokens.
What prerequisites are needed to run xero-mcp?
You need Node.js installed and a compatible MCP client like Claude Desktop to interact with the server.
Is the xero-mcp server secure?
Yes, it uses OAuth 2.0 for secure authentication and scopes access to only authorized data.
Can I extend xero-mcp to support custom Xero API endpoints?
Yes, the server is designed to be extensible to expose additional Xero API functionality as needed.
Does xero-mcp support real-time data updates?
It provides up-to-date data on request but does not currently support push notifications or webhooks.
Which LLM providers can I use with xero-mcp?
xero-mcp works with any MCP-compatible LLM provider, including OpenAI, Claude, and Gemini.
How do I troubleshoot connection issues with xero-mcp?
Check OAuth credentials, network connectivity, and ensure the redirect URI matches your Xero app configuration.