Skip to main content
Glama
ERPNext MCP Server

ERPNext MCP Server

by hatlabs

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ERPNEXT_URLYesBase URL of your ERPNext instance
ERPNEXT_API_KEYYesAPI key for authentication
ERPNEXT_API_SECRETYesAPI 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

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
All DocTypesList of all available DocTypes in the ERPNext instance

TDQS

A3.6/5.0

Scored across 11 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues