
用于Frappe/ERPNext的安全MCP(模式上下文协议)服务器. 把你的Frappe数据透露给像克洛德这样的人工智能特工 并有颗粒授权和审计记录.
概览
一个安全、有审计记录的Frappe服务器。 此应用程序允许您向 MCP 客户端(如 AI 代理) 披露特定的 DocTypes 和操作,并有严格的颗粒权限,确保您对Frappe 数据的安全和受控访问. -:专用MCP用户通过Token或API密钥访问. -:明确允许特定的DocTypes和操作(创建,读取,更新,删除). - 限制哪些字段可以读取或写出。 - 说吧 每一份申请都记录有耐久性、状态和有效载荷摘要。 - :所有过滤器和输入都根据许可列表进行验证。 您可以使用包含的设置脚本, 用默认用户和符号快速配置服务器 : 这将: - 创建用户 mcp@ example.com( 如果不存在的话) 。 生成一个安全的 X- MCP- Token 并保存在 。 或者,在服务台进行手动配置。 默认,. 您必须明确允许 DocTypes 。 1. 转到. 2. 为您想要曝光的 DocType 创建新记录(例如 ToDo). 3个.
概述(AI 翻译)
用于Frappe的安全、审计记录** 模式背景协议** 服务器。 此应用程序允许您向 MCP 客户端(如 AI 代理) 披露特定的 DocTypes 和操作,并有严格的颗粒权限,确保您对Frappe 数据的安全和受控访问.
□ 特性
- ** 安全认证**:专用
MCP User通过Token或API密钥访问. - ** 角允许列表**: 明确允许特定的DocTypes和操作(创建,读取,更新,删除).
- ** 外地控制**:限制哪些字段可以读取或写出。
- ** 验收记录**:每一份请求都附有延迟性、状态和有效载荷摘要。
- ** Strict 校验**:所有过滤器和输入都对照许可列表进行校验。
□ 安装
-
获取应用程序:
-
在您的网站上安装:
□ 配置
QQ 1. 设置 MCP 用户和设置 您可以使用包含的设置脚本, 用默认用户和符号快速配置服务器 :
这将:
- 创建用户
[email protected](如果不存在)。 - 生成一个安全
X-MCP-Token并将其保存在 ** MCP 服务器设置** 中。 - 启用MCP服务器。
或者,到服务台的** MCP 服务器设置** 手动配置。
2. 配置许可列表
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Server for Frappe
A secure, audit-logged Model Context Protocol (MCP) server for Frappe. This app allows you to expose specific DocTypes and operations to MCP clients (like AI agents) with strict granular permissions, ensuring secure and controlled access to your Frappe data.
Features
- Secure Authentication: dedicated
MCP Useraccess via Token or API Key. - Granular Allowlist: Explicitly allow specific DocTypes and operations (Create, Read, Update, Delete).
- Field-Level Control: Restrict which fields can be read or written.
- Audit Logging: Every request is logged with latency, status, and payload summaries.
- Strict Validation: All filters and inputs are validated against the allowlist.
Installation
-
Get the app:
bench get-app https://github.com/mascor/frappe-mcp-server -
Install on your site:
bench --site install-app mcp_server
Configuration
1. Setup MCP User & Settings
You can use the included setup script to quickly configure the server with a default user and token:
bench --site execute mcp_server.setup.setup_mcp
This will:
- Create a user
[email protected](if not exists). - Generate a secure
X-MCP-Tokenand save it in MCP Server Settings. - Enable the MCP Server.
Alternatively, go to MCP Server Settings in Desk and configure manually.
2. Configure Allowlist
By default, no access is allowed. You must explicitly allow DocTypes.
- Go to MCP Doctype Allowlist.
- Create a new record for the DocType you want to expose (e.g.,
ToDo). - Check the operations you want to allow (
Allow Read,Allow Create, etc.). - (Optional) restricting fields and filters in the child tables for tighter security.
Usage
The server exposes standard MCP tools via the API.
Authentication
The server supports API Key authentication (recommended for MCP clients).
Include the Authorization header in all requests.
Tools
mcp_ping
Health check and version info.
curl -X POST https:///api/method/mcp_server.api.ping \
-H "Authorization: token :"
search_docs
Search for documents with filters.
{
"doctype": "ToDo",
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →