A Model Context Protocol server
Connect Erpnext to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Model Context Protocol server. The erpnext mcp server is what makes that connection.
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.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
get_doctypes — Get a list of all available DocTypesget_doctype_fields — Get fields list for a specific DocTypeget_documents — Get a list of documents for a specific doctypeget_document — Get a single document by name, including all child tablescreate_document — Create a new document in ERPNextupdate_document — Update an existing document in ERPNextdelete_document — Permanently delete a documentsubmit_document — Submit a document (set docstatus to 1)cancel_document — Cancel a submitted document (set docstatus to 2)call_method — Call an ERPNext/Frappe whitelisted server-side API methodrun_report — Run an ERPNext reportResources — The Resources tool exposed by this serverSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
Configuration is passed through the environment: ERPNEXT_URL, ERPNEXT_API_KEY, ERPNEXT_API_SECRET. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Erpnext's toolset — get_doctypes, get_doctype_fields, get_documents and 11 more — is a fair guide to whether it matches your workflow. It is maintained by rakeshgangwar; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Erpnext's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| get_doctypes | Get a list of all available DocTypes |
| get_doctype_fields | Get fields list for a specific DocType |
| get_documents | Get a list of documents for a specific doctype |
| get_document | Get a single document by name, including all child tables |
| create_document | Create a new document in ERPNext |
| update_document | Update an existing document in ERPNext |
| delete_document | Permanently delete a document |
| submit_document | Submit a document (set docstatus to 1) |
| cancel_document | Cancel a submitted document (set docstatus to 2) |
| call_method | Call an ERPNext/Frappe whitelisted server-side API method |
| run_report | Run an ERPNext report |
| Resources | The Resources tool exposed by this server. |
| Tools | The Tools tool exposed by this server. |
| Debugging | Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script: |
| Variable | Description | Required |
|---|---|---|
| ERPNEXT_URL | Endpoint or connection string the server talks to. | Yes |
| ERPNEXT_API_KEY | Credential the server authenticates with. | Yes |
| ERPNEXT_API_SECRET | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.