Xero MCP Server
An MCP server that integrates with the MCP protocol.
Overview
Xero MCP Server is an implementation of the Model Context Protocol (MCP) that integrates with Xero's API, providing standardized access to Xero's accounting and business features.
To use the Xero MCP Server, set up a Custom Connection in your Xero Developer account, install the server using npm or pnpm, and configure it in your application.
- Xero OAuth2 authentication with custom connections - Contact management - Chart of Accounts management - Invoice creation and management - Compliance with MCP protocol
- Managing contacts and invoices in Xero through a standardized API.
- Integrating Xero's accounting features into custom applications.
- Automating financial workflows using MCP commands.
Add to your AI client
Use these steps to connect Xero MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"xero-mcp-server-xeroapi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-xero-mcp-server-xeroapi"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"xero-mcp-server-xeroapi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-xero-mcp-server-xeroapi"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"xero-mcp-server-xeroapi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-xero-mcp-server-xeroapi"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"xero-mcp-server-xeroapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-xero-mcp-server-xeroapi"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"xero-mcp-server-xeroapi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-xero-mcp-server-xeroapi"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"xero-mcp-server-xeroapi": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-xero-mcp-server-xeroapi"
]
}
}
}FAQ
What are the prerequisites for using Xero MCP Server?
You need Node.js (v18 or higher), npm or pnpm, and a Xero developer account with API credentials.
How do I configure my Xero Developer account?
Follow the instructions on the Xero developer documentation to set up a Custom Connection.
What commands are available with the MCP server?
Available commands include `list-contacts`, `list-invoices`, `list-accounts`, `create-contact`, and `create-invoice`.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3822,"uuid":"7f694ca4-3d44-4785-a5df-e9b2eaa6d2ad","name":"xero-mcp-server","title":"Xero MCP Server","description":"An MCP server that integrates with the MCP protocol.","avatar_url":"https://avatars.githubusercontent.com/u/242786?v=4","created_at":"2025-03-21T20:41:01.288Z","updated_at":"2025-03-21T20:56:56.988Z","status":"created","author_name":"XeroAPI","author_avatar_url":"https://avatars.githubusercontent.com/u/242786?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/XeroAPI/xero-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"73\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-05-18 20:55:11\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]