Xero
Enables interaction with the Xero Accounting API to manage contacts, invoices, payments, accounts, and financial reports. It provides a suite of tools for natural language access to accounting records and business performance data.
What is Xero?
Xero is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables interaction with the xero accounting api to manage contacts, invoices, payments, accounts, and financial reports. it provides a suite of tools for natural language access to accounting records...
Enables interaction with the Xero Accounting API to manage contacts, invoices, payments, accounts, and financial reports. It provides a suite of tools for natural language access to accounting records and business performance data.
This server falls under the Business Applications and Finance & Fintech categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables interaction with the Xero Accounting API to manage c
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @xeroapi/xero-mcp-serverManual Installation
npx -y @xeroapi/xero-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Xero
The Xero MCP Server connects AI assistants to the Xero Accounting API, enabling natural language access to accounting data and operations. It supports reading and writing contacts, invoices, credit notes, payments, quotes, bank transactions, payroll timesheets, tax rates, and financial reports such as balance sheets, profit/loss, and trial balance. Built and maintained by XeroAPI, it uses OAuth 2.0 (Custom Connections) or a bearer token for authentication, making it suitable for both development and production accounting workflows driven by conversational AI.
Prerequisites
- Node.js 18 or newer (for npx execution)
- A Xero account with API access enabled at developer.xero.com
- A Xero OAuth 2.0 app with a Client ID and Client Secret (Custom Connection recommended)
- Required OAuth scopes granted: e.g., accounting.invoices, accounting.contacts, accounting.settings
- An MCP client such as Claude Desktop
Create a Xero API application
Log in to developer.xero.com, create a new app, choose 'Custom Connection' as the integration type, and note your Client ID and Client Secret. Grant the OAuth scopes your workflow requires (e.g., accounting.transactions, accounting.contacts, accounting.reports.read).
Install the MCP server
The server is available as an npm package and can be run directly via npx without a global install.
npx -y @xeroapi/xero-mcp-server@latestConfigure Claude Desktop
Add the server block to your Claude Desktop configuration file. Replace the placeholder values with your real Xero credentials.
{
"mcpServers": {
"xero": {
"command": "npx",
"args": ["-y", "@xeroapi/xero-mcp-server@latest"],
"env": {
"XERO_CLIENT_ID": "your_client_id_here",
"XERO_CLIENT_SECRET": "your_client_secret_here",
"XERO_SCOPES": "accounting.transactions accounting.contacts accounting.reports.read accounting.settings"
}
}
}
}Authorize via OAuth flow
On first run, the server will initiate the Xero OAuth flow. Follow the browser prompt to connect your Xero organization. Once authorized, tokens are managed automatically.
Restart Claude Desktop and verify
Restart Claude Desktop to pick up the new MCP server. Ask Claude to list your Xero contacts or invoices to confirm the connection is working.
Xero Examples
Client configuration
Full Claude Desktop configuration block for the Xero MCP Server using OAuth 2.0 Custom Connection credentials.
{
"mcpServers": {
"xero": {
"command": "npx",
"args": ["-y", "@xeroapi/xero-mcp-server@latest"],
"env": {
"XERO_CLIENT_ID": "your_client_id_here",
"XERO_CLIENT_SECRET": "your_client_secret_here",
"XERO_SCOPES": "accounting.transactions accounting.contacts accounting.reports.read accounting.settings"
}
}
}
}Prompts to try
After connecting the Xero MCP Server, use these prompts in Claude Desktop to interact with your accounting data.
- "List all unpaid invoices from the last 30 days."
- "Create a new invoice for contact Acme Corp for $1,500 due in 14 days."
- "Show me the profit and loss report for Q1 this year."
- "What's our current bank account balance?"
- "Create a payment of $500 against invoice INV-0042."
- "List all active contacts and their outstanding balances."Troubleshooting Xero
OAuth authorization fails or returns 'invalid_client'
Verify that XERO_CLIENT_ID and XERO_CLIENT_SECRET are correct and that your Xero app type is 'Custom Connection'. Ensure the redirect URI in your Xero app settings matches what the server uses.
Requests fail with 'insufficient scope' errors
Add the missing scope to XERO_SCOPES in your config (e.g., 'payroll.employees' for payroll data) and re-authorize. Xero scopes must be declared at app creation time for Custom Connections.
Bearer token authentication takes precedence unexpectedly
If XERO_CLIENT_BEARER_TOKEN is set in your environment, it overrides XERO_CLIENT_ID/SECRET. Remove or unset XERO_CLIENT_BEARER_TOKEN if you intend to use the OAuth flow.
Frequently Asked Questions about Xero
What is Xero?
Xero is a Model Context Protocol (MCP) server that enables interaction with the xero accounting api to manage contacts, invoices, payments, accounts, and financial reports. it provides a suite of tools for natural language access to accounting records and business performance data. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Xero?
Install via npm with the command: npx -y @xeroapi/xero-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Xero?
Xero works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Xero free to use?
Yes, Xero is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Xero Alternatives — Similar Business Applications Servers
Looking for alternatives to Xero? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Xero in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Xero?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.