Skip to main content
Glama
Xero MCP Server

Xero MCP Server

Official
by XeroAPI

Xero MCP 서버

이것은 Xero를 위한 모델 컨텍스트 프로토콜(MCP) 서버 구현입니다. MCP 프로토콜과 Xero API 사이의 가교 역할을 하여 Xero의 회계 및 비즈니스 기능에 대한 표준화된 액세스를 제공합니다.

기능

  • 사용자 지정 연결을 통한 Xero OAuth2 인증

  • 연락처 관리

  • 계정 과목(Chart of Accounts) 관리

  • 송장 생성 및 관리

  • MCP 프로토콜 준수

Related MCP server: xero-mcp-enhanced

사전 요구 사항

  • Node.js (v18 이상)

  • npm 또는 pnpm

  • API 자격 증명이 있는 Xero 개발자 계정

문서 및 링크

설정

Xero 계정 생성

아직 Xero 계정과 조직이 없다면 여기에서 무료 체험판을 사용하여 가입할 수 있습니다.

미리 로드된 샘플 데이터가 포함되어 있으므로 데모 회사(Demo Company)를 사용하여 시작하는 것을 권장합니다. 로그인한 후 왼쪽 상단 드롭다운을 사용하여 "Demo Company"를 선택하십시오. 왼쪽 상단 드롭다운을 사용하여 My Xero로 이동하면 언제든지 데모 회사의 데이터를 재설정하거나 국가를 변경할 수 있습니다.

참고: 급여(Payroll) 관련 쿼리를 사용하려면 지역이 NZ(뉴질랜드) 또는 UK(영국)여야 합니다.

인증

Xero MCP 서버에서 지원하는 인증 모드는 2가지입니다:

1. 사용자 지정 연결 (Custom Connections)

이는 특정 조직에 대한 클라이언트 ID와 비밀번호를 지정할 수 있어 테스트 및 개발에 더 적합한 선택입니다. 또한 Claude Desktop과 같은 타사 MCP 클라이언트에 통합하는 경우 권장되는 방식입니다.

Xero 개발자 계정 구성

다음 지침에 따라 사용자 지정 연결을 설정하십시오: https://developer.xero.com/documentation/guides/oauth2/custom-connections/

필수 범위 (Scopes)

사용자 지정 연결은 생성 시점에 따라 다른 범위가 필요합니다. 관련 목록의 모든 범위가 사용자 지정 연결에 추가되어야 합니다:

사용자 지정 연결 생성 시점

필수 범위

2026년 4월 29일 이전

SCOPES_V1 (번들 권한)

2026년 4월 29일부터

SCOPES_V2 (세분화된 권한)

참고: MCP 서버는 자동으로 V1 범위를 먼저 시도하고 필요한 경우 V2로 대체합니다.

XERO_SCOPES 환경 변수를 공백으로 구분된 범위 목록으로 설정하여 이를 재정의할 수 있습니다.

MCP 서버와 Claude Desktop 통합

MCP 서버를 Claude에 추가하려면 설정 > 개발자 > 구성 편집으로 이동하여 claude_desktop_config.json 파일에 다음을 추가하십시오:

{
  "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.invoices accounting.contacts accounting.settings"
      }
    }
  }
}

XERO_SCOPES 변수는 선택 사항입니다. 생략하면 위에 나열된 기본 범위가 사용됩니다.

참고: Node Version Manager를 사용하는 경우 "command": "npx" 섹션을 실행 파일의 전체 경로로 변경하십시오. 예: Mac/Linux의 경우 your_home_directory/.nvm/versions/node/v22.14.0/bin/npx, Windows의 경우 "your_home_directory\\.nvm\\versions\\node\\v22.14.0\\bin\\npx"

2. 베어러 토큰 (Bearer Token)

런타임에 여러 Xero 계정을 지원하고 MCP 클라이언트가 필요에 따라 인증 흐름(예: PKCE)을 실행하도록 하려는 경우 더 나은 선택입니다. 이 경우 다음 구성을 사용하십시오:

{
  "mcpServers": {
    "xero": {
      "command": "npx",
      "args": ["-y", "@xeroapi/xero-mcp-server@latest"],
      "env": {
        "XERO_CLIENT_BEARER_TOKEN": "your_bearer_token"
      }
    }
  }
}

참고: XERO_CLIENT_BEARER_TOKEN이 정의된 경우 XERO_CLIENT_ID보다 우선합니다.

베어러 토큰에 필요한 범위

베어러 토큰을 얻을 때는 적절한 범위를 요청해야 합니다. 요청해야 할 범위는 다음과 같습니다:

