zhanggui
Enables AI agents to manage a phone screen protector store's inventory, orders, quotes, and shop information via standard MCP tools.
README
🛡️ 膜掌柜 (zhanggui)
手机钢化膜门店智能 CLI — 库存、订单、报价、AI 对话 仿照瑞幸咖啡 AI 开放平台架构,专为社区门店打造
curl -fsSL https://你的服务器/install | bash
架构(三层设计,跟瑞幸一样)
┌─────────────────────────────────────┐
│ CLI 层 → 终端交互 │
│ zhanggui login / invent / order 等 │
│ AI 对话模式: 输入"还有iPhone膜吗" │
├─────────────────────────────────────┤
│ MCP 层 → 标准 AI 接口 │
│ zhanggui mcp → 启动服务 │
│ 任意 AI Agent 能调用门店业务 │
├─────────────────────────────────────┤
│ Skill层 → 可导入 AI 助手的知识包 │
│ SKILL.md → 导入 WorkBuddy/Cursor │
└─────────────────────────────────────┘
快速开始
# 1. 配置门店
zhanggui login
# 2. 添加库存
zhanggui invent add -b 闪魔 -m "iPhone 16 Pro" -t 钢化膜 -c 20
# 3. 查看库存
zhanggui invent ls
# 4. 创建订单
zhanggui order new
# 5. 生成报表
zhanggui report --today
# 6. AI 对话模式(需配置 LLM)
zhanggui chat
# 7. 启动 MCP 服务
zhanggui mcp
配置 AI 模型(自备 API Key,跟瑞幸一样)
zhanggui models add --name deepseek --api-key sk-xxxxxxxx
支持任意兼容 OpenAI API 的模型:
- DeepSeek (deepseek.com)
- Kimi (moonshot.cn)
- Qwen (qwen.aliyun.com)
- GPT (openai.com)
- 硅基流动 / 本地 ollama 等
MCP 服务(让 AI Agent 操作你的店)
zhanggui mcp -p 3456
提供 7 个标准工具:
query_inventory- 查询库存add_inventory- 入库登记create_order- 创建订单query_orders- 查询订单query_report- 生成报表query_price- 查报价get_shop_info- 门店信息
数据存储
全部数据存在 ~/.zhanggui/ 目录,JSON 文件格式,零数据库依赖。
📜 开源信息
- 协议: MIT - 你可以随意使用、修改、商用
- 变更记录: CHANGELOG.md
- 贡献代码: 欢迎 PR !参见 CONTRIBUTING.md
- 报告问题: Issues
🗺️ 路线图
- [ ] 微信小程序 (扫码查库存)
- [ ] 抖音本地生活数据接入
- [ ] 语音录入 (CosyVoice 集成)
- [ ] 多门店支持
- [ ] 数据可视化 Dashboard (Web)
跟瑞幸 CLI 对比
| 特性 | 瑞幸 CLI | 膜掌柜 |
|---|---|---|
| 安装 | curl | bash | curl | bash |
| AI 模型 | 自备 API Key | 自备 API Key |
| 交互模式 | AI 对话点咖啡 | AI 对话管门店 |
| MCP 服务 | ✅ | ✅ |
| Skill 包 | ✅ | ✅ |
| 业务逻辑 | 选店→选品→下单 | 库存→订单→报表 |
部署到服务器
# 把整个目录传到服务器
scp -r 膜掌柜/ root@你的服务器:/opt/膜掌柜/
# 然后修改 install.sh 里的远程下载地址
# 用户只需一行命令安装
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.