Developers · Model Context Protocol

Daftiq MCP server: connect an AI app to your ERP data

Connect Claude, ChatGPT or any MCP client to Daftiq: endpoint https://daftiq.com/mcp, a Bearer key from Settings, and read-only tools for sales, stock, customers, bills and staff.

How to connect

  1. Have a company on the Premium plan (the MCP server is part of Premium; Daftiq AI itself is also on Standard).
  2. Sign in to Daftiq as the company owner or a user whose role may manage MCP keys, and open Settings → Integrations → MCP server.
  3. Create a key and copy it: it is shown only once. Each key acts as the user who created it, with that user's permissions.
  4. In your AI app, add a remote MCP server (Streamable HTTP) with the endpoint https://daftiq.com/mcp and send the key as "Authorization: Bearer <key>".
  5. Ask a question, for example "Which customers owe us the most?". Revoke the key in the same settings screen at any time.

Tools

Every tool is read-only. A key sees only the tools its user's role and the company's modules allow.

ToolWhat it returns
company_overview
Company overview
Key figures for a period: revenue (with the previous period), today's sales, receivables and overdue invoices, payables, spending in the last 30 days and cash in bank accounts.
list_sales_invoices
List sales invoices
Sales invoices, newest first, filtered by status, customer and invoice date, with the count and totals of all matching invoices.
get_sales_invoice
Get a sales invoice
One sales invoice by its number or id, with its lines and the payments applied to it.
top_unpaid_customers
Customers who owe the most
Customers ranked by the amount they still owe, with their open and overdue invoices and the oldest due date.
list_customers
List customers
Customers with contact details, payment terms, credit limit and the balance they owe on open invoices.
list_products
List products
Active products and services with sale price, cost and stock on hand; can list only items running low or out of stock.
list_purchase_bills
List purchase bills
Purchase bills (vendor invoices), newest first, filtered by status, vendor and bill date, with the count and totals.
expenses_summary
Expenses summary
Recorded expenses for a date range (default: the last 30 days), totalled by category.
hrm_headcount
Headcount
Number of employees by department, and how many joined in the last 30 days.

Rules

Example request

POST /mcp HTTP/1.1
Host: daftiq.com
Authorization: Bearer <key>
Content-Type: application/json
Accept: application/json, text/event-stream

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"top_unpaid_customers","arguments":{"limit":5}}}

For agents

Last updated: