Frappe_Assistant_Core
Infrastructure that connects LLMs to ERPNext. Frappe Assistant Core works with the Model Context Protocol (MCP) to expose ERPNext functionality to any compatible Language Model
claude mcp add --transport stdio buildswithpaul-frappe_assistant_core python -m frappe_assistant_core \ --env FRAPPE_SITE="your-site-name" \ --env MCP_LOG_LEVEL="INFO" \ --env FRAPPE_SITE_BASE_URL="https://your-site-url"
How to use
Frappe Assistant Core exposes ERPNext functionality to any MCP-compatible language model. It acts as an integration layer that registers ERPNext operations as MCP tools (for example, document creation, updates, searches, reporting, and analytics). The server is designed to work with LLMs, Claude Desktop, and other MCP-enabled agents, enabling a secure, auditable interaction with your ERPNext data. Tools are organized in a registry so your LLM can request a specific operation, and the server enforces ERPNext permissions and audit logging to maintain compliance. You can also leverage the one-click Claude setup to generate DXT files for Claude Desktop integration, enabling seamless local or desktop-based LLM workflows. In practice, you can ask the LLM to create documents, run reports, execute Python-based data transformations, or visualize results, and the MCP layer will validate permissions and perform the actions against ERPNext.
To use it, connect your MCP-enabled model or Claude Desktop to the MCP Server endpoint. The LLM issues commands like create_document, search_documents, run_report, or python_execute, and the Tool Registry routes these requests to the appropriate Core Plugins or Plugins. The architecture ensures that every operation is checked for authentication, role-based access, and ERPNext permissions, with all actions logged in the audit trail for traceability.
How to install
Prerequisites
- A ready ERPNext/Frappe environment (bench and a site) up and running
- Python 3.8+ and Node.js as required by your ERPNext version
- Access to install apps on your site (bench) and internet access to fetch the Frappe Assistant Core app
Step-by-step installation
- Get the application into your ERPNext bench environment
- Ensure you are in your frappe-bench directory
# 1. Get the app
cd frappe-bench
bench get-app https://github.com/buildswithpaul/Frappe_Assistant_Core
- Install the app on your site
- Replace [site-name] with your actual site name
# 2. Install on your site
bench --site [site-name] install-app frappe_assistant_core
- Configure and run
- Ensure your site is running and accessible
- Start any required services for your environment and verify that the MCP endpoint is reachable
- If needed, set up DXT/Claude integration via the provided tooling in the app
- Optional: Run via MCP-compatible command
# Example from the MCP config (adjust as needed for your environment)
pip install -r requirements.txt
python -m frappe_assistant_core
Prerequisites recap
- Installed ERPNext via bench (bench, frappe, Redis, MariaDB, etc.)
- Access to install Python packages and deploy apps
- Network access to fetch the Frappe_Assistant_Core repository
Additional notes
Notes and tips:
- Environment variables: set FRAPPE_SITE and FRAPPE_SITE_BASE_URL to point to your site, and MCD_LOG_LEVEL for debugging verbosity.
- Access control: the server enforces ERPNext permissions and an audit trail. Ensure the user/role you use has appropriate permissions for the tools you intend to expose.
- Claude Desktop integration: use the One-Click DXT setup to generate Claude Desktop integration files for quick, local LLM usage.
- If you run into authentication issues, verify that the OAuth2/OpenID Connect configuration is correctly wired and that Dynamic Client Registration endpoints are reachable.
- For development, you can enable verbose logging by adjusting MCP_LOG_LEVEL to DEBUG and tailing the logs to diagnose tool permission or ERPNext permission issues.
- Tool availability: 21+ built-in tools cover document operations, search, reporting, analytics, Python execution, and visualization. Plugins can extend capabilities as your business needs evolve.
Related MCP Servers
XActions
⚡ The Complete X/Twitter Automation Toolkit — Scrapers, MCP server for AI agents (Claude/GPT), CLI, browser scripts. No API fees. Open source. Unfollow people who don't follow back. Monitor real-time analytics. Auto follow, like, comment, scrape, without API.
mcp-ssh-manager
MCP SSH Server: 37 tools for remote SSH management | Claude Code & OpenAI Codex | DevOps automation, backups, database operations, health monitoring
mcp_server_filesystem
MCP File System Server: A secure Model Context Protocol server that provides file operations for AI assistants. Enables Claude and other assistants to safely read, write, and list files in a designated project directory with robust path validation and security controls.
bonnard-cli
Agent-native analytics. MCP server, dashboards, SDK, and semantic layer CLI.
opnsense
Modular MCP server for OPNsense firewall management - 88 tools providing access to 2000+ methods through AI assistants
Taskx-nano
A python library built to execute tasks with natural language