ERPSmith: an AI dev copilot for ERPNext (free, MIT, Frappe v15 and v16)

Hi all,

I’ve released ERPSmith, a Frappe app that lets Claude (or any MCP client) build and debug customizations on your site, while you approve every change.

What it does

  • 59 tools: DocTypes and fields, client and server scripts, workflows, permissions, print formats, reports, notifications, dashboard charts, plus debug-and-fix tools for permissions, data integrity, broken links and stuck documents.
  • Plan gate: every change waits for a plan you’ve read and approved. Plans stay in Desk as an audit trail.
  • Runs as the signed-in user, so roles and permissions apply. Sign-in is OAuth: add https://<your-site>/api/method/erpsmith.mcp.handle as a custom connector in Claude and that’s it, no API keys.
  • Memory: 96 curated notes on the server-script sandbox (what’s blocked, what to use instead), patterns and known fixes, searchable by meaning. It also indexes your site’s own customizations.

Privacy: everything stays in your site’s database. No telemetry, no hosted service.

Install
bench get-app GitHub - abhinavprakash1992/erpsmith: AI dev copilot for ERPNext: build and debug customizations from Claude over MCP · GitHub
bench --site your-site install-app erpsmith
bench --site your-site migrate

Docs, privacy and terms: https://erpsmith.vercel.app
Source and issues: GitHub - abhinavprakash1992/erpsmith: AI dev copilot for ERPNext: build and debug customizations from Claude over MCP · GitHub

I’d love to hear what breaks on your sites, especially on v16 and on sites with lots of custom scripts.

Not affiliated with or endorsed by Frappe Technologies.

ERPSmith is a free, open-source Frappe app (MIT) that connects Claude, or any MCP client, to your site. You describe the problem in plain words. ERPSmith looks into your site, finds the cause, shows you the fix, and makes the change only after you say yes. Works on Frappe v15 and v16.

Fix things that are broken

  • Server script throwing an error?
    “My server script on Sales Invoice fails on submit. Fix it.”
    It reads the script and the error log, finds the cause (often something the sandbox blocks, like an import), and gives you corrected code to approve.

  • Client script not working?
    “The client script on Customer isn’t running.”
    It checks for the usual mistakes (missing frappe.ui.form.on, a broken bracket, old APIs) and fixes them.

  • Documents stuck in a workflow?
    “Some Purchase Orders are stuck in a state that doesn’t exist anymore.”
    It finds them and moves them to a valid state, noting the change in each document’s timeline.

  • Broken links or missing values in records?
    “Check my Items for links to deleted records.”
    It scans the records and fixes or clears the bad values, with normal validation.

  • Permission problems?
    “Why can’t Accounts User open Payment Entry?”
    It shows which permission is missing and can add it.

  • Something failing in the background?
    “What errors happened on my site today?” or “Are my scheduled jobs failing?”

  • Not sure what’s wrong?
    “Run a health check on Sales Order.” It checks the fields, scripts, permissions and workflow together.

Build new things

  • “Add a Region dropdown to Customer.”
  • “Create an approval workflow for Purchase Orders: Draft → Pending → Approved / Rejected.”
  • “Email the sales manager when a Sales Order over ₹1,00,000 is submitted.”
  • “Make a print format for Delivery Note with our logo.”
  • “Create a report of overdue invoices by customer.”
  • “Add a chart of Sales Orders per month.”

Why it’s safe

  • Before changing anything, it tells you exactly what it will change. Nothing happens until you approve.
  • It can only do what your user is allowed to do in ERPNext. Tip: create a separate user for the AI with only the roles you want it to have.
  • If a change fails partway, it’s rolled back.
  • Everything stays in your site’s database. No telemetry, no hosted service.

The server script tools need server scripts enabled on your bench (on Frappe Cloud, that means a private bench).

I’d love to hear what breaks on your sites, especially on v16 and on sites with lots of custom scripts.

Not affiliated with or endorsed by Frappe Technologies.