# Xero

> Xero is an open-source MCP server for finance and payments. MCP server connecting AI clients to the Xero accounting API over stdio. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/asklokesh/xero-mcp-server
- **MCP Registry name:** io.github.asklokesh/xero-mcp-server
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-18

## About

The README describes this as a Model Context Protocol server that lets GenAI applications work with Xero, a cloud accounting platform. It is installed from PyPI as a Python package and launched over stdio, with a Xero API key supplied through an environment variable.

According to the README it covers a broad portion of the Xero API, supports several authentication methods, and includes rate limiting, retry handling and async operation. The registry entry lists an optional API URL setting alongside the required key.

It suits developers who want an AI assistant to read or act on Xero accounting data from within an MCP-compatible client. The repository is MIT licensed and is at an early 0.1.0 version.

## Features

- **Broad Xero API coverage:** The README says the server covers a comprehensive set of Xero API endpoints.
- **Multiple authentication methods:** Several ways of authenticating against Xero are supported, per the README.
- **Rate limiting and retries:** Requests are rate limited and retried on failure, according to the README.
- **Async request handling:** The server supports asynchronous operation for better throughput.
- **Stdio transport install:** Installs from PyPI and runs over stdio for local MCP clients.

## Good for

- Asking an AI assistant questions about Xero accounting records
- Building GenAI workflows that read or update Xero data
- Prototyping accounting automations through an MCP client

## Install

### Claude Code (Terminal)

```sh
claude mcp add xero-mcp-server --env XERO_API_KEY='<XERO_API_KEY>' -- uvx xero-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "xero-mcp-server": {
      "command": "uvx",
      "args": [
        "xero-mcp-server"
      ],
      "env": {
        "XERO_API_KEY": "<XERO_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "xero-mcp-server": {
      "command": "uvx",
      "args": [
        "xero-mcp-server"
      ],
      "env": {
        "XERO_API_KEY": "<XERO_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "xero-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "xero-mcp-server"
      ],
      "env": {
        "XERO_API_KEY": "<XERO_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "xero-mcp-server": {
      "command": "uvx",
      "args": [
        "xero-mcp-server"
      ],
      "env": {
        "XERO_API_KEY": "<XERO_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "xero-mcp-server": {
      "command": "uvx",
      "args": [
        "xero-mcp-server"
      ],
      "env": {
        "XERO_API_KEY": "<XERO_API_KEY>"
      }
    }
  }
}
```

## FAQ

### How is the server installed?

The README gives pip install xero-mcp-server, or an editable install from the GitHub source.

### What credentials are needed?

The registry entry lists XERO_API_KEY as a required secret, and XERO_API_URL as an optional setting.

### What license does it use?

The README states the project is released under the MIT License.

### Is Xero free?

Yes. Xero is open source, so you can use and self-host it for free.

### How do I add Xero to Claude Code?

Run this command in your terminal: claude mcp add xero-mcp-server --env XERO_API_KEY='<XERO_API_KEY>' -- uvx xero-mcp-server

### What are the best alternatives to Xero?

The closest alternatives to Xero are Xero MCP, Zero Plus One MCP by usefulapi, xpnAI, Xynthera AI — JSON invoice, OpenAPI and event checks and Rechnio MCP by usefulapi.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Xero MCP](https://ai-powered.com/mcp/xero-mcp): Xero MCP is an open-source MCP server for finance and payments.
- [Zero Plus One MCP by usefulapi](https://ai-powered.com/mcp/zero-plus-one-mcp-by-usefulapi): Zero Plus One MCP by usefulapi is a freemium MCP server for finance and payments.
- [xpnAI](https://ai-powered.com/mcp/xpnai): xpnAI is an MCP server for finance and payments.
- [Xynthera AI — JSON invoice, OpenAPI and event checks](https://ai-powered.com/mcp/xynthera-ai-json-invoice-openapi-and-event-checks): Xynthera AI — JSON invoice, OpenAPI and event checks is a paid MCP server for developer tools.
- [Rechnio MCP by usefulapi](https://ai-powered.com/mcp/rechnio-mcp-by-usefulapi): Rechnio MCP by usefulapi is a freemium MCP server for finance and payments.
- [Quaderno MCP by usefulapi](https://ai-powered.com/mcp/quaderno-mcp-by-usefulapi): Quaderno MCP by usefulapi is a freemium MCP server for finance and payments.
- [Invoiced MCP by usefulapi](https://ai-powered.com/mcp/invoiced-mcp-by-usefulapi): Invoiced MCP by usefulapi is a freemium MCP server for finance and payments.
- [Currency Converter Mcp](https://ai-powered.com/mcp/currency-converter-mcp): Currency Converter Mcp is a freemium MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/xero-5
