Provides tools for interacting with ERPNext instances via REST API, enabling document management (create, read, update, list), DocType exploration, field inspection, and report execution.
Provides tools for interacting with Frappe framework instances via REST API, enabling document management (create, read, update, list), DocType exploration, field inspection, and report execution.
ERPNext MCP Server
Model Context Protocol (MCP) server for ERPNext/Frappe REST API
This is a TypeScript-based MCP server that lets AI assistants interact with an ERPNext/Frappe instance via MCP tools and resources.
Features
Resources
Read any ERPNext document via
erpnext://{doctype}/{name}List available DocTypes via
erpnext://DocTypes
Tools
get_doctypes- Get a list of all available DocTypesget_doctype_fields- Get a best-effort field list for a DocType (derived from a sample record)get_documents- Get a list of documents for a specific doctypecreate_document- Create a new document in ERPNextupdate_document- Update an existing document in ERPNextrun_report- Run an ERPNext report
Configuration
The server requires the following environment variables:
ERPNEXT_URL- The base URL of your ERPNext instanceERPNEXT_API_KEY- API key for authenticationERPNEXT_API_SECRET- API secret for authentication
Note: This server currently expects API token auth. Username/password auth is not implemented.
Development
Install dependencies:
Build the server:
For development with auto-rebuild:
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
To use with Claude in VSCode, add the server config to:
On MacOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
On Windows: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
The Inspector will provide a URL to access debugging tools in your browser.