连接器指南阅读约 5 分钟40 个 MCP 工具7 种语言

Daftra 接入 MCP:从任意 AI 代理处理 Daftra 账务

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Daftra

Daftra

Work with Daftra, the cloud accounting and ERP of the Middle East, from your AI: look up invoices, clients, products, stock and the ledger, and create invoices, payments, expenses, purchases and journal entries with confirmation.

个工具

40

区域

INTL

类别

会计

身份验证

API Key

所需环境变量

DAFTRA_SUBDOMAINDAFTRA_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 Daftra,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

试试这样问

Daftra 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Daftra · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Daftra、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Daftra

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

设置

  1. 以管理员身份登录 Daftra。
  2. 打开 Settings > API > API Keys,点击 Generate API key,起一个名字,例如 AnythingMCP。
  3. 将密钥粘贴到 DAFTRA_API_KEY,把 Daftra 地址的第一部分填入 DAFTRA_SUBDOMAIN:对于 acme.daftra.com,填写 acme。然后安装连接器。
  4. 先运行 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 密钥无法访问它们),也不涉及工单、预约、员工、工时记录、备注和附件。

前提条件: DAFTRA_SUBDOMAIN, DAFTRA_API_KEY

本地安装连接器

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

打开 http://localhost:3000/connectors/store,选择 Daftra 并填入前提条件中列出的环境变量。

可用工具

ToolWhat it does
daftra_list_invoicesList sales invoices, newest first, each with its client, totals and payment status
daftra_get_invoiceGet one sales invoice by its internal id with client, line items (InvoiceItem), taxes, payments and totals
daftra_list_credit_notesList credit notes issued to clients, newest first, with client and totals
daftra_list_refund_receiptsList sales refund receipts (returned goods against an invoice), newest first, with client and totals
daftra_list_invoice_paymentsList payments recorded against sales invoices, newest first: invoice id, amount, method, date, treasury and status
daftra_list_clientsList clients (customers) with their id, business or personal name, contact details and balance
daftra_get_clientGet one client by its internal id with contact details, addresses and account settings
daftra_list_suppliersList suppliers (vendors) with their id, name and contact details
daftra_get_supplierGet one supplier by its internal id with contact details and account settings
daftra_list_productsList products and services with id, name, code, selling and buying prices and stock settings
daftra_get_productGet one product by its internal id: prices, taxes, type, stock per warehouse and, for a bundle, its components (ProductBundle)
daftra_list_product_categoriesList the product categories with their ids and names
daftra_list_storesList warehouses (stores in Daftra) with their ids and names
daftra_list_stock_transactionsList stock movements (goods in and out per product and warehouse) with quantity, price, date and source
daftra_list_purchase_invoicesList purchase invoices from suppliers, newest first, with supplier, totals and payment status
daftra_get_purchase_invoiceGet one purchase invoice by its internal id with supplier, every line (PurchaseOrderItem) with units and prices, taxes and totals
daftra_list_expensesList expenses with amount, date, category, vendor, treasury and accounts
daftra_list_treasuriesList treasuries: cash boxes, bank accounts and wallets, with id, name, type and currency
daftra_list_journalsList journal entries of the general ledger, newest first, with date, description, totals and source document
daftra_get_journalGet one journal entry by its internal id with all its debit and credit lines (JournalTransaction) and their accounts
daftra_list_journal_accountsList the posting accounts of the chart of accounts with id, code, name, parent category (journal_cat_id) and type
daftra_list_journal_categoriesList 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_invoiceCreate a sales invoice for a client
daftra_create_invoice_paymentRecord a payment received against a sales invoice: amount, date, method and the treasury it went into
daftra_create_clientCreate a client (customer) with name and contact details
daftra_update_clientChange fields of an existing client; only the fields you pass are changed
daftra_create_supplierCreate a supplier (vendor) with name and contact details
daftra_create_productCreate a product, service or bundle
daftra_update_productChange fields of an existing product; only the fields in Product are changed (for example name, product_code, prices, status)
daftra_create_purchase_invoiceCreate a purchase invoice from a supplier: header in PurchaseOrder (supplier_id required) and the lines in PurchaseOrderItem
daftra_update_purchase_invoiceUpdate a purchase invoice
daftra_create_expenseRecord an expense: amount, date, vendor, category and the treasury it was paid from
daftra_update_expenseChange 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_journalPost a manual journal entry: a header in Journal and two or more lines in JournalTransaction
daftra_create_journal_accountAdd a posting account to the chart of accounts under an existing parent category
daftra_create_stock_transactionRecord a manual stock movement (goods in or out) for one product in one warehouse, for example to correct a balance
daftra_create_refund_receiptCreate a sales refund receipt (a return) against an existing invoice: header in RefundReceipt with the original invoice id in…
daftra_delete_invoiceDelete a sales invoice by its internal id, with its effect on stock and the ledger
daftra_delete_invoice_paymentDelete a payment recorded against an invoice, by the payment id (not the invoice id)
daftra_delete_expenseDelete an expense by its internal id, with its ledger entry

示例提示

  • “上个月的销售发票中哪些还没付款?按客户汇总未付金额。”
  • “为客户 Al Noor Trading 创建一张发票草稿:10 把办公椅,每把 450 SAR,从主仓库出货。”
  • “为发票 000123 登记一笔 4,500 SAR 的收款,今天已到账主银行账户。”
  • “做一笔今天日期的分录,把 2,000 从主现金箱转到备用金,保存前先给我看分录明细。”

下一步

这份指南对你有帮助吗?

你的 Daftra 智能体只差一次点击。

安装连接器,粘贴密钥,向你的 AI 客户端提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 Daftra 连接到 ChatGPT

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

连接器

如何通过 MCP 将 Daftra 连接到 Claude

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

连接器

如何通过 MCP 将 Daftra 连接到 Cursor

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

连接器

如何通过 MCP 将 Daftra 连接到 Gemini

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

连接器

如何通过 MCP 将 Daftra 连接到 Meta Muse

通过你的 AI 使用 Daftra,这款面向中东地区的云端会计和 ERP 系统:查询发票、客户、产品、库存和总账,并在确认后创建发票、收款、费用、采购和会计分录。

连接器

Avito 接入 MCP:在任意 AI 智能体中管理 Avito 广告、价格和数据

让你的 AI 使用你的 Avito 企业账户:列出广告并修改价格,读取浏览、联系和来电统计,检查自动上传 (autoload) 的上传记录及其错误、Feed 格式和钱包,并读取 Avito Messenger 聊天。发送消息和修改自动上传设置为可选功能,默认关闭。