ERPNext MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ERPNEXT_URL | Yes | Base URL of your ERPNext instance | |
| ERPNEXT_API_KEY | Yes | API key for authentication | |
| ERPNEXT_API_SECRET | Yes | API secret for authentication |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_doctypesA | Get a list of all available DocTypes |
| get_doctype_fieldsA | Get field definitions for a specific DocType from ERPNext metadata. Returns fieldname, fieldtype, label, options, and reqd for each field. |
| get_documentsB | Get a list of documents for a specific doctype. ERPNext defaults to 20 results if no limit is specified. |
| get_child_documentsA | Query child table rows by joining parent and child DocTypes. Direct child table queries return 403; this tool queries the parent DocType with child table field joins. Returns one row per matching child table row. |
| create_documentB | Create a new document in ERPNext |
| update_documentC | Update an existing document in ERPNext |
| run_reportC | Run an ERPNext report |
| get_documentA | Get a single document by DocType and name, including child tables. Response is automatically stripped of system metadata and null/default fields. Use 'fields' to select specific top-level fields, and 'child_fields' to select fields within child tables. 'name', 'docstatus', and 'status' are always included. |
| call_methodA | Call an ERPNext/Frappe whitelisted server-side API method. WARNING: This can invoke any whitelisted method including destructive operations — use with caution. Args are passed as JSON body (POST) or query params (GET), with keys matching the method's parameter names. |
| submit_documentA | Submit a document (set docstatus to 1). This is irreversible — submitted documents can only be cancelled, not reverted to draft. |
| cancel_documentA | Cancel a submitted document (set docstatus to 2). Cancelled documents cannot be modified — use amend workflow to create a corrected copy. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| All DocTypes | List of all available DocTypes in the ERPNext instance |
TDQS
Scored across 11 tools
Most tools are clearly separated by resource and action: metadata lookup, document list/single fetch, child-table query, create/update, and lifecycle actions are distinct. The main ambiguity is call_method, which is intentionally generic and could overlap with nearly every specialized tool, though its warning and description make that risk explicit.
All tool names use consistent snake_case and a predictable verb-first pattern such as get_document, create_document, update_document, submit_document, and cancel_document. The few variations like run_report and get_doctypes still fit the same readable convention.
Eleven tools is well-scoped for an ERPNext server: enough to cover metadata discovery, document CRUD-style operations, lifecycle transitions, reports, and generic API access without excessive fragmentation.
The surface covers core ERPNext workflows including metadata inspection, listing, single-document retrieval, creation, updates, child-table querying, submission/cancellation, reports, and generic method calls. Minor gaps remain around draft deletion and report discovery/metadata, but agents can work around most of these.