참고: 일부 범위는 더 세분화된 범위를 위해 더 이상 사용되지 않습니다(deprecated). 폐기 일정에 대한 자세한 내용은 Xero OAuth 2.0 범위 문서를 참조하십시오.

accounting.transactions (Deprecated)
accounting.transactions.read (Deprecated)
accounting.invoices
accounting.invoices.read
accounting.payments
accounting.payments.read
accounting.banktransactions
accounting.banktransactions.read
accounting.manualjournals
accounting.manualjournals.read
accounting.reports.read (Deprecated)
accounting.reports.aged.read
accounting.reports.balancesheet.read
accounting.reports.profitandloss.read
accounting.reports.trialbalance.read
accounting.contacts 
accounting.settings 
payroll.settings 
payroll.employees 
payroll.timesheets

사용 가능한 MCP 명령어

  • list-accounts: 계정 목록 검색

  • list-contacts: Xero에서 연락처 목록 검색

  • list-credit-notes: 대변 메모(credit notes) 목록 검색

  • list-invoices: 송장 목록 검색

  • list-items: 항목 목록 검색

  • list-manual-journals: 수동 분개장 목록 검색

  • list-organisation-details: 조직 세부 정보 검색

  • list-profit-and-loss: 손익 계산서 보고서 검색

  • list-quotes: 견적서 목록 검색

  • list-tax-rates: 세율 목록 검색

  • list-payments: 결제 목록 검색

  • list-trial-balance: 시산표 보고서 검색

  • list-bank-transactions: 은행 계좌 거래 목록 검색

  • list-payroll-employees: 급여 직원 목록 검색

  • list-report-balance-sheet: 대차대조표 보고서 검색

  • list-payroll-employee-leave: 급여 직원의 휴가 기록 검색

  • list-payroll-employee-leave-balances: 급여 직원의 휴가 잔액 검색

  • list-payroll-employee-leave-types: 급여 휴가 유형 목록 검색

  • list-payroll-leave-periods: 급여 직원의 휴가 기간 목록 검색

  • list-payroll-leave-types: Xero 급여에서 사용 가능한 모든 휴가 유형 목록 검색

  • list-timesheets: 급여 타임시트 목록 검색

  • list-aged-receivables-by-contact: 연락처별 연령별 미수금 검색

  • list-aged-payables-by-contact: 연락처별 연령별 미지급금 검색

  • list-contact-groups: 연락처 그룹 목록 검색

  • list-tracking-categories: 추적 범주 목록 검색

  • create-bank-transaction: 새 은행 거래 생성

  • create-contact: 새 연락처 생성

  • create-credit-note: 새 대변 메모 생성

  • create-invoice: 새 송장 생성

  • create-item: 새 항목 생성

  • create-manual-journal: 새 수동 분개장 생성

  • create-payment: 새 결제 생성

  • create-quote: 새 견적서 생성

  • create-payroll-timesheet: 새 급여 타임시트 생성

  • create-tracking-category: 새 추적 범주 생성

  • create-tracking-option: 새 추적 옵션 생성

  • update-bank-transaction: 기존 은행 거래 업데이트

  • update-contact: 기존 연락처 업데이트

  • update-invoice: 기존 초안 송장 업데이트

  • update-item: 기존 항목 업데이트

  • update-manual-journal: 기존 수동 분개장 업데이트

  • update-quote: 기존 초안 견적서 업데이트

  • update-credit-note: 기존 초안 대변 메모 업데이트

  • update-tracking-category: 기존 추적 범주 업데이트

  • update-tracking-options: 추적 옵션 업데이트

  • update-payroll-timesheet-line: 기존 급여 타임시트의 라인 업데이트

  • approve-payroll-timesheet: 급여 타임시트 승인

  • revert-payroll-timesheet: 승인된 급여 타임시트 되돌리기

  • add-payroll-timesheet-line: 기존 급여 타임시트에 새 라인 추가

  • delete-payroll-timesheet: 기존 급여 타임시트 삭제

  • get-payroll-timesheet: 기존 급여 타임시트 검색

자세한 API 문서는 MCP 프로토콜 사양을 참조하십시오.

개발자를 위한 정보

설치

# Using npm
npm install

# Using pnpm
pnpm install

빌드 실행

# Using npm
npm run build

# Using pnpm
pnpm build

Claude Desktop과 통합

개발 중인 Xero MCP 서버를 Claude Desktop에 연결하려면 설정 > 개발자 > 구성 편집으로 이동하여 claude_desktop_config.json 파일에 다음을 추가하십시오:

