kunpeng-mcp-server
v1.0.5
Published
MCP server for using the kunpeng crm API
Readme
Kunpeng MCP Server
MCP Server for CRM Customer Search.
Tools
customer_search- 客户搜索服务(支持按姓名模糊搜索)
- Input:
pageNo(number, 必填): 页码pageSize(number, 必填): 每页大小sort(string, 必填): 排序字段order(string, 必填): 排序方式,可选值: "asc" 或 "desc"name(string, 必填): 客户姓名name-op(string, 必填): 姓名匹配方式- "eq": 精确匹配
- "ct": 包含匹配(模糊搜索)
- Returns:
code: 状态码(0 表示成功)data.list: 客户列表,包含:id: 客户 IDname: 客户姓名consultTel: 咨询电话createTime: 创建时间(时间戳)
data.total: 总记录数message: 错误信息(如果失败)
Setup
Usage with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"kunpeng-mcp-server": {
"command": "npx",
"args": [
"-y",
"kunpeng-mcp-server"
],
"type": "stdio",
"disabled": false,
"env": {
"CRM_AUTH_TOKEN": "<YOUR_AUTH_TOKEN>"
}
}
}
}
认证 Token 配置
本项目使用环境变量 CRM_AUTH_TOKEN 来传递认证 token。在配置文件中添加 env 字段来设置你的 token:
注意: 将 <YOUR_AUTH_TOKEN> 替换为你真实的认证 token。如果不设置 CRM_AUTH_TOKEN,系统将使用默认的测试环境 token。
Example
搜索名字包含"张三"的客户:
{
"pageNo": 1,
"pageSize": 10,
"sort": "createTime",
"order": "desc",
"name": "张三",
"name-op": "ct"
}License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
