Xero MCP Server

Xero MCP Server

一个模型上下文协议(Model Context Protocol,MCP)服务器实现,提供对Xero会计和业务功能的标准化访问,从而可以通过MCP实现诸如联系人管理、发票创建和科目表管理等操作。

Category
访问服务器

Tools

list-contacts

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

update-contact

Update a contact in Xero.

create-quote

Create a quote in Xero.

list-invoices

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.

create-contact

Create a contact in Xero.

create-invoice

Create an invoice in Xero.

list-accounts

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

list-tax-rates

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

list-quotes

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.

update-invoice

Update an invoice in Xero. Only works on draft invoices.

list-credit-notes

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.

create-credit-note

Create a credit note in Xero.

README

Xero MCP 服务器

这是一个用于 Xero 的模型上下文协议 (MCP) 服务器实现。它提供了 MCP 协议和 Xero API 之间的桥梁,允许以标准化方式访问 Xero 的会计和业务功能。

功能

  • 具有自定义连接的 Xero OAuth2 身份验证
  • 联系人管理
  • 会计科目管理
  • 发票创建和管理
  • 符合 MCP 协议

前提条件

  • Node.js (v18 或更高版本)
  • npm 或 pnpm
  • 具有 API 凭据的 Xero 开发者帐户

配置您的 Xero 开发者帐户

按照以下说明设置自定义连接:https://developer.xero.com/documentation/guides/oauth2/custom-connections/

目前需要以下范围: accounting.transactions accounting.contacts accounting.settings.read

将 MCP 服务器与 Claude Desktop 集成

要将 MCP 服务器添加到 Claude,请转到 Settings > Developer > Edit config,并将以下内容添加到您的 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"
      }
    }
  }
}

可用的 MCP 命令

  • list-contacts: 从 Xero 检索联系人列表
  • list-invoices: 检索发票列表
  • list-accounts: 检索帐户列表
  • list-tax-rates : 检索税率列表
  • list-quotes : 检索报价单列表
  • list-credit-notes: 检索贷项通知单列表
  • create-contact: 创建新联系人
  • create-invoice: 创建新发票
  • create-quote: 创建新报价单
  • create-credit-note: 创建新贷项通知单
  • update-contact: 更新现有联系人
  • update-invoice: 更新现有草稿发票
  • update-quote: 更新现有草稿报价单

有关详细的 API 文档,请参阅 MCP 协议规范

开发者须知

安装

# 使用 npm
npm install

# 使用 pnpm
pnpm install

运行构建

# 使用 npm
npm run build

# 使用 pnpm
pnpm build

与 Claude Desktop 集成

要将 MCP 服务器添加到 Claude,请转到 Settings > Developer > Edit config,并将以下内容添加到您的 claude_desktop_config.json 文件中:

{
  "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 文件或任何敏感凭据提交到版本控制。

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选