by zhuxian518
McDonald's China MCP innovation skill - entry for MCD Developer Innovation Challenge 2026 (1024 Programmers' Day)
# Add to your Claude Code skills
git clone https://github.com/zhuxian518/mcd-1024-skillGuides for using ai agents skills like mcd-1024-skill.
See how mcd-1024-skill compares with popular alternatives.
mcd-1024-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by zhuxian518. McDonald's China MCP innovation skill - entry for MCD Developer Innovation Challenge 2026 (1024 Programmers' Day). It has 60 GitHub stars.
mcd-1024-skill's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/zhuxian518/mcd-1024-skill" and add it to your Claude Code skills directory (see the Installation section above). mcd-1024-skill ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcd-1024-skill against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
你是用户的"麦当劳老友":话不多,但句句有用。你的任务不是展示多少商品,而是替用户省下选择的力气。
用户说出需求(如"今天中午吃啥,30 以内多点蛋白")后,依次执行:
data/memory.json 的 favoriteStores)。没有则问一句用户在哪附近,或让用户提供城市+地标,调用 query-nearby-stores(beType=1,searchType=2)搜索。🍔 就它了:{组合名}
{营养达成} | {券后价格} | {为什么是它,一句话}
或者看看:
· 老朋友:{记忆库高频/高评单品}——{它和用户的交情,如"本月第 4 次"}
· 尝个新:{用户口味簇内未尝试过的商品}——{为什么适合他}
📊 麦麦小知识:{今日一条}
确认下单说"就它了"。
本地文件 data/memory.json 是你的长期记忆,结构:
{
"orders": [{"date": "", "items": [{"code": "", "name": "", "qty": 1}], "total": 0, "rating": null, "storeCode": ""}],
"tasteProfile": {"clusters": {"beef": 0.6, "chicken": 0.3, "fish": 0.1}, "spiceLevel": 2, "avgSpend": 27.5},
"favoriteStores": ["storeCode"],
"firstUse": "2026-10-09"
}
规则:
data/snapshots/ 目录存放每日价格快照(JSON,字段含城市、门店、storeCode、bigmac/fries 分单位价格)。
MCD_MCP_TOKEN 读取,绝不写入文件或对话。只给一个答案的麦当劳点餐 Skill——它记得你点过的每一单,也顺带告诉你今天全国的巨无霸卖多少钱。
"中午吃什么",大概是当代人每天要做的最累的决定。麦当劳的菜单上一百多种商品,再加上会员券、随心配、限时活动——选择越多,下单越慢。等终于选好了,午饭时间也过去了一半。
麦麦老友记换了个思路:你不用挑,老友替你挑。 你只要说一句"今天中午吃啥,三十以内,多点蛋白",它就回你一个答案——为什么是它、营养达没达标、券后多少钱,三行说清。下面再补两个备选:一个是你点过很多次、上次还给过五星的"老朋友";一个是顺着你的口味、但你还没吃过的新品。它凭什么这么懂你?因为你在这里点过的每一单,它都记着。官方接口只能查到最近 10 单历史,老友记把这些订单存进你电脑本地的记忆银行,越用越懂你,越用越离不开。
每次推荐的最后,还会附赠一条"麦麦小知识"。《经济学人》杂志从 1986 年起就用"巨无霸指数"衡量各国购买力——同一只汉堡全球通行,价格却各自精彩,堪称经济学界最出圈的发明。麦麦小知识把这个经典概念搬到了中国城市之间:首期实测全国 11 城核心商圈,最贵的巨无霸不在上海,在重庆解放碑——29 块,比上海贵 3.5 块;北上广深反而齐刷刷站在便宜档。这个每天都在生长的价格档案,让你对自己花的每一块钱心里有数。
它解决三件事:把"选不出来"变成"一个答案";把"用完即弃"变成"越用越懂你";把"稀里糊涂花钱"变成"明明白白消费"。 对用户,这是省下来的决策精力和真金白银;对麦当劳,AI 助手记住了顾客,顾客就愿意常来——每一次对话式推荐,都是一次自然发生的下单转化。
① 就它了 —— 唯一推荐
"今天中午吃啥,30 以内,多点蛋白" → 双吉士汉堡 + 麦辣鸡翅 2 块 + 鲜煮咖啡:蛋白 38g,券后 26.8 元,附三行理由。不满意?往下看。
② 老朋友 & 尝个新 —— 两个备选,来自你的记忆
· 老朋友:板烧鸡腿堡中套餐——你本月第 4 次点它,上次你给了五星 · 尝个新:安格斯厚牛培根堡——在你最爱的牛肉簇里,你还没吃过
③ 麦麦小知识 —— 每日一条,顺便看看全国行情
📊 《经济学人》1986 年发明了巨无霸指数来衡量各国购买力。我们把它搬进中国城市:首期实测 11 城,最贵的是重庆解放碑(29 元),不是上海。说"看指数"查完整榜单。
flowchart TD
U["👤 用户: 今天中午吃啥, 30以内多点蛋白"]
subgraph S["🤖 麦麦老友记 McMates"]
direction LR
D["📌 决策层<br/>菜单→营养→配券→核价<br/>唯一推荐"]
M2[("💾 记忆层<br/>本地记忆银行<br/>老朋友&尝个新")]
X["📈 指数层<br/>21城巨无霸采样<br/>麦麦小知识"]
end
M["麦当劳 MCP<br/>mcp.mcd.cn"]
U -->|"意图 + 条件"| S
D <--> M
X <--> M
M2 --> D
S -->|"🍔 就它了 + 备选 + 小知识"| U
一次对话,三个时间维度各司其职:决策层处理"现在",记忆层沉淀"过去",指数层给出"宏观"。官方 10 个 MCP 工具的完整编排见 MCP_INTEGRATION.md。
| 城市 | 巨无霸 | 中薯 | 合计 |
|---|---|---|---|
| 重庆(解放碑) | 29.0 | 14.5 | 43.5 |
| 成都(春熙路) | 26.5 | 14.5 | 41.0 |
| 西安(钟楼) | 26.5 | 14.5 | 41.0 |
| 哈尔滨(中央大街) | 26.5 | 14.5 | 41.0 |
| 郑州(二七商圈) | 26.5 | 14.5 | 41.0 |
| 武汉(江汉路) | 26.5 | 14.0 | 40.5 |
| 北京(三里屯) | 26.0 | 14.5 | 40.5 |
| 上海(人民广场) | 25.5 | 13.5 | 39.0 |
| 广州(天河) | 25.5 | 13.5 | 39.0 |
| 深圳(罗湖口岸) | 25.5 | 13.5 | 39.0 |
| 长沙(五一广场) | 25.5 | 13.5 | 39.0 |
三个反直觉发现:① 最贵的是重庆,不是北上广深;② 一线城市反而全军在便宜档;③ 同档城市价格完全一致(沪穗深长四城分毫不差)——麦当劳中国按城市档位分区定价的痕迹非常清晰。
前置条件:麦当劳中国大陆会员(手机号在 open.mcd.cn/mcp 申请 MCP Token)+ 任意支持 MCP 的 AI 客户端(WorkBuddy / Cherry Studio / Cursor 等)
{
"mcpServers": {
"mcd-mcp": {
"type": "streamablehttp",
"url": "https://mcp.mcd.cn",
"headers": { "Authorization": "Bearer YOUR_MCP_TOKEN" }
}
}
}
data/memory.json),不上传、不联网https://mcp.mcd.cn),10 个工具的三层编排:详见 MCP_INTEGRATION.md