インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Daftra をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
中東のクラウド会計・ERP である Daftra を AI から使えます。請求書、顧客、商品、在庫、総勘定元帳を確認し、請求書、入金、経費、仕入、仕訳を確認のうえで作成できます。
こう聞いてみよう
Daftra のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Daftra をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
Daftra + Cursor
中東のクラウド会計・ERP である Daftra を AI から使えます。請求書、顧客、商品、在庫、総勘定元帳を確認し、請求書、入金、経費、仕入、仕訳を確認のうえで作成できます。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
DAFTRA_SUBDOMAIN, DAFTRA_API_KEY
ステップ 1 — 認証情報を取得
- 管理者として Daftra にサインインします。
- Settings > API > API Keys を開き、Generate API key をクリックします。AnythingMCP などの名前を付けます。
- キーを
DAFTRA_API_KEYに、Daftra のアドレスの最初の部分をDAFTRA_SUBDOMAINに貼り付けます。acme.daftra.comならacmeと入力します。その後、コネクターをインストールします。 - まず
daftra_list_storesを実行します。倉庫の一覧が表示され、キーが有効であることを確認できます。
キーは自分の Daftra アカウントにのみ送信され、そのアカウントの権限で動作します。
対応範囲: 売上請求書、クレジットノートと返品伝票、請求書への入金、顧客と仕入先、商品、商品カテゴリ、在庫移動、仕入請求書、経費、資金口座(現金、銀行口座、ウォレット)、そして仕訳と勘定科目表を含む総勘定元帳です。
まず確認: 請求書、入金、経費、仕訳、仕入、返品、在庫移動は、帳簿と在庫に計上されます。書き込みの前に、AI は変更内容を説明してあなたの承認を待ちます。新しい請求書は下書きのままにしておけます。入金の記録はすでに受け取ったお金を記帳するだけで、誰かに請求するものではありません。3 つの削除ツール(daftra_delete_invoice、daftra_delete_invoice_payment、daftra_delete_expense)はインストール時はオフです。
ID、日付、金額: どのツールも、印字される番号(000123 のような請求書番号 no)ではなく、Daftra の内部 id を使います。AI は一覧ツールで ID を探します。倉庫、資金口座、勘定科目は daftra_list_stores、daftra_list_treasuries、daftra_list_journal_accounts から取得します。日付は YYYY-MM-DD 形式、金額は伝票の通貨で、手動の仕訳は借方合計と貸方合計が一致している必要があります。仕入請求書の明細を変更するとき、AI はすべての明細を送ります。送らなかった明細は削除されることがあるためです。
よくあるエラー: 401 または 403 は、API キーが間違っている、削除されている、または権限がないことを示します。Settings > API > API Keys で新しいキーを発行してください。すべての呼び出しで 404 になる場合は、サブドメインが間違っています。サインインするアドレスの .daftra.com の前の部分です。400 または 422: 必須項目が不足しているか、存在しない ID が指定されています。メッセージに該当箇所が示されます。
クラウドとセルフホスト: どちらもインターネット経由でアカウントの daftra.com サブドメインを呼び出します。それ以外の違いはありません。
このコネクターは、見積書、収入、税金(Daftra の API キーではアクセスできません)、作業指示、予約、スタッフ、工数管理、メモ、添付ファイルには対応していません。
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Cursor にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Cursor は ~/.cursor/mcp.json から MCP サーバーを読み込みます。次のエントリを追加してください:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP の MCP Servers → 対象のサーバー → API keys で MCP API キーを作成し、
YOUR_MCP_API_KEYと置き換えます。 - ファイルを保存し、Cursor を再起動します。
- Cursor → Settings → MCP を開き、
anythingmcpが一覧にあり接続済みであることを確認します。 - チャットを始めましょう。エージェントが
Daftraのツールを呼び出せるようになりました。
利用可能なツール
| Tool | What it does |
|---|---|
daftra_list_invoices | List sales invoices, newest first, each with its client, totals and payment status |
daftra_get_invoice | Get one sales invoice by its internal id with client, line items (InvoiceItem), taxes, payments and totals |
daftra_list_credit_notes | List credit notes issued to clients, newest first, with client and totals |
daftra_list_refund_receipts | List sales refund receipts (returned goods against an invoice), newest first, with client and totals |
daftra_list_invoice_payments | List payments recorded against sales invoices, newest first: invoice id, amount, method, date, treasury and status |
daftra_list_clients | List clients (customers) with their id, business or personal name, contact details and balance |
daftra_get_client | Get one client by its internal id with contact details, addresses and account settings |
daftra_list_suppliers | List suppliers (vendors) with their id, name and contact details |
daftra_get_supplier | Get one supplier by its internal id with contact details and account settings |
daftra_list_products | List products and services with id, name, code, selling and buying prices and stock settings |
daftra_get_product | Get one product by its internal id: prices, taxes, type, stock per warehouse and, for a bundle, its components (ProductBundle) |
daftra_list_product_categories | List the product categories with their ids and names |
daftra_list_stores | List warehouses (stores in Daftra) with their ids and names |
daftra_list_stock_transactions | List stock movements (goods in and out per product and warehouse) with quantity, price, date and source |
daftra_list_purchase_invoices | List purchase invoices from suppliers, newest first, with supplier, totals and payment status |
daftra_get_purchase_invoice | Get one purchase invoice by its internal id with supplier, every line (PurchaseOrderItem) with units and prices, taxes and totals |
daftra_list_expenses | List expenses with amount, date, category, vendor, treasury and accounts |
daftra_list_treasuries | List treasuries: cash boxes, bank accounts and wallets, with id, name, type and currency |
daftra_list_journals | List journal entries of the general ledger, newest first, with date, description, totals and source document |
daftra_get_journal | Get one journal entry by its internal id with all its debit and credit lines (JournalTransaction) and their accounts |
daftra_list_journal_accounts | List the posting accounts of the chart of accounts with id, code, name, parent category (journal_cat_id) and type |
daftra_list_journal_categories | List the parent (summary) accounts of the chart of accounts with id, code, name and their own parent (journal_cat_id, -1 at the top level) |
daftra_create_invoice | Create a sales invoice for a client |
daftra_create_invoice_payment | Record a payment received against a sales invoice: amount, date, method and the treasury it went into |
daftra_create_client | Create a client (customer) with name and contact details |
daftra_update_client | Change fields of an existing client; only the fields you pass are changed |
daftra_create_supplier | Create a supplier (vendor) with name and contact details |
daftra_create_product | Create a product, service or bundle |
daftra_update_product | Change fields of an existing product; only the fields in Product are changed (for example name, product_code, prices, status) |
daftra_create_purchase_invoice | Create a purchase invoice from a supplier: header in PurchaseOrder (supplier_id required) and the lines in PurchaseOrderItem |
daftra_update_purchase_invoice | Update a purchase invoice |
daftra_create_expense | Record an expense: amount, date, vendor, category and the treasury it was paid from |
daftra_update_expense | Change fields of an existing expense, for example the treasury it was paid from, the amount or the note; only the fields you pass are… |
daftra_create_journal | Post a manual journal entry: a header in Journal and two or more lines in JournalTransaction |
daftra_create_journal_account | Add a posting account to the chart of accounts under an existing parent category |
daftra_create_stock_transaction | Record a manual stock movement (goods in or out) for one product in one warehouse, for example to correct a balance |
daftra_create_refund_receipt | Create a sales refund receipt (a return) against an existing invoice: header in RefundReceipt with the original invoice id in… |
daftra_delete_invoice | Delete a sales invoice by its internal id, with its effect on stock and the ledger |
daftra_delete_invoice_payment | Delete a payment recorded against an invoice, by the payment id (not the invoice id) |
daftra_delete_expense | Delete an expense by its internal id, with its ledger entry |
プロンプトの例
- 「先月の売上請求書のうち、まだ未払いのものはどれですか?顧客ごとに未払い額をまとめてください。」
- 「顧客 Al Noor Trading 向けに請求書の下書きを作成してください。オフィスチェア 10 脚、単価 450 SAR、メイン倉庫から出荷します。」
- 「請求書 000123 に対して、本日メインの銀行口座に入金された 4,500 SAR を記録してください。」
- 「メインの現金から小口現金へ 2,000 を移す仕訳を本日付で作成し、保存する前に明細を見せてください。」
FAQ
Cursor の無料プランでカスタム MCP サーバーは使えますか? はい。MCP は Hobby、Pro、Business の各プランで利用できます。
次のステップ
このガイドは役に立ちましたか?