
john-zhang-dev/xero-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Model Context Protocol 서버는 클라이언트가 Xero와 상호 작용할 수 있습니다
개요
이 MCP 서버는 클라이언트가 Xero 회계 소프트웨어와 상호 작용할 수 있습니다. 2. Xero의 OAuth 2.0 앱을 작성하여 CLIENT ID 및 CLIENT SECRET . - 무료 Xero 사용자 계정 만들기 (당신은 하나가없는 경우) - Xero 개발자 센터에 로그인 https://developer.xero.com/app/manage/ - 새로운 응용 프로그램을 클릭 - 응용 프로그램에 대한 이름을 입력 - 웹 응용 프로그램을 선택 - 유효한 URL을 제공 (예를들 수 있습니다. https://www.myapp.com) - URI를 입력 : http://localhost:5000/callback] 리디렉션 URI는 사용자 정의 할 수 있지만 로컬 호스트를 사용해야하며 명시된 포트와 경로 (예를 들어 [T3]] 아래 MCP 클라이언트 설정에서 XERO REDIRECT URI와 동일한 값을 설정합니다. - 이용 약관을 수락하고 Create 앱을 클릭 - 화면의 왼쪽에있는 설정 - 비밀을 생성 설정 -> 개발자 -> 로컬 MCP 서버 -> Config을 편집하고 claude desktop config에 다음을 추가합니다.
개요(AI 번역)
이 MCP 서버는 클라이언트가 Xero 회계 소프트웨어와 상호 작용할 수 있습니다.
시작하기
-
노드가 설치되어 있는지 확인합니다.
-
Xero의 OAuth 2.0 앱을 작성하여 CLIENT ID 및 CLIENT SECRET .
- 무료 Xero 사용자 계정 만들기 (당신은 하나가없는 경우)
- Xero Developer Center에 로그인 [T0]]
- 새 앱을 클릭
- 앱 이름 입력
- 웹 앱 선택
- 유효한 URL을 제공 (예를들 수 있습니다. https://www.myapp.com)
- 리디렉션 URI 입력:
http://localhost:5000/callback
주: 리디렉션 URI는 사용자 정의 할 수 있지만
localhost]를 사용해야하며 명시된 포트와 경로 (예 : [T4]])를 모두 포함합니다. 아래 MCP 클라이언트 설정에서XERO_REDIRECT_URI와 같은 값을 설정합니다.
- 약관을 수락하고 앱 만들기
- 화면의 왼쪽에 설정 선택
- 비밀을 생성
- MCP 클라이언트를 구성하십시오:
Claude 데스크탑
Settings -> Developers -> Local MCP Servers -> Config을 편집하고 claude_desktop_config.json에 다음을 추가하십시오.
Restart 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"
}
}
}
}