- Home
- MCP servers
- ERPNext
ERPNext
- javascript
61
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"rakeshgangwar-erpnext-mcp-server": {
"command": "node",
"args": [
"/path/to/erpnext-server/build/index.js"
],
"env": {
"ERPNEXT_URL": "http://your-erpnext-instance.com",
"ERPNEXT_API_KEY": "your-api-key",
"ERPNEXT_API_SECRET": "your-api-secret"
}
}
}
}You deploy this MCP server to bridge ERPNext data and capabilities with your AI assistants. It provides authenticated access to ERPNext documents, supports common document operations, and lets you run ERPNext reports through a consistent Model Context Protocol interface.
How to use
You interact with the ERPNext MCP server from an MCP client. Start by authenticating with ERPNext, then fetch documents, create or update records, run reports, or inspect DocTypes. Use the server’s standard endpoints to access ERPNext data via doctype names and document identifiers, or reference documents through ERPNext URIs like erpnext://{doctype}/{name} for direct access.
Recommended usage patterns include: authenticating once and reusing the session for subsequent tool calls, listing documents for a given doctype to understand available data, creating new items or customers, updating existing records, and invoking reports that your assistants can query to answer questions or perform actions within ERPNext.
How to install
Prerequisites you need installed on your machine or server: Node.js and npm, and a compatible TypeScript build setup. You should also have access to your ERPNext instance and its API credentials if you plan to use the HTTP connection.
Follow this step-by-step flow to prepare and run the MCP server locally or in your environment.
-
Install dependencies for the MCP server project.
-
Build the server to generate the runnable JS bundle.
-
Run the server or use the development watcher for auto-rebuild during development.
Additional sections
Configuration details and security notes help you run the ERPNext MCP server safely and effectively.
Environment variables you will use:
Usage examples and configuration notes
The server supports both HTTP-based remote access and local stdio execution. Use the HTTP method to connect to a remote ERPNext instance, or run a local stdio server that serves as the MCP endpoint.
If you are configuring Claude Desktop or VSCode-based workflows, you will point your MCP client at the provided commands and environment entries shown in the examples.
Tools and endpoints you can use
The ERPNext MCP server exposes a set of tools to interact with ERPNext data and operations. You can authenticate, fetch documents, create and update documents, run reports, and query DocType fields.
Available tools
authenticate_erpnext
Authenticate with ERPNext using username and password to establish a session for subsequent API calls.
get_documents
Retrieve a list of documents for a specific DocType, with optional filters and pagination.
create_document
Create a new ERPNext document with provided field data under a given DocType.
update_document
Update fields of an existing ERPNext document identified by DocType and name.
run_report
Execute a saved ERPNext report and return the results.
get_doctype_fields
Fetch the field definitions for a specific DocType to understand required and optional fields.
get_doctypes
List all available DocTypes supported by your ERPNext instance.