Get the FREE Ultimate OpenClaw Setup Guide →

xero

MCP server for Xero - Cloud-based accounting software integration

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio lokimcpuniverse-xero-mcp-server uvx xero-mcp-server \
  --env ENV_VAR_PLACEHOLDER="Describe required environment variable if applicable"

How to use

This MCP server provides a Python-based integration for Xero within the Model Context Protocol (MCP) framework. It allows GenAI applications to interact with Xero APIs through a standardized MCP interface, enabling operations such as reading accounting data or performing actions via Xero. The server exposes a programmable endpoint that can be consumed by MCP clients, and it includes authentication methods, rate limiting, and retry logic to support reliable enterprise use. To start using it, install the server package, run the MCP server, and connect your MCP client to the configured endpoint. The server is designed to be asynchronous, improving throughput when handling multiple requests from GenAI workflows. The primary entry point demonstrated in the repository is a XeroMCPServer class, which can be instantiated and started from Python code or integrated into your MCP orchestration layer.

How to install

Prerequisites:

  • Python 3.8+ installed on your system
  • pip available in your PATH

Install from PyPI:

pip install xero-mcp-server

Or install from source:

git clone https://github.com/asklokesh/xero-mcp-server.git
cd xero-mcp-server
pip install -e .

Verify installation by running a quick check or starting the server in your environment and ensuring the MCP interface becomes available to clients.

Additional notes

Tips and caveats:

  • Ensure your Xero API credentials are provided via environment variables or a secure config file as required by the XeroMCPServer implementation.
  • If you encounter authentication errors, verify that OAuth tokens or API keys have the correct scopes and have not expired.
  • The server is designed with async support and rate-limiting; tune the concurrency and retry behavior based on your workload.
  • For local development, a .env file can help manage environment variables; consider using a secrets manager in production.
  • If running from source, keep the repository up-to-date to benefit from the latest MCP compatibility improvements.

Related MCP Servers

Sponsor this space

Reach thousands of developers