참고: Windows의 경우 args 경로에서 폴더 사이의 \를 이스케이프 처리해야 합니다. 예: "C:\\projects\\xero-mcp-server\\dist\\index.js"

{
  "mcpServers": {
    "xero": {
      "command": "node",
      "args": ["insert-your-file-path-here/xero-mcp-server/dist/index.js"],
      "env": {
        "XERO_CLIENT_ID": "your_client_id_here",
        "XERO_CLIENT_SECRET": "your_client_secret_here"
      }
    }
  }
}

라이선스

MIT

보안

.env 파일이나 민감한 자격 증명을 버전 제어에 커밋하지 마십시오(안전한 기본값으로 .gitignore에 포함되어 있습니다.)

Available Tools

51 tools
add-timesheet-lineC

Add a new timesheet line to an existing payroll timesheet in Xero.

Inputs: timesheetID (required), timesheetLine (required).

approve-timesheetC

Approve a payroll timesheet in Xero by its ID.

Inputs: timesheetID (required).

create-bank-transactionC

Create a bank transaction in Xero. When a bank transaction is created, a deep link to the bank transaction in Xero is returned. This deep link can be used to view the bank transaction in Xero directly. This link should be displayed to the user.

Inputs: type (required), contactId (required), lineItems (required), bankAccountId (required), +2 more.

create-contactB

Create a contact in Xero. When a contact is created, a deep link to the contact in Xero is returned. This deep link can be used to view the contact in Xero directly. This link should be displayed to the user.

Inputs: name (required), email, phone.

create-credit-noteC

Create a credit note in Xero. When a credit note is created, a deep link to the credit note in Xero is returned. This deep link can be used to view the credit note in Xero directly. This link should be displayed to the user.

Inputs: contactId (required), lineItems (required), reference.

create-invoiceB

Create an invoice in Xero. When an invoice is created, a deep link to the invoice in Xero is returned. This deep link can be used to view the invoice in Xero directly. This link should be displayed to the user.

Inputs: type (required), contactId (required), lineItems (required), date, +1 more.

create-itemC

Create an item in Xero.

Inputs: code (required), name (required), description, salesDetails, +4 more.

create-manual-journalB

Create a manual journal in Xero. Retrieve a list of account codes in Xero to use for the journal lines. Journal lines must contain at least two individual journal lines with account codes, use basic accounting account types pairing when not specified, and make sure journal line pairs have credit and debit balanced.

Inputs: narration (required), manualJournalLines (required), url, date, +3 more.

create-paymentA

Create a payment against an invoice in Xero. This tool records a payment transaction against an invoice. You'll need to provide the invoice ID, account ID to make the payment from, and the amount. The amount must be positive and should not exceed the remaining amount due on the invoice. A payment can only be created for an invoice that is status AUTHORIZED A payment can only be created for an invoice that is not fully paid When a payment is created, a deep link to the payment in Xero is returned. This deep link can be used to view the payment in Xero directly. This link should be displayed to the user.

Inputs: amount (required), accountId (required), invoiceId (required), date, +1 more.

create-quoteC

Create a quote in Xero. When a quote is created, a deep link to the quote in Xero is returned. This deep link can be used to view the quote in Xero directly. This link should be displayed to the user.

Inputs: contactId (required), lineItems (required), terms, title, +3 more.

create-timesheetC

Create a new payroll timesheet in Xero. This allows you to specify details such as the employee ID, payroll calendar ID, start and end dates, and timesheet lines.

Inputs: endDate (required), startDate (required), employeeID (required), payrollCalendarID (required), +1 more.

create-tracking-categoryC

Create a tracking category in Xero.

Inputs: name (required).

create-tracking-optionsC

Create tracking options for a tracking category in Xero.

Inputs: optionNames (required), trackingCategoryId (required).

delete-timesheetC

Delete an existing payroll timesheet in Xero by its ID.

Inputs: timesheetID (required).

get-timesheetA

Retrieve a single payroll timesheet from Xero by its ID. This provides details such as the timesheet ID, employee ID, start and end dates, total hours, and the last updated date.

Inputs: timesheetID (required).

list-accountsA

Lists all accounts in Xero. Use this tool to get the account codes and names to be used when creating invoices in Xero

Inputs: no named parameters.

list-aged-payables-by-contactC

Lists the aged payables in Xero. This shows aged payables for a certain contact up to a report date.

Inputs: contactId (required), reportDate, invoicesToDate, invoicesFromDate.

list-aged-receivables-by-contactC

Lists the aged receivables in Xero. This shows aged receivables for a certain contact up to a report date.

