Erpnext MCP Server

A Model Context Protocol server

Local serverstdioTypeScript

What is the Erpnext MCP Server?

A Model Context Protocol server

What the server does

This is a TypeScript-based MCP server that provides integration with ERPNext/Frappe API. It enables AI assistants to interact with ERPNext data and functionality through the Model Context Protocol.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_doctypesGet a list of all available DocTypes
get_doctype_fieldsGet fields list for a specific DocType
get_documentsGet a list of documents for a specific doctype
get_documentGet a single document by name, including all child tables
create_documentCreate a new document in ERPNext
update_documentUpdate an existing document in ERPNext
delete_documentPermanently delete a document
submit_documentSubmit a document (set docstatus to 1)
cancel_documentCancel a submitted document (set docstatus to 2)
call_methodCall an ERPNext/Frappe whitelisted server-side API method
run_reportRun an ERPNext report

How to install the Erpnext MCP Server

{
  "mcpServers": {
    "erpnext": {
      "command": "node",
      "args": [
        "/path/to/erpnext-server/build/index.js"
      ],
      "env": {
        "ERPNEXT_URL": "http://your-erpnext-instance.com",
        "ERPNEXT_API_KEY": "YOUR_ERPNEXT_API_KEY",
        "ERPNEXT_API_SECRET": "YOUR_ERPNEXT_API_SECRET"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
ERPNEXT_URLDeclared in the maintainer’s client configuration.Check documentation
ERPNEXT_API_KEYDeclared in the maintainer’s client configuration.Optional
ERPNEXT_API_SECRETDeclared in the maintainer’s client configuration.Optional

Example prompts to try

  • “Use Erpnext to get doctypes.”
  • “Use Erpnext to get doctype fields.”
  • “Use Erpnext to get documents.”

Frequently asked questions

A Model Context Protocol server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.