ERPNext
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.
What is ERPNext?
ERPNext is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 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.
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.
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- This is a TypeScript-based MCP server that provides integrat
Use Cases
Maintainer
Works with
Installation
NPM
npx -y erpnextManual Installation
npx -y erpnextConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use ERPNext
ERPNext MCP Server is a TypeScript-based Model Context Protocol server that integrates AI assistants with ERPNext and Frappe Framework business applications. It exposes 11 tools covering full CRUD operations on ERPNext DocTypes, document submission and cancellation, report execution, and whitelisted Frappe API method calls. Business teams use it to let Claude query sales orders, create purchase requests, run financial reports, and automate ERP workflows through natural language without manual form navigation.
Prerequisites
- Node.js 18+ installed on your system
- A running ERPNext or Frappe instance accessible over the network
- ERPNext API key and API secret (generated in ERPNext under User Settings → API Access)
- An MCP-compatible client such as Claude Desktop, Cursor, or VS Code
Install the ERPNext MCP server
Install the package from npm using npx, which downloads and runs it without a permanent global install.
npx -y erpnextGenerate API credentials in ERPNext
In your ERPNext instance, go to the user profile → API Access and generate an API Key and API Secret. These are required for authentication.
Configure environment variables
Set the ERPNEXT_URL, ERPNEXT_API_KEY, and ERPNEXT_API_SECRET environment variables. The URL must be the base URL of your ERPNext instance.
export ERPNEXT_URL="https://your-erpnext.example.com"
export ERPNEXT_API_KEY="your_api_key_here"
export ERPNEXT_API_SECRET="your_api_secret_here"Add to your MCP client configuration
Register the ERPNext MCP server in your Claude Desktop or other MCP client config file with the environment variables in the env block.
{
"mcpServers": {
"erpnext": {
"command": "npx",
"args": ["-y", "erpnext"],
"env": {
"ERPNEXT_URL": "https://your-erpnext.example.com",
"ERPNEXT_API_KEY": "your_api_key_here",
"ERPNEXT_API_SECRET": "your_api_secret_here"
}
}
}
}Restart your MCP client and verify
Restart Claude Desktop. Ask Claude to list available DocTypes to confirm the connection to your ERPNext instance is working correctly.
ERPNext Examples
Client configuration
Add ERPNext MCP to Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows).
{
"mcpServers": {
"erpnext": {
"command": "npx",
"args": ["-y", "erpnext"],
"env": {
"ERPNEXT_URL": "https://your-erpnext.example.com",
"ERPNEXT_API_KEY": "your_api_key_here",
"ERPNEXT_API_SECRET": "your_api_secret_here"
}
}
}
}Prompts to try
Use natural language to interact with ERPNext business data and automate workflows.
- "List all open Sales Orders created this month and their total values"
- "Create a new Purchase Order for 50 units of Item ABC from Supplier XYZ"
- "Submit the Sales Invoice INV-2024-00123"
- "Run the Accounts Receivable Aging Summary report"
- "What fields are available on the Customer DocType?"Troubleshooting ERPNext
Authentication fails with 403 Forbidden
Verify your ERPNEXT_API_KEY and ERPNEXT_API_SECRET are correct. In ERPNext, ensure the user whose credentials you're using has API Access enabled and has the necessary role permissions for the DocTypes you're accessing.
ERPNEXT_URL connection timeout or refused
Check that the ERPNEXT_URL includes the correct protocol (https://) and no trailing slash. Verify your ERPNext instance is reachable from the machine running the MCP server, and that any firewalls allow outbound HTTPS connections.
Document operations fail with 'DocType not found'
Use the get_doctypes tool first to list all available DocTypes on your instance. DocType names are case-sensitive in Frappe — ensure you're using the exact name as it appears in ERPNext.
Frequently Asked Questions about ERPNext
What is ERPNext?
ERPNext is a Model Context Protocol (MCP) server that 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. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install ERPNext?
Install via npm with the command: npx -y erpnext. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with ERPNext?
ERPNext works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is ERPNext free to use?
Yes, ERPNext is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
ERPNext Alternatives — Similar Business Applications Servers
Looking for alternatives to ERPNext? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up ERPNext in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use ERPNext?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.