erpnext-server
Servidor MCP de ERPNext
Un servidor del Protocolo de Contexto de Modelo (MCP) para la integración con ERPNext
Este es un servidor MCP basado en TypeScript que proporciona integración con la API de ERPNext/Frappe. Permite a los asistentes de IA interactuar con los datos y la funcionalidad de ERPNext a través del Protocolo de Contexto de Modelo.
Características
Recursos
Acceso a documentos de ERPNext mediante URIs
erpnext://{doctype}/{name}Formato JSON para el acceso a datos estructurados
Herramientas
get_doctypes- Obtener una lista de todos los DocTypes disponiblesget_doctype_fields- Obtener la lista de campos para un DocType específicoget_documents- Obtener una lista de documentos para un doctype específicoget_document- Obtener un único documento por nombre, incluyendo todas las tablas hijascreate_document- Crear un nuevo documento en ERPNextupdate_document- Actualizar un documento existente en ERPNextdelete_document- Eliminar permanentemente un documentosubmit_document- Enviar (submit) un documento (establece docstatus a 1)cancel_document- Cancelar un documento enviado (establece docstatus a 2)call_method- Llamar a un método de API del lado del servidor de ERPNext/Frappe incluido en la lista blancarun_report- Ejecutar un informe de ERPNext
Related MCP server: ERPNext MCP Server
Configuración
El servidor requiere las siguientes variables de entorno:
ERPNEXT_URL- La URL base de su instancia de ERPNextERPNEXT_API_KEY(opcional) - Clave de API para la autenticaciónERPNEXT_API_SECRET(opcional) - Secreto de API para la autenticación
Desarrollo
Instalar dependencias:
npm installCompilar el servidor:
npm run buildPara desarrollo con reconstrucción automática:
npm run watchInstalación
Para usar con Claude Desktop, añada la configuración del servidor:
En MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
En Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"erpnext": {
"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"
}
}
}
}Para usar con Claude en VSCode, añada la configuración del servidor en:
En MacOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
En Windows: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Depuración
Dado que los servidores MCP se comunican a través de stdio, la depuración puede ser un desafío. Recomendamos usar el Inspector MCP, que está disponible como un script del paquete:
npm run inspectorEl Inspector proporcionará una URL para acceder a las herramientas de depuración en su navegador.
Ejemplos de uso
Obtener lista de clientes
<use_mcp_tool>
<server_name>erpnext</server_name>
<tool_name>get_documents</tool_name>
<arguments>
{
"doctype": "Customer"
}
</arguments>
</use_mcp_tool>Obtener detalles del cliente
<access_mcp_resource>
<server_name>erpnext</server_name>
<uri>erpnext://Customer/CUSTOMER001</uri>
</access_mcp_resource>Crear nuevo artículo
<use_mcp_tool>
<server_name>erpnext</server_name>
<tool_name>create_document</tool_name>
<arguments>
{
"doctype": "Item",
"data": {
"item_code": "ITEM001",
"item_name": "Test Item",
"item_group": "Products",
"stock_uom": "Nos"
}
}
</arguments>
</use_mcp_tool>Obtener campos de artículo
<use_mcp_tool>
<server_name>erpnext</server_name>
<tool_name>get_doctype_fields</tool_name>
<arguments>
{
"doctype": "Item"
}
</arguments>
</use_mcp_tool>Available Tools
6 toolscreate_documentB
Create a new document in ERPNext
Inputs: doctype (required), data (required).
get_doctype_fieldsB
Get fields list for a specific DocType
Inputs: doctype (required).
get_doctypesA
Get a list of all available DocTypes
Inputs: no named parameters.
get_documentsA
Get a list of documents for a specific doctype
Inputs: doctype (required), fields, filters, limit.
run_reportC
Run an ERPNext report
Inputs: report_name (required), filters.
update_documentC
Update an existing document in ERPNext
Inputs: doctype (required), name (required), data (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no ambiguity: creating documents, retrieving document lists, updating documents, getting metadata about DocTypes and their fields, and running reports. The descriptions clearly differentiate between document operations, metadata queries, and report execution.
All tool names follow a consistent verb_noun pattern using snake_case, such as create_document, get_documents, and update_document. This predictability makes it easy for agents to understand and select the appropriate tool based on naming conventions.
With 6 tools, this server is well-scoped for ERPNext operations, covering core CRUD actions (create, get, update), metadata retrieval (doctypes and fields), and reporting. Each tool earns its place without being overwhelming or insufficient for the domain.
The tool set provides strong coverage for document lifecycle (create, get, update) and metadata, with a report execution tool. A minor gap exists in the lack of a delete_document tool, which agents might need to work around, but core workflows are well-supported.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceA demonstration TypeScript MCP server that showcases basic MCP concepts with simple tools (greeting, calculator), text resources, and prompt templates for learning the Model Context Protocol.2MIT
- AlicenseNot gradedqualityDmaintenanceThis MCP server connects ChatGPT to ERPNext, enabling AI-powered business analytics, report generation, and document management.MIT
- AlicenseNot gradedqualityAmaintenanceMCP server that enables LLMs to interact with ERPNext/Frappe sites for document CRUD, search, reports, workflows, and analytics, respecting user permissions and logging all actions.337AGPL 3.0
- AlicenseBqualityBmaintenanceModel Context Protocol (MCP) server for ERPNext - manage timesheets, leave applications, projects, and software releases via Claude, Gemini, or any MCP-compatible AI assistant.52MIT