Inputs: contactId (required), reportDate, invoicesToDate, invoicesFromDate.

list-bank-transactionsB

List all bank transactions in Xero. Ask the user if they want to see bank transactions for a specific bank account, or to see all bank transactions before running. Ask the user if they want the next page of quotes after running this tool if 10 bank transactions are returned. If they do, call this tool again with the next page number and the bank account if one was provided in the provided in the previous call.

Inputs: page (required), bankAccountId.

list-contact-groupsB

List all contact groups in Xero. You can optionally specify a contact group ID to retrieve details for that specific group, including its contacts.

Inputs: contactGroupId.

list-contactsC

List all contacts in Xero. This includes Suppliers and Customers.

Inputs: page, searchTerm.

list-credit-notesA

List credit notes in Xero. Ask the user if they want to see credit notes for a specific contact, or to see all credit notes before running. Ask the user if they want the next page of credit notes after running this tool if 10 credit notes are returned. If they want the next page, call this tool again with the next page number and the contact if one was provided in the previous call.

Inputs: page (required), contactId.

list-invoicesA

List invoices in Xero. This includes Draft, Submitted, and Paid invoices. Ask the user if they want to see invoices for a specific contact, invoice number, or to see all invoices before running. Ask the user if they want the next page of invoices after running this tool if 10 invoices are returned. If they want the next page, call this tool again with the next page number and the contact or invoice number if one was provided in the previous call.

Inputs: page (required), contactIds, invoiceNumbers.

list-itemsB

Lists all items in Xero. Use this tool to get the item codes and descriptions to be used when creating invoices in Xero

Inputs: page (required).

list-manual-journalsC

List all manual journals from Xero. Ask the user if they want to see a specific manual journal or all manual journals before running. Can optionally pass in manual journal ID to retrieve a specific journal, or a date to filter journals modified after that date. The response presents a complete overview of all manual journals currently registered in your Xero account, with their details. Ask the user if they want the next page of manual journals after running this tool if 10 manual journals are returned. If they want the next page, call this tool again with the next page number, modified date, and the manual journal ID if one was provided in the previous call.

Inputs: page, modifiedAfter, manualJournalId.

list-organisation-detailsB

Lists the organisation details from Xero. Use this tool to get information about the current Xero organisation.

Inputs: no named parameters.

list-paymentsA

List payments in Xero. This tool shows all payments made against invoices, including payment date, amount, and payment method. You can filter payments by invoice number, invoice ID, payment ID, or invoice reference. Ask the user if they want to see payments for a specific invoice, contact, payment or reference before running. If many payments are returned, ask the user if they want to see the next page.

Inputs: page, invoiceId, paymentId, reference, +1 more.

list-payroll-employee-leaveB

List all leave records for a specific employee in Xero. This shows all leave transactions including approved, pending, and processed time off. Provide an employee ID to see their leave history.

Inputs: employeeId (required).

list-payroll-employee-leave-balancesC

List all leave balances for a specific employee in Xero. This shows current leave balances for all leave types available to the employee, including annual, sick, and other leave types.

Inputs: employeeId (required).

list-payroll-employee-leave-typesB

List all leave types available for a specific employee in Xero. This shows detailed information about the types of leave an employee can take, including schedule of accrual, leave type name, and entitlement.

Inputs: employeeId (required).

list-payroll-employeesA

List all payroll employees in Xero. This retrieves comprehensive employee details including names, User IDs, dates of birth, email addresses, gender, phone numbers, start dates, engagement types (Permanent, FixedTerm, or Casual), titles, and when records were last updated. The response presents a complete overview of all staff currently registered in your Xero payroll, with their personal and employment information. If there are many employees, ask the user if they would like to see more detailed information about specific employees before proceeding.

Inputs: no named parameters.

list-payroll-leave-periodsA

List all leave periods for a specific employee in Xero. This shows detailed time off periods including start and end dates, period status, payment dates, and leave types. Provide an employee ID to see their leave periods.

Inputs: employeeId (required), endDate, startDate.

list-payroll-leave-typesB

Lists all available leave types in Xero Payroll. This provides information about all the leave categories configured in your Xero system, including statutory and organization-specific leave types.

Inputs: no named parameters.

list-profit-and-lossC

Lists profit and loss report in Xero. This provides a summary of revenue, expenses, and profit or loss over a specified period of time.

Inputs: toDate, periods, fromDate, timeframe, +2 more.

list-quotesA

List all quotes in Xero. Ask the user if they want to see quotes for a specific contact before running. Ask the user if they want the next page of quotes after running this tool if 10 quotes are returned. If they do, call this tool again with the page number and the contact provided in the previous call.

