Erpnext
БесплатноНе проверенA robust, asynchronous Model Context Protocol (MCP) server that securely connects LLMs to your ERPNext instance (Self-Hosted or Frappe Cloud) via its REST API.
Описание
A robust, asynchronous Model Context Protocol (MCP) server that securely connects LLMs to your ERPNext instance (Self-Hosted or Frappe Cloud) via its REST API.
README
A robust, asynchronous Model Context Protocol (MCP) server that securely connects LLMs to your ERPNext instance (Self-Hosted or Frappe Cloud) via its REST API.
Features
- High Performance: Uses
httpx.AsyncClientwith connection pooling to handle fast, concurrent LLM tool calls without blocking. - Configurable Access Control (Zoho-style): Enforces a strict
config.jsonwhitelist for DocTypes and API Methods to prevent LLMs from hallucinating destructive actions. - Memory Safety: Hard-caps all list queries to 1000 records to prevent massive JSON payloads from crashing your server.
- Universal Deployment: Run it locally (stdio) for personal R&D, or deploy it as an SSE Web Server (Server-Sent Events) via Docker for SaaS-like remote access.
Architecture & Security
1. Configuration (config.json)
By default, the server will reject any request unless it explicitly matches your configuration file.
{
"readable_doctypes": ["Customer", "Sales Invoice", "Item", "Task"],
"writable_doctypes": ["Customer", "Task"],
"deletable_doctypes": [],
"allowed_methods": ["erpnext.projects.doctype.task.task.set_status"],
"mcp_tokens": [
"YOUR_SECURE_CLIENT_TOKEN_1",
"YOUR_SECURE_CLIENT_TOKEN_2"
]
}
2. API Key Best Practices
Do NOT use a System Manager's API Key. Create a dedicated "MCP Service User" in ERPNext and assign it a heavily restricted role (e.g., Read/Write only for Sales, Support, or specific modules).
Local Installation (Personal Use / R&D)
- Set your environment variables:
ERPNEXT_URLERPNEXT_API_KEYERPNEXT_API_SECRET
- Install dependencies:
pip install -e . - Connect Claude Desktop (
claude_desktop_config.json):{ "mcpServers": { "erpnext": { "command": "/path/to/your/venv/bin/erpnext-mcp", "env": { "ERPNEXT_URL": "https://your-site.com", "ERPNEXT_API_KEY": "your_api_key", "ERPNEXT_API_SECRET": "your_api_secret" } } } }
Production VPS Deployment (SSE / SaaS Mode)
If you are hosting this on a VPS (like an Oracle ARM instance) to allow external clients to connect over the internet:
- Docker Compose:
The included
docker-compose.ymlwill run the server in SSE mode on port8000.docker compose up -d - Reverse Proxy (Caddy / Nginx):
You must place this container behind a reverse proxy.
- Expose the container via a domain (e.g.,
mcp.extrotechs.com). - The server enforces token authentication via the
TokenAuthAndRateLimitMiddleware. Clients must send anAuthorization: Bearer YOUR_TOKENheader connecting to the SSE stream.
- Expose the container via a domain (e.g.,
- Internal vs External Routing:
- If deploying on the same VPS as your Frappe instance, set
ERPNEXT_URL=http://frontend:8080(or whatever the docker-compose internal network URL is) to bypass the public internet and improve speed. - If connecting to an external client's Frappe Cloud instance, use their public URL.
- If deploying on the same VPS as your Frappe instance, set
Установить Erpnext в Claude Desktop, Claude Code, Cursor
unyly install erpnext-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add erpnext-mcp -- uvx erpnext-mcpFAQ
Erpnext MCP бесплатный?
Да, Erpnext MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Erpnext?
Нет, Erpnext работает без API-ключей и переменных окружения.
Erpnext — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Erpnext в Claude Desktop, Claude Code или Cursor?
Открой Erpnext на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Erpnext with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
