MCP Server for ERPNext — 120 tools to connect AI agents to your ERP

Hey everyone,

I built an MCP (Model Context Protocol) server for ERPNext that connects any AI agent (Claude, GPT, or custom) directly to your ERPNext instance via the standard Frappe REST API.

Demo video

What it does

  • 120 tools across 13 categories (Sales, Inventory, Purchasing, Accounting, HR, CRM, Manufacturing, Projects, Assets, Delivery, Analytics, Setup, Generic CRUD)
  • 7 interactive UI viewers (charts, KPIs, kanban pipeline, invoices, stock balance, sales funnel)
  • 19 analytics tools with built-in chart rendering
  • Works with any ERPNext instance via API key authentication
  • Supports stdio (Claude Desktop, Claude Code) and HTTP mode
  • Category filtering — load only what you need: --categories=sales,inventory
  • Zero dependencies — single self-contained npm bundle

Install (Claude Desktop / Claude Code)

{
  "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"
      }
    }
  }
}

Also available on JSR for Deno.

Some things you can do out of the box

  • “Show me all overdue invoices” → gets the data + renders a chart
  • “Create a sales order for customer X with items Y and Z” → done
  • “What’s my stock level for item ABC?” → stock balance with color-coded badges
  • “Show me revenue trend by month” → interactive line chart
  • “Create a quotation and email it” → creates the doc in ERPNext

Links

Feedback welcome. MIT licensed.

4 Likes

Hi, I made a mistake for the github repo link in the original post, here is the good one : Casys-AI/mcp-erpnext: MCP server for ERPNext / Frappe ERP — 97 tools, 11 categories, interactive UI viewers

1 Like

Finally! Thank you for the contribution, and welcome to the community.

1 Like

@Casys.ai Looks great :+1:

Do you think you can raise a PR to add it to GitHub - gavindsouza/awesome-frappe: A curated list of awesome things related to the Frappe Framework

1 Like