概要
中東のクラウド会計・ERP である Daftra を AI から使えます。請求書、顧客、商品、在庫、総勘定元帳を確認し、請求書、入金、経費、仕入、仕訳を確認のうえで作成できます。
ガイド付きセットアップ
Daftra を Microsoft Copilot に 2 分で接続
AnythingMCP Cloud の無料トライアルを始め、ガイド付きセットアップで Daftra を接続して、MCP URL を Microsoft Copilot に追加します。コードもサーバーの運用も不要です。
クレジットカード不要 · 7日間の試用 · セルフホストの選択肢あり
こう聞いてみよう
Daftra のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Daftra をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
Daftra + Microsoft Copilot
中東のクラウド会計・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 — Microsoft Copilot にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Microsoft Copilot は、Copilot Studio で作成したエージェントを通じて MCP サーバーを使います。AnythingMCP をツールとしてエージェントに追加し、そのエージェントを Microsoft 365 Copilot と Teams に公開します。Copilot Studio は Microsoft のクラウドから Streamable HTTP で接続し、AnythingMCP はこれに対応しています。
- Copilot Studio でエージェントを開き(または新規作成し)、Tools で Add a tool → New tool → Model Context Protocol を選びます。
- Server name(例:
AnythingMCP)、コネクタでできることを説明する Server description、Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDを入力します。Copilot Studio はこの説明をもとに、いつサーバーを呼び出すかを判断します。 - 認証で API key を選び、Type を Header、ヘッダー名を
X-API-Keyにして Create を選びます。 - Add tool で Create a new connection を選び、AnythingMCP の MCP API キー(MCP Servers → 対象のサーバー → API keys)を貼り付けて Add to agent を選びます。
- エージェントの Test ウィンドウで試します。
Daftraのツールが必要になる依頼をしてみましょう。 - Publish を選び、Channels → Microsoft 365 and Microsoft Teams で Make agent available in Microsoft Copilot を選択したまま Add channel を選びます。See agent in Teams で自分用にインストールされます。Microsoft 365 Copilot では @ を入力してエージェントを選びます。
ユーザーごとにサインインさせたい場合は、API キーの代わりに OAuth 2.0 → Dynamic discovery を選びます。各ユーザーは、エージェントが初めて呼び出すときに AnythingMCP にサインインします。
セルフホストの場合は、https://cloud.anythingmcp.com の代わりにインスタンスの公開 HTTPS アドレスを使ってください。Copilot Studio は Microsoft のクラウドから接続するため、localhost は使えません。
利用可能なツール
| 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 |
daftra_set_invoice_draft_status | Issue a draft sales invoice (draft_status 0: it gets its official sequential number and posts its payment journals; with e-invoicing it is… |
daftra_update_journal | Edit a manual journal entry: header in Journal and the COMPLETE set of lines in JournalTransaction (a line with id is updated, a line… |
daftra_create_journal_category | Add a category (a folder of the chart of accounts that groups sub-categories and posting accounts) |
daftra_create_treasury | Add a treasury (cash box) or bank account that payments and expenses can be paid from or into |
daftra_delete_journal | Delete a manual journal entry by its internal id |
daftra_list_estimates | List estimates (quotations, عروض الأسعار), newest first, each with its client and totals |
daftra_get_estimate | Get one estimate (quotation) by its internal id with client, line items, taxes, documents and totals |
daftra_create_estimate | Create an estimate (quotation, عرض سعر) for a client: the same header and lines as an invoice, in Invoice.client_id and InvoiceItem |
プロンプトの例
- 「先月の売上請求書のうち、まだ未払いのものはどれですか?顧客ごとに未払い額をまとめてください。」
- 「顧客 Al Noor Trading 向けに請求書の下書きを作成してください。オフィスチェア 10 脚、単価 450 SAR、メイン倉庫から出荷します。」
- 「請求書 000123 に対して、本日メインの銀行口座に入金された 4,500 SAR を記録してください。」
- 「メインの現金から小口現金へ 2,000 を移す仕訳を本日付で作成し、保存する前に明細を見せてください。」
FAQ
どの Copilot が対象ですか? 職場で使う Microsoft 365 Copilot で、Copilot Studio のエージェントを通じて利用します。個人アカウント向けの Microsoft Copilot アプリでは、独自の MCP サーバーを追加できません。
何が必要ですか? エージェントを作成するために、Copilot Studio を利用できる職場アカウント(ライセンスまたは試用版)が必要です。Microsoft 365 Copilot や Teams でエージェントを使う人には、エージェントへのアクセス権が必要です。共有するか、管理者に組織向けに公開してもらってください。組織が Power Platform コネクタにデータ ポリシーを適用している場合は、MCP サーバーにも適用されます。
エージェントがツールを呼び出しません。 ヘッダー名が正確に X-API-Key であること、キーが URL と同じ MCP サーバーのものであることを確認し、Server description を具体的に書いてください。Copilot Studio はこの説明をもとにサーバーを呼び出すかどうかを判断します。変更のたびにエージェントを再公開し、開いているチャットでは "start over" と入力すると新しいバージョンになります。
次のステップ
このガイドは役に立ちましたか?