by Casys-AI
Let AI agents operate your ERPNext — documents, workflows, and interactive viewers
# Add to your Claude Code skills
git clone https://github.com/Casys-AI/mcp-erpnextmcp-erpnext is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Casys-AI. Let AI agents operate your ERPNext — documents, workflows, and interactive viewers. It has 126 GitHub stars.
mcp-erpnext's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Casys-AI/mcp-erpnext" and add it to your Claude Code skills directory (see the Installation section above).
mcp-erpnext is primarily written in TypeScript. It is open-source under Casys-AI on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-erpnext against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
English | 繁體中文
Let any MCP-compatible AI agent operate your ERPNext / Frappe instance — documents, workflows, and interactive viewers inside the host (Claude Desktop, Claude Code, VS Code Copilot, or custom).
Works with self-hosted and ERPNext Cloud (frappe.cloud) instances.
Built on @mcpview/server — the MCP server framework (concurrency, auth, MCP Apps, observability) that powers this project. See mcpview.dev.
Two server modes — Standard (default) and opt-in Code Mode. By default,
@casys/mcp-erpnextexposes the full typederpnext_*tool catalog directly (--mode=standard), fully backwards-compatible with every MCP host. To opt in to Code Mode, pass--mode=code-mode(or setERPNEXT_MODE=code-mode) to expose a singleexecutetool backed by a QuickJS worker sandbox, Compose multi-panel dashboards, saved parameterized snippets, and explicit write confirmations.Both npm and JSR include the optional ERPNext Code Mode skill to teach your LLM how to discover operations, compose linked dashboards, and save or replay snippets across chats. See Code Mode (opt-in) and how to install the skill.
Interactive viewers rendered inside an MCP host, driven entirely by tool results.
See the latest release for the current version's highlights and the CHANGELOG for the full release history.
Organised by what you are doing, following Diátaxis:
| Learning — never used this before | Your first tool call — from nothing to a working response in four steps |
| Doing — you have a specific goal | Seed a blank ERPNext instance · Run the HTTP server · Set up OAuth · Migrate from 3.0 to 3.1 · Migrate to 2026-07-28 · Test the viewers without credentials |
| Looking something up | Tools · Environment variables · DocType coverage |
| Understanding why | Concepts — link resolution, transports, MRTR, and which cache does what · ERPNext quirks |
Generate API credentials in ERPNext:
API Key and API Secret{
"mcpServers": {
"erpnext": {
"command": "npx",
"args": ["-y", "@casys/mcp-erpnext"],
"env": {
"ERPNEXT_URL": "http://localhost:8000",
"ERPNEXT_API_KEY": "your-api-key",
"ERPNEXT_API_SECRET": "your-api-secret"
}
}
}
}
Works with ERPNext Cloud — set
ERPNEXT_URLto your Frappe Cloud URL (e.g.https://mycompany.erpnext.comorhttps://mysite.frappe.cloud). API key authentication works the same way on self-hosted and cloud instances.
Add to .vscode/mcp.json:
{
"servers": {
"erpnext": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@casys/mcp-erpnext"],
"env": {
"ERPNEXT_URL": "http://localhost:8000",
"ERPNEXT_API_KEY": "your-api-key",
"ERPNEXT_API_SECRET": "your-api-secret"
}
}
}
}
{
"mcpServers": {
"erpnext": {
"command": "deno",
"args": ["run", "--allow-all", "server.ts"],
"env": {
"ERPNEXT_URL": "http://localhost:8000",
"ERPNEXT_API_KEY": "your-api-key",
"ERPNEXT_API_SECRET": "your-api-secret"
}
}
}
}
For a shared, always-on server rather than one process per client: how to run the HTTP server. Note it is breaking for pre-2026 HTTP clients in 3.0.0.
Standard mode (--mode=standard) is the default and exposes the full
erpnext_* tool catalog with zero sandbox startup overhead.
Opt in to Code Mode with --mode=code-mode (or ERPNEXT_MODE=code-mode in
env):
{
"mcpServers": {
"erpnext": {
"command": "npx",
"args": ["-y", "@casys/mcp-erpnext", "--mode=code-mode"],
"env": {
"ERPNEXT_URL": "http://localhost:8000",
"ERPNEXT_API_KEY": "your-api-key",
"ERPNEXT_API_SECRET": "your-api-secret"
}
}
}
}
In Code Mode, the server exposes a single execute tool to the LLM. Programs
run inside an isolated QuickJS worker (@mcpview/compose), can compose linked
multi-panel dashboards (erp.panel / erp.sync), save and replay parameterized
snippets across chats (ask “Save this for Monday”, “Show my snippets”, or “Run
my Monday invoice list at €3,000”), and require explicit user confirmation
before writing to ERPNext.
Both npm and JSR include the optional skill at
skills/erpnext-code-mode/SKILL.md.
ChatGPT web. In Plugins, choose Add custom MCP server, enter your HTTP
server's HTTPS /mcp URL (started with --mode=code-mode or
ERPNEXT_MODE=code-mode), then create and install the plugin. See
ChatGPT MCP connection setup.
In the Skills tab, choose Create → Upload from your computer and import
the packaged SKILL.md or erpnext-code-mode-skill.zip