Skip to main content
Glama
AlekseiKastsiuk

garmonia-crm-mcp

garmonia-crm-mcp

用于通过其内部 API 测试「Harmony Hotel」CRM 的 MCP 服务器。 通过密码登录(会话 Cookie),提供订单、客户、品牌、日历等工具,以及对所有其他 CRUD 操作的通用访问。

快速安装(一条命令,无需克隆)

只需要 Node 18+。无需安装或克隆仓库——npx 会直接从 GitHub 启动服务器。

  1. 创建本地凭据文件,例如 ~/garmonia-crm.json:

    {
      "baseUrl": "https://адрес-crm",
      "login": "твой-логин",
      "password": "твой-пароль"
    }
  2. 用一条命令添加 MCP(替换为你自己的文件路径):

    claude mcp add garmonia-crm \
      -e CRM_CONFIG="$HOME/garmonia-crm.json" \
      -- npx -y github:AlekseiKastsiuk/garmonia-crm-mcp
  3. 重启 Claude Code。

凭据只保存在你的本地文件中,不会发送到任何地方—— npx 只是从 GitHub 拉取服务器代码。

Related MCP server: MCP REST Server

从源码安装(替代方案)

git clone https://github.com/AlekseiKastsiuk/garmonia-crm-mcp
cd garmonia-crm-mcp
npm install
cp crm-config.example.json crm-config.json
# открой crm-config.json и впиши baseUrl, логин и пароль своей CRM

crm-config.json 包含 CRM 地址和登录名/密码,不要提交到 git (它已经在 .gitignore 中)。

连接到 Claude Code

在 ~/.claude.json 中(或通过 claude mcp add)添加服务器:

{
  "mcpServers": {
    "garmonia-crm": {
      "command": "node",
      "args": ["/полный/путь/к/garmonia-crm-mcp/server.mjs"]
    }
  }
}

如果配置文件不在服务器旁边,请在环境变量中指定路径:

"env": { "CRM_CONFIG": "/полный/путь/к/crm-config.json" }

修改后重启 Claude Code。

工具

工具

功能

crm_login

强制重新登录

crm_orders_list

订单看板(范围:all / free / mine)

crm_order_create

创建订单/线索(name、phone)

crm_order_claim

领取订单开始处理

crm_order_set_status

更改状态(new/in_work/shipped/done/cancelled)

crm_order_delete

永久删除订单(默认先改为 cancelled)

crm_orders_delete

按 ID 列表批量删除订单

crm_clients_search

搜索客户

crm_client_delete

删除客户

crm_brands_list / crm_brand_create / crm_brand_delete

品牌

crm_staff_list

员工

crm_calendar_list

日历(任务/通话)

crm_request

直接请求任意 /api/...(商品、分类、冷数据库等)

安全说明

  • CRM 地址和密码保存在 crm-config.json 中,该文件已被 .gitignore 忽略—— 不会进入仓库。

  • crm-config.example.json 中只有占位符,没有真实数据。

  • 首次提交前请检查:git ls-files 不应包含 crm-config.json, 而 git grep -i password 应只匹配到代码中的字段名。

注意事项

  • 订单通过公开端点 POST /api/form-lead 创建——无需认证。

  • 删除订单不是 REST 操作,而是 Next.js server action(即「已关闭」标签页上的「删除」按钮)。 crm_order_delete 直接调用该 action。action 的 ID 与前端构建绑定; 如果部署后删除失败,请更新 crm-config.json 中的 bulkDeleteActionId (在 JS bundle 中搜索 bulkDelete 即可找到)。

  • 商品/分类的列表是通过服务端渲染返回的,而不是 GET API—— 如需创建/修改/删除,请使用 crm_request(POST/PATCH/DELETE)。

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI agents to authenticate users, manage calendar events, create meetings, and maintain persistent API sessions for seamless integration with Russian business platforms. Provides comprehensive business productivity capabilities including session management, password operations, and cross-user calendar coordination.
    -
  • A
    license
    A
    quality
    C
    maintenance
    Enables interaction with any REST API through token or login authentication, with automatic Swagger/OpenAPI documentation integration for endpoint discovery and comprehensive HTTP request support.
    7
    MIT
  • A
    license
    C
    quality
    A
    maintenance
    Enables interaction with openQA instances through the REST API, offering read tools for jobs, machines, and test suites, as well as mutating tools like restart and cancel with optional authentication.
    40
    GPL 2.0