Daftiq AI · MCP server
Daftiq MCP server: let your own AI app read your ERP data
The Daftiq MCP server lets an AI app that supports the Model Context Protocol, read your data. You create a key in Settings → Integrations → MCP server and add it to the app. The key is read-only: the app can list invoices, customers, products, bills, expenses and headcount, but can never change anything. Every call is logged.
Last updated:
- Access
- Read-only, 9 tools
- Key
- Created in Settings, shown once, revocable at any time
- Acts as
- The user who created the key, with that user's permissions
- Logged
- Every tool call in the audit log
- Plan
- Premium (see pricing)
What can an AI app read through the Daftiq MCP server?
| Tool | What it returns |
|---|---|
| Company overview | Revenue for a period with the previous period, today's sales, receivables and overdue invoices, payables, spending in the last 30 days and cash in bank |
| List sales invoices | Invoices newest first, filtered by status, customer and date, with the count and totals |
| Get a sales invoice | One invoice by number or id, with its lines and payments |
| Customers who owe the most | Customers ranked by what they still owe, with overdue invoices and the oldest due date |
| List customers | Contact details, payment terms, credit limit and balance owed |
| List products | Active products and services with price, cost and stock on hand; can list only low or out-of-stock items |
| List purchase bills | Vendor bills newest first, filtered by status, vendor and date |
| Expenses summary | Expenses for a date range, totalled by category |
| Headcount | Employees by department, and how many joined in the last 30 days |
Money comes with your currency code, for example PKR, and dates as YYYY-MM-DD.
How do I connect Claude Desktop or another MCP app to Daftiq?
- Make sure your company is on the Premium plan. Without it, the MCP server panel asks you to upgrade to Premium.
- Sign in as the owner or a user whose role may manage MCP keys, and open Settings → Integrations → MCP server.
- Enter a Key name, for example the app you will use it in, such as "Claude Desktop", and click Create key.
- Copy the key now. It is shown only once; click I have copied it. If you lose it, revoke it and create a new one.
- Under How to connect, copy the Endpoint URL and the setup snippet: HTTP configuration for apps that support remote MCP servers, or stdio configuration with the mcp-remote bridge (needs Node.js) for apps that only support local servers.
- Paste it into your AI app and send the key as a Bearer token. Then ask, for example, "Which customers owe us the most?".
Is it safe to give an AI app access to my ERP?
- Read-only: the tools look data up and never create, change or delete anything.
- One company, one user: a key sees only its creator's company and only what that user may see in Daftiq, with the same roles and modules.
- Revoke at any time: apps using a revoked key lose access immediately. The key list shows when each key was Created and Last used.
- Audit: every tool call is written to the audit log as an "MCP tool call", whether it succeeded, was refused or failed.
- Limits: calls are rate limited per key and per address, and a call without a valid key is refused.
Should I use the MCP server, Daftiq AI or Webhooks?
Use the MCP server when your team already works in an outside AI app and wants it to read Daftiq figures. Use Daftiq AI when you want an assistant that also drafts work, reads documents and proposes actions for approval inside Daftiq. Use Webhooks when another system should be told the moment a record is created in Daftiq.
The data the MCP tools read comes from your everyday work in Sales, Purchases, Accounting and HRM. Developers can find the endpoint, protocol versions and example calls in the MCP developer docs.
Frequently asked questions
Which AI apps work with the Daftiq MCP server?
Any app that supports MCP. Apps that connect to remote (HTTP) MCP servers use the endpoint directly; apps that only support local (stdio) servers use the mcp-remote bridge shown in the setup snippets.
Can the AI app create an invoice through MCP?
No. A company MCP key is read-only. To have AI prepare work, use Daftiq AI, where changes wait for approval.
Who can create MCP keys?
The company owner, and users whose role has permission to manage MCP keys.
What happens if a key leaks?
Revoke it in Settings → Integrations → MCP server. Apps using it lose access at once. Then create a new key.
Can I see what the AI app looked at?
Yes. Each tool call is recorded in the audit log with the tool name and whether it succeeded.
In this group: Daftiq AI
- AI Approval Queue: AI Prepares, You Approve
- Daftiq AI App: An AI Agent That Works as You
- Ask Daftiq AI: Business Answers in Urdu or English
- AI Command Center: Business Alerts Every 15 Min
- AI Role Agents: Finance, Sales, HR, Procurement
- AI Document Inbox: Bills and Receipts to Drafts
- AI Management Report: Monthly P&L Commentary
- AI Compliance Checklist: NTN, Deadlines, Closing
- MCP Server: Connect Claude or ChatGPT to Your ERP
- AI Writing Assistant and AI Provider Settings
Ask your own AI app about your business
Create an MCP key in Settings and follow the developer docs. The MCP server comes with the Premium plan: see pricing. See all Daftiq AI features and the Daftiq AI module.