
john-zhang-dev/xero-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
モデルコンテキストプロトコルサーバは、クライアントがXeroとやり取りすることができます
概要
このMCPサーバーは、クライアントがXero会計ソフトウェアと対話することができます。 2. Xero で OAuth 2.0 アプリを作成して CLIENT ID と CLIENT SECRET を取得します。 - Xero Developer Center [https://developer.xero.com/app/manage/にログイン - 無料のXeroユーザーアカウントを作成します。 - アプリ名を入力してください - Webアプリを選択 - 有効なURL(有効なURLのいずれかになることができます。 [[https://www.myapp.com)]]]] - リダイレクトURIを入力します。 http://localhost:5000/callback]] リダイレクト URI はカスタマイズできますが、 localhost を使用して、 明示的なポートとパス (例: http://localhost:5050/my-path).) の両方を含める必要があります。 MCP クライアントの設定で XERO REDIRECT URI と同じ値を設定します。 - 条件に同意し、アプリを作成 - 画面の左側にある設定 - クリック シークレットを生成します 設定に移動 → 開発者 -> ローカル MCP サーバー → Config を編集し、claude desktop config に以下を追加します.
概要(AI 翻訳)
このMCPサーバーは、クライアントがXero会計ソフトウェアと対話することができます。
始める
-
ノードがインストールされていることを確認してください。
-
Xero で OAuth 2.0 アプリを作成して CLIENT ID と CLIENT SECRET を取得します。
- 無料のXeroユーザーアカウントを作成します(もしあなたが持っていない場合)
- Xero Developer Centerにログイン https://developer.xero.com/app/manage/
- 新規アプリをクリック
- アプリの名前を入力してください
- Webアプリを選択
- 有効なURL(有効なURLを指定できます。[https://www.myapp.com)]]])
- リダイレクト URI を入力します。: [
http://localhost:5000/callback]
注記: リダイレクト URI はカスタマイズできますが、
localhost] を使用し、 explicit ポートとパス (例http://localhost:5050/my-path) の両方を含む必要があります。 MCP クライアントの設定でXERO_REDIRECT_URIと同じ値を設定します。
- 利用規約に同意し、アプリを作成する
- 画面の左側で設定を選択します
- 秘密の生成をクリックします
- MCP クライアントの設定:
##Claudeデスクトップ
設定 -> 開発者 -> ローカル MCP サーバー → Config を編集し、[claude_desktop_config.json に次のを追加します。
Claude デスクトップを再起動するか、開発者 -> Reload MCP の設定でリロードします。
##Claudeコード
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Xero MCP Server
This MCP server allows Clients to interact with Xero Accounting Software.
Get Started
-
Make sure node is installed.
-
Create an OAuth 2.0 app in Xero to get a CLIENT_ID and CLIENT_SECRET.
-
Create a free Xero user account (if you don’t have one)
-
Login to Xero Developer center https://developer.xero.com/app/manage/
-
Click New app
-
Enter a name for your app
-
Select Web app
-
Provide a valid URL (can be anything valid eg. https://www.myapp.com)
-
Enter redirect URI:
http://localhost:5000/callbackNote: The redirect URI can be customized, but it must use
localhostand include both an explicit port and a path (e.g.http://localhost:5050/my-path). Set the same value asXERO_REDIRECT_URIin your MCP client config below. -
Tick to Accept the Terms & Conditions and click Create app
-
On the left-hand side of the screen select Configuration
-
Click Generate a secret
-
-
Configure your MCP client:
Claude Desktop
Go to Settings -> Developers -> Local MCP Servers -> Edit Config and add the following to
claude_desktop_config.json:{ "mcpServers": { "xero-mcp": { "command": "npx", "args": ["-y", "xero-mcp@latest"], "env": { "XERO_CLIENT_ID": "YOUR_CLIENT_ID", "XERO_CLIENT_SECRET": "YOUR_CLIENT_SECRET", "XERO_REDIRECT_URI": "http://localhost:5000/callback" } } } }Restart Claude Desktop, or reload via Developer -> Reload MCP Configuration.
Claude Code
Run the following command to add the MCP server:
claude mcp add xero-mcp \ -e XERO_CLIENT_ID=YOUR_CLIENT_ID \ -e XERO_CLIENT_SECRET=YOUR_CLIENT_SECRET \ -e XERO_REDIRECT_URI=http://localhost:5000/callback \ -- npx -y xero-mcp@latestThe server will be available in your next Claude Code session. To make it available across all projects, add
--scope userto the command above. -
When accessing a Xero tool for the first time, a Xero login page will pop up to ask your consent. Complete the auth flow and manually close the web page (as the Xero page will not auto close in this version)
Privacy alert: after completing the Xero OAuth2 flow, your Xero data may go through the LLM that you use. If you are doing testing you should authorize to your Xero Demo Company.
Tools
-
authenticateAuthenticate with Xero using OAuth2
-
create_bank_transactionsCreates one or more spent or received money transaction
-
create_contactsCreates one or multiple contacts in a Xero organisation
-
get_balance_sheetRetrieves report for balancesheet
インストール
npx -y xero-mcp@latest設定
{
"mcpServers": {
"xero-mcp": {
"command": "npx",
"args": ["-y", "xero-mcp@latest"],
"env": {
"XERO_CLIENT_ID": "YOUR_CLIENT_ID",
"XERO_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"XERO_REDIRECT_URI": "http://localhost:5000/callback"
}
}
}
}