跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Daftra,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。
试试这样问
Daftra 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Daftra、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Daftra + Meta Muse
通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
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 都会说明将要进行的更改,并等待你确认。新发票可以保存为草稿;登记收款只是记录你已经收到的款项,不会向任何人扣款。三个删除工具(daftra_delete_invoice、daftra_delete_invoice_payment 和 daftra_delete_expense)安装时默认关闭。
ID、日期和金额:每个工具使用的都是 Daftra 的内部 id,而不是打印出来的编号(例如发票编号 no 000123);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 — 安装 adapter
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 — 在 Muse 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Muse 以自定义连接器的形式添加远程 MCP 服务器,并通过 OAuth 登录。
- 在 Muse 中打开 Settings → Connectors,选择 Add custom connector。
- 粘贴 MCP 服务器 URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。 - Muse 会打开 AnythingMCP 的登录页面:登录并批准访问。
- 在聊天中,向 Muse 提出需要用到
Daftra的工具的请求。
你也可以在聊天中完成设置,适用于网页版、iOS 和 Android 应用以及 WhatsApp。给 Muse 发送这条消息:
Create a Custom Connector for a new remote MCP server, then connect to it:
Name: AnythingMCP
Transport: remote streamable HTTP
URL: https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID
Auth: OAuth
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Muse 从 Meta 的云端连接,因此 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 |
示例提示
- “上个月的销售发票中哪些还没付款?按客户汇总未付金额。”
- “为客户 Al Noor Trading 创建一张发票草稿:10 把办公椅,每把 450 SAR,从主仓库出货。”
- “为发票 000123 登记一笔 4,500 SAR 的收款,今天已到账主银行账户。”
- “做一笔今天日期的分录,把 2,000 从主现金箱转到备用金,保存前先给我看分录明细。”
FAQ
Muse 在哪些地区可用? Meta 目前在美国和加拿大提供 Muse,可在网页版、iOS 和 Android 应用以及 WhatsApp 中使用。
Meta 会审核这个连接器吗? 不会。Meta 不审核自定义连接器。Muse 只能看到你在 AnythingMCP 中为此 MCP 服务器启用的工具,你也可以随时在 Settings → Connectors 中断开它。
下一步
这份指南对你有帮助吗?