Finance

Xero

@ktmcp-cli/xero

Xero is a leading cloud-based accounting platform used by millions of small businesses worldwide. This CLI provides full access to the Xero API, allowing you to manage invoices, contacts, bank transactions, and financial reports directly from your terminal.

Peter Steinberger
🦞
Six months ago, everyone was talking about MCPs. And I was like, screw MCPs. Every MCP would be better as a CLI.
Peter Steinberger, Founder of OpenClaw · Lex Fridman Podcast #491 · @steipete

Quick Start

Install the CLI globally using npm:

npm install -g @ktmcp-cli/xero

Features

Invoice creation and management
Contact and customer management
Bank transaction reconciliation
Financial reporting
Multi-currency support
Tax calculation and compliance

Usage Examples

Authentication

# Set up OAuth2 credentials
xero auth login --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET

# Verify authentication
xero auth status

List invoices

# Get all invoices
xero invoices list

# Filter by status
xero invoices list --status AUTHORISED

# Export as JSON
xero invoices list --format json

Create an invoice

# Create a new invoice
xero invoices create \
  --contact-id CONTACT_ID \
  --line-items '[{"description":"Service","quantity":1,"unitAmount":100}]' \
  --due-date 2026-03-31

Documentation

For complete documentation, API reference, and advanced usage examples, visit the GitHub repository. Each CLI includes comprehensive README.md, AGENT.md for AI integration, and OPENCLAW.md for tool definitions.