MCP Erpnext logo

MCP Erpnext

Connects AI agents to self-hosted or cloud ERPNext and Frappe instances for business documents, workflows, and interactive views.

Install MCP Erpnext

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-erpnext": {
      "command": "npx",
      "args": [
        "-y",
        "@casys/mcp-erpnext"
      ],
      "env": {
        "ERPNEXT_URL": "YOUR_VALUE_HERE",
        "ERPNEXT_API_KEY": "YOUR_VALUE_HERE",
        "ERPNEXT_API_SECRET": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env ERPNEXT_URL=YOUR_VALUE_HERE --env ERPNEXT_API_KEY=YOUR_VALUE_HERE --env ERPNEXT_API_SECRET=YOUR_VALUE_HERE --transport stdio mcp-erpnext -- npx -y @casys/mcp-erpnext

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 127 tools correctly ().

Overview

mcp-erpnext connects MCP-compatible AI agents to ERPNext and Frappe through API credentials, supporting both self-hosted sites and ERPNext Cloud. Standard mode exposes typed `erpnext_*` tools for documents and workflows across sales, stock, accounting, HR, and projects. An optional Code Mode provides a sandboxed `execute` tool, dashboard composition, reusable snippets, and write confirmations. Reach for it when an agent needs to inspect or operate ERPNext data through a compatible host such as Claude Desktop, Claude Code, or VS Code.

Use cases

  • Query ERPNext sales and inventory records
  • Review accounting, HR, and project documents
  • Inspect invoices and related line items
  • Build KPI, funnel, stock, or profit-and-loss views
  • Operate selected workflows through an MCP client

Key features

  • Typed ERPNext document and workflow tools
  • Self-hosted and Frappe Cloud support
  • Interactive document, invoice, chart, and Kanban viewers
  • Optional QuickJS-backed Code Mode
  • Composable dashboards and saved parameterized snippets
  • API-key authentication over stdio or HTTP

Tools127

What MCP Erpnext lets your agent do. Expand a tool for its parameters.

Verified live~20.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 127 tools this server returned when we ran it; 99 declare their own safety hints.

Can delete or modify data · 8Makes changes · 30Makes network requests · 1Read-only tools · 95
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age284 days
Maintainers1

Observed 2026-12-05 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14h ago via OSV.dev · @casys/mcp-erpnext (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars126Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed127Callable tools this server registers over MCP.

How MCP Erpnext works

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

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Erpnext

mcp-erpnext is an MCP server that connects AI agents to ERPNext and Frappe instances, including self-hosted and Frappe Cloud sites. Its main tools expose typed `erpnext_*` operations for documents and workflows across sales, stock, accounting, HR, and projects, with optional Code Mode for sandboxed execution and dashboards.

Install it through an MCP client by launching `npx -y @casys/mcp-erpnext`. Configure `ERPNEXT_URL`, `ERPNEXT_API_KEY`, and `ERPNEXT_API_SECRET` in the client environment. Claude Desktop, Claude Code, VS Code, and Deno stdio configurations are documented usage options.

Yes, mcp-erpnext works with ERPNext Cloud. Set `ERPNEXT_URL` to the Frappe Cloud site URL and provide an API key and API secret generated in ERPNext. API-key authentication is used for both cloud and self-hosted instances.

Enable Code Mode with the `--mode=code-mode` argument or by setting `ERPNEXT_MODE=code-mode`. The server then exposes an `execute` tool backed by a QuickJS worker sandbox, along with dashboard composition, saved parameterized snippets, and explicit write confirmations.

Yes, mcp-erpnext can run in HTTP mode for shared, always-on access instead of one process per client. HTTP requests are subject to Host and Origin checks, and requests with an Origin must match `MCP_HTTP_ALLOWED_ORIGINS`, except for accepted loopback origins when listening locally.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Erpnext AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-erpnext?style=directory)](https://allmcps.com/mcp/mcp-erpnext)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-erpnext"><img src="https://allmcps.com/api/badge/mcp-erpnext?style=directory" alt="MCP Erpnext on AllMCPs" /></a>