
scottcjn/qb-auto
Browser automationこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
QuickBooks Claudeコード用のオンラインMCPサーバー — 50Kトークンスナップショットを~200トークンターゲット抽出物に置き換える8つの自動化ツール
概要
MCP (Model Context Protocol) サーバーで、Claude Code ネイティブ ツールを QuickBooks オンライン オートメーションに提供します。 対象の DOM 抽出 (~200-500 トークン) と 1 つのツールコールでワークフロー全体を完了するコンパウンドの Playwright アクションで 50K-token browser snapshot 往復を置換します。 - Python 3.10 + - mcpとplaywrightパッケージ - リモートデバッグで実行されるChrome: google-chrome --remote-debugging-port=9222 サーバは、デフォルトでポート9222上のCDP(Chrome DevToolsプロトコル)を介してChromeに接続します。 サーバでCDP PORT変数を設定します。 別のポートを使用する場合は、py。 - : ARIAセレクターを使用して、QBのDOMからコンパクトなJSONを返すPage.evaluate()を介して注入されたJavaScript機能 - : getByRole()とgetByLabel()を使用して、完全なPlaywrightワークフロー - QBページのリロードを生存するARIA-stableセレクター - : PLAYBOOK.mdは、ブラウザで手動で使用するための完全な参考文献が含まれています evaluate/browser run code 1. クロードは qb receive payment(invoice num="6865" ) を呼び出します.
概要(AI 翻訳)
MCP (Model Context Protocol) サーバーで、Claude Code ネイティブ ツールを QuickBooks オンライン オートメーションに提供します。
50K-token browser_snapshotをターゲットにしたDOM抽出(〜200-500トークン)と組み合わせるPlaywrightアクションを1つのツールコールでワークフロー全体を完了します。
ツール
| ツール | 概要 |
お問い合わせ
| [qb_page_state | 現在のページ/ダイアログの状態(~50トークン)のチェック |
| [qb_list_invoices | オプションの顧客フィルターで表示される全ての請求書を一覧表示 |
| [qb_invoice_state | 公正な請求書(ラインアイテム、合計) |
|【[[T4]】 | お支払い記録(ナビゲート→記入→保存→確認) |
| [[T5] | ラインアイテムで新しい請求書を作成 |
| [qb_delete_line_item | 既存の請求書から削除 |
| [[T7] | 既存の支払額の編集 |
| [qb_batch_receive_payments | 複数の決済を順番に記録 |
| [qb_report | QBOレポート(30+レポートタイプ)を日付範囲オプションで実行 |
| [[[T10] | 利益損失(損益) |
| 【[T11] | 貸借対照表 | 貸借対照表 |
| [[[T12] | A/R エイジングサマリー(ウオウ) |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
qb-auto — QuickBooks MCP Server
MCP (Model Context Protocol) server that gives Claude Code native tools for QuickBooks Online automation.
Replaces 50K-token browser_snapshot round-trips with targeted DOM extraction (~200-500 tokens) and compound Playwright actions that complete entire workflows in one tool call.
Tools
| Tool | Description |
|---|---|
qb_page_state |
Check current page/dialog state (~50 tokens) |
qb_list_invoices |
List all visible invoices with optional customer filter |
qb_invoice_state |
Inspect an open invoice form (line items, totals) |
qb_receive_payment |
Record a payment (navigate → fill → save → confirm) |
qb_create_invoice |
Create a new invoice with line items |
qb_delete_line_item |
Delete a line from an existing invoice |
qb_edit_payment_amount |
Edit an existing payment amount |
qb_batch_receive_payments |
Record multiple payments in sequence |
qb_report |
Run any QBO report (30+ report types) with date range options |
qb_report_pnl |
Profit & Loss (income statement) |
qb_report_balance_sheet |
Balance Sheet (assets, liabilities, equity) |
qb_report_ar_aging |
A/R Aging Summary (who owes, how overdue) |
qb_report_customer_balance |
Customer Balance Summary |
qb_report_open_invoices |
Open (unpaid) Invoices |
qb_report_vendor_balance |
Vendor Balance Summary |
Token Savings
| Workflow | Before (snapshots) | After (MCP) | Savings |
|---|---|---|---|
| Receive Payment | ~290K tokens | ~13K tokens | 95% |
| Create Invoice | ~350K tokens | ~18K tokens | 95% |
| Full session (5 ops) | ~500K tokens | ~45K tokens | 91% |
Setup
Prerequisites
- Python 3.10+
mcpandplaywrightpackages- Chrome running with remote debugging:
google-chrome --remote-debugging-port=9222
Install
pip install mcp playwright
playwright install chromium
Register with Claude Code
Add to ~/.mcp.json:
{
"mcpServers": {
"quickbooks": {
"type": "stdio",
"command": "python3",
"args": ["/path/to/qb-auto/server.py"]
}
}
}
Configuration
The server connects to Chrome via CDP (Chrome DevTools Protocol) on port 9222 by default. Set the CDP_PORT variable in server.py if using a different port.
Architecture
- Extractors: JavaScript functions injected via
page.evaluate()that return compact JSON from QB’s DOM using ARIA selectors - Actions: Complete Playwright workflows using
getByRole()andgetByLabel()— ARIA-stable selectors that survive QB page reloads - Playbook:
PLAYBOOK.mdcontains the full reference for manual use withbrowser_evaluate/browser_run_code
Files
| File | Purpose |
|---|
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"quickbooks": {
"type": "stdio",
"command": "python3",
"args": ["/path/to/qb-auto/server.py"]
}
}
}