# mcp-erpnext [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Casys-AI/mcp-erpnext  
**GitHub Stars:** 126  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-erpnext

## Description
MCP server for ERPNext and Frappe: sales, stock, accounting, HR and project documents, with interactive viewers.

## Tools
Capabilities this server exposes over MCP:

- **erpnext_account_list** — List Chart of Accounts. Filterable by root_type and is_group. Fields: name, account_name, account_type, root_type, parent_account, is_group. root_type values: Asset, Liability, Income, Expense, Equity.
- **erpnext_ar_aging** — Accounts Receivable Aging — stacked bar showing outstanding invoices by customer, grouped into aging buckets (0-30, 31-60, 61-90, 90+ days). Shows who owes you money and for how long.
- **erpnext_asset_category_list** — List Asset Categories. Fields: name, asset_category_name.
- **erpnext_asset_create** — Create a new Asset record. Requires asset_name, asset_category, company, purchase_date, gross_purchase_amount (net purchase amount before depreciation, using the legacy field name). Supports ERPNext v15 and v16. Set a fixed asset item_code and location as required by ERPNext.
- **erpnext_asset_get** — Get a single Asset by name. Returns full details including depreciation schedule and maintenance logs.
- **erpnext_asset_list** — List Fixed Assets. Filterable by status, asset_category, location, custodian. Fields: name, asset_name, asset_category, status, purchase_date, gross_purchase_amount, net_purchase_amount, current_value, value_after_depreciation, location, custodian. gross_purchase_amount is an alias of net_purchase_amount (the ERPNext v15 field was renamed in v16). current_value is an alias of value_after_depreciation, the book value rather than market value.
- **erpnext_asset_maintenance_get** — Get a single Asset Maintenance record by name. Returns full details including maintenance tasks.
- **erpnext_asset_maintenance_list** — List Asset Maintenance records. Filterable by asset_name, maintenance_status. Fields: name, asset_name, asset_category, maintenance_team, maintenance_status.
- **erpnext_asset_movement_get** — Get a single Asset Movement by name. Returns full details including assets moved.
- **erpnext_asset_movement_list** — List Asset Movements (transfers between locations/custodians). Fields: name, transaction_date, purpose, company.
- **erpnext_attendance_list** — List Attendance records. Filterable by employee, date range. Fields: name, employee, employee_name, attendance_date, status.
- **erpnext_bom_get** — Get a single BOM by name (e.g. BOM-ITEM-00001). Returns full document with raw materials and operations.
- **erpnext_bom_list** — List Bills of Materials (BOM). Filterable by item, is_active, is_default. Fields: name, item, item_name, quantity, uom, is_active, is_default, total_cost.
- **erpnext_buy_capture** — Read-only bounded capture of exact ERPNext commercial documents (Item, BOM, Item Price, Supplier Quotation, Supplier, Price List, UOM, Currency Exchange). Two skipCache reads must agree on modified and the closed projection fingerprint. Returns canonical JSON + SHA-256; does not store CAS, create BOM/RFQ/PO, compute a cost total, or qualify a live ERP. Not a registered purchase capability.
- **erpnext_campaign_list** — List CRM Campaigns. Fields: name, campaign_name, campaign_type, start_date, end_date, description.
- **erpnext_company_create** — Create an ERPNext Company. Requires company_name, abbr, default_currency, country. Prerequisites: Warehouse Type 'Transit' and 'Default' must exist. Use erpnext_doc_create to create them first if needed.
- **erpnext_company_list** — List ERPNext companies. Fields: name, abbr, default_currency, country, domain.
- **erpnext_contact_get** — Get a single Contact by name. Returns all contact details.
- **erpnext_contact_list** — List Contacts. Filterable by company_name, status. Fields: name, first_name, last_name, company_name, email_id, mobile_no, status.
- **erpnext_customer_create** — Create a new Customer. Requires customer_name. Optionally set customer_group, territory, email_id.
- **erpnext_customer_get** — Get a single ERPNext customer by name (ID). Returns all fields including contact details.
- **erpnext_customer_list** — List ERPNext customers. Returns active customers by default. Fields: name, customer_name, customer_group, territory, email_id, disabled.
- **erpnext_customer_update** — Update an existing Customer. Pass only the fields you want to change.
- **erpnext_delivery_note_create** — Create a new Delivery Note. Requires customer and at least one item with item_code, qty. Typically created against a Sales Order.
- **erpnext_delivery_note_get** — Get a single Delivery Note by name (e.g. MAT-DN-00001). Returns full document with delivered items.
- **erpnext_delivery_note_list** — List Delivery Notes. Filterable by customer, status, date range. Fields: name, customer, posting_date, status, total_qty, grand_total.
- **erpnext_doc_assign** — Assign any ERPNext document to one or more users through Frappe's native assignment workflow (per-assignee ToDo, _assign sync, permission sharing, native notifications). Works on any DocType (e.g. 'Task', 'Issue', 'Opportunity'). Idempotent: re-assigning an already-assigned user returns the existing ToDo without re-notifying.
- **erpnext_doc_cancel** — Cancel any ERPNext submitted document (changes status to Cancelled). Applies to submittable DocTypes like Sales Order, Purchase Order, Sales Invoice, etc. Calls frappe.client.cancel via the Frappe method API. Pass expected_modified (the `modified` value you read) to refuse, with DOCUMENT_CHANGED, when the document changed since you read it.
- **erpnext_doc_create** — Create any ERPNext document. Works on any DocType including master data (Company, Item Group, UOM, Territory, Customer Group, Supplier Group, Warehouse Type, etc.). For DocTypes with 'Prompt' naming, include a 'name' field in data. Returns the created document.
- **erpnext_doc_delete** — Delete any ERPNext document. Only Draft documents can usually be deleted. For submitted documents, use cancel first. Works on any DocType.
- **erpnext_doc_get** — Get any ERPNext document by DocType and name. Useful for DocTypes not covered by dedicated tools. Returns the full document with all fields.
- **erpnext_doc_list** — List any ERPNext documents by DocType. Useful for DocTypes not covered by dedicated tools. Supports field selection, filters (as JSON array, including child-table filters), limit/offset pagination, and an optional fresh read. When listing a child DocType directly, pass its parent DocType in 'parent'. Errors read '[erpnext_doc_list] CODE: message. Recovery: ...'.
- **erpnext_doc_submit** — Submit any ERPNext document (changes status from Draft to Submitted). Applies to submittable DocTypes like Sales Order, Purchase Order, Sales Invoice, etc. Calls frappe.client.submit via the Frappe method API. Pass expected_modified (the `modified` value you read) to refuse, with DOCUMENT_CHANGED, when the document changed since you read it.
- **erpnext_doc_unassign** — Remove one user's assignment from any ERPNext document through Frappe's native workflow (closes the user's ToDo and resyncs _assign). Works on any DocType. Pass one user per call. Idempotent: removing a user who is not assigned is a no-op on the Frappe side.
- **erpnext_doc_update** — Update any ERPNext document (partial update). Works on any DocType. Pass doctype (e.g. 'Customer', 'Sales Order'), the document name, and the fields to change. Returns the updated document.
- **erpnext_employee_get** — Get a single Employee by name/ID (e.g. HR-EMP-00001). Returns all fields.
- **erpnext_employee_list** — List Employees. Filterable by department, status. Fields: name, employee_name, designation, department, company, status, date_of_joining.
- **erpnext_expense_claim_create** — Create a new Expense Claim. Requires employee and expenses array. Each expense item maps to the Expense Claim Detail child table.
- **erpnext_expense_claim_list** — List Expense Claims. Filterable by employee, status, approval_status. Fields: name, employee, employee_name, posting_date, total_claimed_amount, status, approval_status.
- **erpnext_file_list** — List the files attached to an ERPNext document. Returns name, size, privacy and URL for each attachment. Pairs with erpnext_file_upload: that one attaches, this one reads back.
- **erpnext_file_upload** — Upload base64-encoded file content and attach it to any ERPNext document. Files are private by default.
- **erpnext_gross_profit** — Gross profit analysis — composed chart showing revenue (bars) vs margin % (line) by item or customer. Uses Sales Invoice Item for revenue and Bin valuation_rate for cost estimation.
- **erpnext_item_create** — Create a new Item (product or service). Requires item_code and item_name. Set is_stock_item=false for service/non-stocked items.
- **erpnext_item_get** — Get a single ERPNext Item by name/item_code. Returns all fields including pricing and stock details.
- **erpnext_item_list** — List ERPNext Items. Returns active items by default. Fields: name, item_code, item_name, item_group, stock_uom, is_stock_item, standard_rate. Filterable by item_group, is_stock_item.
- **erpnext_item_update** — Update an existing Item. Pass only the fields you want to change.
- **erpnext_job_card_get** — Get a single Job Card by name. Returns full document with time logs and material transfers.
- **erpnext_job_card_list** — List Job Cards (production operations tracking). Filterable by work_order, status, operation. Fields: name, work_order, operation, status, for_quantity, total_completed_qty, workstation.
- **erpnext_journal_entry_create** — Create a new Journal Entry. Requires voucher_type and accounts with debit/credit amounts. Total debits must equal total credits.
- **erpnext_journal_entry_get** — Get a single Journal Entry by name (e.g. JV-00001). Returns full document with accounts.
- **erpnext_journal_entry_list** — List Journal Entries. Filterable by date range and voucher_type. Fields: name, voucher_type, posting_date, total_debit, total_credit, remark.
- **erpnext_kanban_get_board** — Get a normalized kanban board for a supported ERPNext DocType. Supports Task, Opportunity, and Issue, with pagination and MCP App metadata.
- **erpnext_kanban_move_card** — Move a kanban card for a supported ERPNext DocType. Returns structured success or business error details for MCP App reconciliation.
- **erpnext_kpi_gross_margin** — KPI card: estimated gross margin % from non-cancelled Sales Orders. Reads all matching rows in fresh pages; optional date_from/date_to filter order dates. Uses base_net_amount in company currency and stock_qty times the current Bin valuation for each item's warehouse and stock unit. Select company when multiple companies match. By default missing costs fail explicitly. Set allow_partial=true to estimate only costed lines when Bin valuations are absent, with excluded revenue and coverage shown separately. Missing fields, failed requests and reads exceeding 60 seconds still fail explicitly. Valuation is current, including for historical order dates; this is an estimate, not accounting gross profit.
- **erpnext_kpi_orders** — KPI card: count of non-cancelled Sales Orders dated this month through today, with delta % vs last month. Complete fresh reads, optionally scoped by company and document currency.
- **erpnext_kpi_outstanding** — KPI card: total outstanding receivables from submitted Sales Invoices with outstanding_amount > 0. Shows count of open invoices. Amounts use the receivable party account currency; mixed currencies require a currency filter. Complete fresh read.
- **erpnext_kpi_overdue** — KPI card: count and total value of overdue Sales Invoices (due_date < today, outstanding_amount > 0, submitted). Amounts use the receivable party account currency; mixed currencies require a currency filter. Complete fresh read.
- **erpnext_kpi_revenue** — KPI card: total Sales Order revenue for the current month, with delta % vs previous month and sparkline of last 6 months. Uses the document currency, with complete fresh reads. Mixed currencies require a currency filter.
- **erpnext_lead_create** — Create a new CRM Lead. Requires lead_name. Optionally set company_name, email_id, mobile_no, source.
- **erpnext_lead_get** — Get a single CRM Lead by name. Returns all lead details including contact info.
- **erpnext_lead_list** — List CRM Leads. Filterable by status, lead_owner. Fields: name, lead_name, company_name, status, lead_owner, email_id, mobile_no.
- **erpnext_leave_application_create** — Create a new Leave Application. Requires employee, leave_type, from_date, to_date. Dates in YYYY-MM-DD format.
- **erpnext_leave_application_get** — Get a single Leave Application by name. Returns full document.
- **erpnext_leave_application_list** — List Leave Applications. Filterable by employee, status, leave_type. Fields: name, employee, employee_name, leave_type, from_date, to_date, status.
- **erpnext_leave_balance** — Get leave balance (allocations) for an employee. Reads all submitted Leave Allocations in fresh pages, with leave_type, total_leaves_allocated, new_leaves_allocated.
- **erpnext_method_call** — Call a whitelisted Frappe method directly (POST or GET /api/method/{method}). Escape hatch for behaviour that is not a plain document write: custom-app @frappe.whitelist methods, validate hooks that reject direct field updates, and GET-only endpoints. Deny-by-default: the method must match an entry in ERPNEXT_METHOD_ALLOWLIST (exact dotted path or 'prefix.*' wildcard), or the call is rejected before it reaches ERPNext. Set ERPNEXT_METHOD_ALLOWLIST=* to allow any method for a fully open session.
- **erpnext_opportunity_get** — Get a single CRM Opportunity by name. Returns full details including items and competitors.
- **erpnext_opportunity_list** — List CRM Opportunities. Filterable by status, opportunity_owner, opportunity_from. Fields: name, opportunity_from, party_name, status, opportunity_amount, currency, probability, opportunity_owner.
- **erpnext_order_breakdown** — Breakdown of Sales Orders by customer (stacked-bar by status) or as a pie chart of totals. type='stacked-bar' → orders stacked by status per customer. type='pie' → total order value per customer as pie. type='donut' → same as pie but with donut hole.
- **erpnext_payment_entry_get** — Get a single Payment Entry by name (e.g. PE-00001). Returns full document including references.
- **erpnext_payment_entry_list** — List Payment Entries. Filterable by payment_type, party_type, date range. Fields: name, payment_type, party_type, party, posting_date, paid_amount, currency, received_amount, paid_from_account_currency, paid_to_account_currency. currency is an alias of paid_from_account_currency and applies to paid_amount. received_amount uses paid_to_account_currency. The party is the source for Receive and destination for Pay. payment_type values: Receive, Pay, Internal Transfer.
- **erpnext_payroll_entry_list** — List Payroll Entries. Filterable by company, status. Fields: name, company, posting_date, payroll_frequency, status.
- **erpnext_price_vs_qty** — Scatter chart: item selling price (X) vs total qty ordered (Y). Each point is an item. Colored by item group if available.
- **erpnext_product_radar** — Radar chart comparing items across multiple dimensions: stock level, stock value, order frequency, and revenue. Pass 2-8 item codes to compare, or none to auto-select top items.
- **erpnext_profit_loss** — Profit & Loss overview — bar chart comparing total income vs total expenses per month from Sales Orders (income) and Purchase Orders (expenses). Shows net profit line. Use type='composed' for bar+line.
- **erpnext_project_create** — Create a new Project. Requires project_name. Optionally set expected_start_date and expected_end_date.
- **erpnext_project_get** — Get a single Project by name. Returns full document including tasks summary.
- **erpnext_project_list** — List Projects. Filterable by status. Fields: name, project_name, status, percent_complete, expected_start_date, expected_end_date, estimated_costing.
- **erpnext_purchase_invoice_get** — Get a single Purchase Invoice by name (e.g. PINV-00001). Returns full document with line items.
- **erpnext_purchase_invoice_list** — List Purchase Invoices (bills from suppliers). Filterable by supplier, status, date range. Fields: name, supplier, posting_date, due_date, status, grand_total, outstanding_amount.
- **erpnext_purchase_order_create** — Create a new Purchase Order. Requires supplier and at least one item with item_code, qty, rate. Optionally set schedule_date (YYYY-MM-DD).
- **erpnext_purchase_order_get** — Get a single Purchase Order by name (e.g. PO-00001). Returns full document with line items.
- **erpnext_purchase_order_list** — List Purchase Orders. Filterable by supplier, status, date range. Fields: name, supplier, transaction_date, schedule_date, status, grand_total, currency.
- **erpnext_purchase_receipt_get** — Get a single Purchase Receipt by name (e.g. MAT-PRE-00001). Returns full document with received items.
- **erpnext_purchase_receipt_list** — List Purchase Receipts (goods received notes). Filterable by supplier, status, date range. Fields: name, supplier, posting_date, status, total_qty, grand_total.
- **erpnext_quotation_create** — Create a new Quotation for a customer or lead. Requires quotation_to (Customer or Lead), party_name, and at least one item.
- **erpnext_quotation_get** — Get a single Quotation by name. Returns full document with line items and terms.
- **erpnext_quotation_list** — List Quotations. Filterable by party_name, status. Fields: name, party_name, transaction_date, status, grand_total.
- **erpnext_revenue_trend** — Sales revenue trend over time. Returns a line chart (or area if type='area') with monthly revenue from Sales Orders. Add group_by='customer' for multi-line per customer. Use type='stacked-area' to stack customers. Uses the Sales Order document currency without conversion; mixed currencies require a currency filter.
- **erpnext_revenue_vs_orders** — Composed chart (bar + line) showing revenue (bars, left axis) vs order count (line, right axis) per customer. Demonstrates dual-axis composed chart.
- **erpnext_salary_slip_get** — Get a single Salary Slip by name/ID. Returns all fields including earnings and deductions.
- **erpnext_salary_slip_list** — List Salary Slips. Filterable by employee, status, date range. Fields: name, employee, employee_name, posting_date, start_date, end_date, gross_pay, net_pay, status.
- **erpnext_sales_chart** — Analyze sales revenue as a chart. group_by='customer' → bar chart of top customers by revenue. group_by='item' → bar chart of top items sold. group_by='status' → donut chart of invoice status breakdown. Reads from Sales Invoice (submitted only by default).
- **erpnext_sales_funnel** — Sales funnel from Lead → Opportunity → Quotation → Sales Order. Shows count and value at each stage with conversion rates between stages.
- **erpnext_sales_invoice_create** — Create a new Sales Invoice. Requires customer and at least one item. On a fresh ERPNext instance, you may also need to set company, selling_price_list, and currency. To generate from a Sales Order, use erpnext_doc_update to set is_return etc.
- **erpnext_sales_invoice_get** — Get a single Sales Invoice by name (e.g. SINV-00001). Returns full document with line items.
- **erpnext_sales_invoice_list** — List Sales Invoices. Filterable by customer, status, date range. Fields: name, customer, posting_date, due_date, status, grand_total, outstanding_amount.
- **erpnext_sales_invoice_submit** — Submit a Draft Sales Invoice (posts it to the ledger, changes status to 'Unpaid'). Once submitted, the invoice is visible to the customer and affects GL. Pass expected_modified (the `modified` value you read) to refuse, with DOCUMENT_CHANGED, when the document changed since you read it.
- **erpnext_sales_order_cancel** — Cancel a submitted Sales Order. Reverses stock reservation. Only works on submitted (non-completed) Sales Orders. Pass expected_modified (the `modified` value you read) to refuse, with DOCUMENT_CHANGED, when the document changed since you read it.
- **erpnext_sales_order_create** — Create a new Sales Order. Requires customer and at least one item with item_code, qty, rate. On a fresh ERPNext instance, you may also need to set company, selling_price_list, and currency.
- **erpnext_sales_order_get** — Get a single Sales Order by name (e.g. SO-00001). Returns full document with line items.
- **erpnext_sales_order_list** — List Sales Orders. Filterable by customer, status, date range. Fields: name, customer, transaction_date, status, grand_total, currency.
- **erpnext_sales_order_submit** — Submit a Draft Sales Order (changes status to 'To Deliver and Bill'). Triggers stock reservation and fulfillment workflow. Pass expected_modified (the `modified` value you read) to refuse, with DOCUMENT_CHANGED, when the document changed since you read it.
- **erpnext_sales_order_update** — Update an existing Sales Order (only in Draft status). Pass only the fields you want to change (e.g. delivery_date, items).
- **erpnext_shipment_get** — Get a single Shipment by name. Returns full shipment details including parcels.
- **erpnext_shipment_list** — List Shipments. Filterable by status, pickup_date range, and carrier. Fields: name, status, pickup_date, carrier, shipment_amount.
- **erpnext_stock_balance** — Get stock balance by item and/or warehouse. Reads from the Bin DocType. Fields: item_code, warehouse, actual_qty, reserved_qty, projected_qty, valuation_rate, stock_value. Filterable by item_code, warehouse.
- **erpnext_stock_chart** — Get stock levels as a bar chart. Shows actual_qty per item (optionally filtered by warehouse). Groups items and returns chart-ready data. Use type='horizontal-bar' for readability with many items.
- **erpnext_stock_entry_create** — Create a new Stock Entry (material issue, receipt, or transfer). Requires stock_entry_type and items with item_code and qty. For Material Issue: set s_warehouse. For Material Receipt: set t_warehouse. For Material Transfer: set both s_warehouse and t_warehouse.
- **erpnext_stock_entry_get** — Get a single Stock Entry by name. Returns full document with item details.
- **erpnext_stock_entry_list** — List Stock Entries (material transfers, receipts, issues). Fields: name, stock_entry_type, posting_date, from_warehouse, to_warehouse, total_amount. Filterable by item_code, stock_entry_type, date range.
- **erpnext_stock_treemap** — Stock value as a treemap. Each rectangle represents an item, sized by stock value. Use group_by='warehouse' to group by warehouse instead.
- **erpnext_supplier_create** — Create a new ERPNext Supplier. Requires supplier_name and supplier_group. Returns the created supplier document.
- **erpnext_supplier_get** — Get a single ERPNext supplier by name (ID). Returns all fields including contact details.
- **erpnext_supplier_list** — List ERPNext suppliers. Returns active suppliers by default. Fields: name, supplier_name, supplier_group, supplier_type, email_id, disabled.
- **erpnext_supplier_quotation_list** — List Supplier Quotations (RFQ responses from suppliers). Filterable by supplier, status. Fields: name, supplier, transaction_date, status, grand_total.
- **erpnext_task_create** — Create a new Task in a project. Requires project and subject. Dates in YYYY-MM-DD format. Use assign_to for Frappe's native assignment workflow; native notifications are sent to assigned users.
- **erpnext_task_get** — Get a single Task by name. Returns full document including description and dependencies.
- **erpnext_task_list** — List Tasks. Filterable by project, status, priority. Fields: name, subject, project, status, priority, exp_start_date, exp_end_date, progress.
- **erpnext_task_update** — Update an existing Task. Pass only the fields you want to change. Commonly used to change status, progress, or dates. Use assign_to for Frappe's native assignment workflow; native notifications are sent to assigned users.
- **erpnext_timesheet_get** — Get a single Timesheet by name. Returns full document with time log details.
- **erpnext_timesheet_list** — List Timesheets. Filterable by employee, project. Fields: name, employee, start_date, end_date, status, total_hours.
- **erpnext_user_list** — List assignable ERPNext users. Defaults to enabled System Users, excluding Administrator and Guest — the population valid for document assignment (erpnext_doc_assign, task assign_to). Fields: name (email), full_name, enabled.
- **erpnext_warehouse_list** — List ERPNext Warehouses. Fields: name, warehouse_name, warehouse_type, company.
- **erpnext_work_order_create** — Create a new Work Order for manufacturing. Requires production_item, bom_no, and qty. Optionally set planned_start_date and wip_warehouse.
- **erpnext_work_order_get** — Get a single Work Order by name (e.g. MFG-WO-00001). Returns full document with operations and materials.
- **erpnext_work_order_list** — List Work Orders. Filterable by production_item, status, date range. Fields: name, production_item, qty, produced_qty, status, planned_start_date, planned_end_date.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-erpnext": {
    "command": "npx",
    "args": ["-y","@casys/mcp-erpnext"],
    "env": {
      "ERPNEXT_URL": "",
      "ERPNEXT_API_KEY": "",
      "ERPNEXT_API_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `ERPNEXT_URL`, `ERPNEXT_API_KEY`, `ERPNEXT_API_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-erpnext does

mcp-erpnext gives MCP-compatible AI agents access to ERPNext and Frappe instances. It covers business records and workflows across sales, inventory, accounting, human resources, and projects. The connection works with both self-hosted deployments and sites hosted on Frappe Cloud.

Results can be rendered as interactive views inside the MCP host rather than returned only as plain tool output. Supported viewer patterns include sortable document lists with filters and inline details, invoice views with line items and actions, sales-funnel views, KPI cards, charts, stock balances, and read-write Kanban boards for records such as tasks, opportunities, and issues.

## How it works

The default Standard mode exposes a typed catalog of `erpnext_*` tools directly to the MCP client. This mode is intended for broad compatibility with MCP hosts. It can be run over standard input/output or deployed as an HTTP server for shared, always-on access.

Code Mode is optional. Enable it with `--mode=code-mode` or `ERPNEXT_MODE=code-mode`; it replaces the direct catalog with an `execute` tool backed by a QuickJS worker sandbox. This mode supports multi-panel dashboard composition, saved parameterized snippets, and explicit confirmation before writes. An optional ERPNext Code Mode skill helps an LLM discover operations and reuse snippets across conversations.

## Setup and configuration

Create an API key and API secret in ERPNext under My Settings and API Access. Configure the MCP client to launch the package with `npx -y @casys/mcp-erpnext`, then provide these environment variables:

- `ERPNEXT_URL`: the self-hosted or Frappe Cloud site URL
- `ERPNEXT_API_KEY`: the ERPNext API key
- `ERPNEXT_API_SECRET`: the corresponding API secret

The same API-key authentication approach applies to self-hosted and cloud instances. VS Code uses a `.vscode/mcp.json` entry, while Claude Desktop and Claude Code can use their MCP server configuration. A Deno stdio setup is also supported. HTTP deployment is available when clients should connect to a shared server instead of starting a separate process.

## Tools and capabilities

- Access ERPNext and Frappe documents through typed `erpnext_*` tools
- Work with sales, stock, accounting, HR, and project records
- Run document workflows and supported record actions
- Render document lists, invoices, funnels, KPIs, charts, and stock views
- Use read-write Kanban views for selected DocTypes
- Compose dashboards and save parameterized snippets in Code Mode
- Require explicit confirmation for Code Mode writes

_Full upstream README: https://allmcps.com/mcp/mcp-erpnext/readme_