Inputs: page (required), contactId, quoteNumber.

list-report-balance-sheetC

List the Balance Sheet report from Xero.

Inputs: date, periods, timeframe, paymentsOnly, +3 more.

list-tax-ratesA

Lists all tax rates in Xero. Use this tool to get the tax rates to be used when creating invoices in Xero

Inputs: no named parameters.

list-timesheetsB

List all payroll timesheets in Xero. This retrieves comprehensive timesheet details including timesheet IDs, employee IDs, start and end dates, total hours, and the last updated date.

Inputs: no named parameters.

list-tracking-categoriesB

List all tracking categories in Xero, along with their associated tracking options.

Inputs: includeArchived.

list-trial-balanceB

Lists trial balance in Xero. This provides a snapshot of the general ledger, showing debit and credit balances for each account.

Inputs: date, paymentsOnly.

revert-timesheetC

Revert a payroll timesheet to draft in Xero by its ID.

Inputs: timesheetID (required).

update-bank-transactionC

Update a bank transaction in Xero. When a bank transaction is updated, a deep link to the bank transaction in Xero is returned. This deep link can be used to view the bank transaction in Xero directly. This link should be displayed to the user.

Inputs: bankTransactionId (required), date, type, contactId, +2 more.

update-contactC

Update a contact in Xero. When a contact is updated, a deep link to the contact in Xero is returned. This deep link can be used to view the contact in Xero directly. This link should be displayed to the user.

Inputs: name (required), contactId (required), email, phone, +3 more.

update-credit-noteA

Update a credit note in Xero. Only works on draft credit notes. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When a credit note is updated, a deep link to the credit note in Xero is returned. This deep link can be used to view the credit note in Xero directly. This link should be displayed to the user.

Inputs: creditNoteId (required), date, contactId, lineItems, +1 more.

update-invoiceA

Update an invoice in Xero. Only works on draft invoices. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When an invoice is updated, a deep link to the invoice in Xero is returned. This deep link can be used to view the contact in Xero directly. This link should be displayed to the user.

Inputs: invoiceId (required), date, dueDate, contactId, +2 more.

update-itemC

Update an item in Xero.

Inputs: code (required), name (required), itemId (required), description, +5 more.

update-manual-journalB

Update a manual journal in Xero. Only works on draft manual journals. Do not modify line items or parameters that have not been specified by the user.

Inputs: narration (required), manualJournalID (required), manualJournalLines (required), url, +4 more.

update-quoteA

Update a quote in Xero. Only works on draft quotes. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When a quote is updated, a deep link to the quote in Xero is returned. This deep link can be used to view the quote in Xero directly. This link should be displayed to the user.

Inputs: quoteId (required), date, terms, title, +6 more.

update-timesheet-lineC

Update an existing timesheet line in a payroll timesheet in Xero.

Inputs: timesheetID (required), timesheetLine (required), timesheetLineID (required).

update-tracking-categoryC

Updates an existing tracking category in Xero.

Inputs: trackingCategoryId (required), name, status.

update-tracking-optionsC

Updates tracking options for a tracking category in Xero.

Inputs: options (required), trackingCategoryId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 51 tools

    Disambiguation4/5

    Most tools map to distinct Xero resources and actions, and the descriptions make similar payroll/leave and reporting tools reasonably separable. A few areas overlap, especially the multiple payroll leave list tools and list-vs-filter patterns, but overall an agent can tell them apart.

    Naming Consistency5/5

    Tool names consistently use kebab-case verb-resource patterns such as create-invoice, list-contacts, update-item, and delete-timesheet. Minor variations like list-report-balance-sheet are still readable and fit the same overall convention.

    Tool Count2/5

    With 51 tools, the surface is far above the ideal 3-15 range and will make tool selection harder for an agent. The breadth reflects the Xero accounting domain, but the set is still too large for a single MCP server without stronger grouping or consolidation.

    Completeness3/5

    Core create/list/update flows are well represented across invoices, contacts, items, quotes, credit notes, bank transactions, and payroll timesheets. However, delete operations are missing for most resources, direct get-by-ID tools are absent for almost everything except timesheets, and create-timesheet requires a payroll calendar ID even though no tool lists payroll calendars.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      An enhanced MCP server for Xero, enabling natural language interaction with your Xero organisation for accounting tasks like invoices, contacts, bank transactions, and payroll.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that enables AI assistants to read and write Xero accounting data, including invoices, contacts, accounts, and payments, through natural language.
      MIT