Mcd Wrapped

Developer tools

M-CODE WRAPPED · 麦当劳数据全景报告 + 个人年报 + 方言播报.

Your AI app calls the Mcd Wrapped MCP server, which does the developer tools work and sends the result back to the chat.

About Mcd Wrapped

Mcd Wrapped is a community MCP server from lvzuojing, filed in our directory under developer tools. M-CODE WRAPPED · 麦当劳数据全景报告 + 个人年报 + 方言播报.

At a glance

Publisher
lvzuojing (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
513

How to set up Mcd Wrapped

  1. Follow the install steps in the Mcd Wrapped README; it is written in Python, so have that toolchain ready.
  2. Check the Mcd Wrapped README for keys or settings; the registry lists none that Mcd Wrapped requires.
  3. Add Mcd Wrapped to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mcd Wrapped tools to confirm the connection.
  5. Run one read-only task with Mcd Wrapped first, and keep your app asking before each tool call until the results look right.

Mcd Wrapped compared with similar servers

  • Iam Policy Autopilot by awslabs has fewer GitHub stars than Mcd Wrapped (510 against 513); Iam Policy Autopilot is official while Mcd Wrapped is a community server, and both run locally.
  • Memtrace Public by syncable-dev has more GitHub stars than Mcd Wrapped (516 against 513); both are community servers, and both run locally.
  • Strava by r-huijts has fewer GitHub stars than Mcd Wrapped (509 against 513); both are community servers, and both run locally.

Before you connect Mcd Wrapped

  • Give Mcd Wrapped its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mcd Wrapped tool call until you trust what it does with them.
  • Treat text that Mcd Wrapped fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mcd Wrapped on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mcd Wrapped

How marketing and sales teams put Mcd Wrapped to work, by company size. Pick the size closest to yours and start Mcd Wrapped on one use case.

Small business

  • A small business with a developer can use Mcd Wrapped to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Mcd Wrapped to explain and fix a marketing site issue without context switching between tools.
  • Mcd Wrapped runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Mcd Wrapped to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Mcd Wrapped to keep scripts and automations documented and versioned as they change.
  • Start Mcd Wrapped on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Mcd Wrapped with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Mcd Wrapped so web and marketing engineering share one reviewed way of working with AI.
  • Mcd Wrapped is a community server, so have security review the code and pin a version before Mcd Wrapped touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mcd Wrapped README

From lvzuojing/mcd-wrapped on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

M-CODE WRAPPED

麦当劳 MCP 工具箱:从调试接口到出报告,一条龙。

基于 麦当劳 MCP 开放能力,四个模块覆盖开发者到消费者的完整链路:

模块 一句话 入口
MCP 能力探测器 一键探测全部 35 个 tool 的真实返回,自动串联参数 scripts/explore.py
个人年度消费年报 订单、消费、积分、奖品、高频单品,一页看完 scripts/collect.py
麦当劳数据全景报告 158 个餐品营养、营销日历、抽奖池、商城、优惠券 scripts/public_data.py
抽奖 EV 精算器 蒙特卡洛模拟,算清抽奖到底值不值 scripts/lottery_ev.py

并可选粤语/方言语音播报,把报告念出来。

麦当劳 1024 程序员节创意开发大赛参赛作品 · 非麦当劳官方产品

如果你正在对接麦当劳 MCP,先看这个

官方文档不太全,实测踩了 3 个坑,都在探测器报告里:

  1. 返回体不是 JSON,是 Markdown,真 JSON 藏在 ## Original Response 之后
  2. list-nutrition-foods 的 data 是逗号分隔文本表格,不是 JSON
  3. 无数据时返回中文文案(如 暂无可用优惠券),不是空数组

服务端实际暴露 35 个 tool(文档写的是 33 个),探测器已跑通 27 个, 7 个写操作默认不调用。不想看报告也行,直接跑:

export MCD_MCP_TOKEN=你的token
python3 scripts/explore.py     # 零第三方依赖,输出 out/mcp-explorer.md

上图由真实 MCP 数据生成。样张来自授权测试账户,接入你自己的 Token 后会替换为你的真实数据。

为什么不是"又一个点餐助手"

大赛里绝大多数作品在做同一件事:怎么更便宜地下单。这个项目换个方向, , 先帮开发者搞清楚 MCP 到底返回了什么,再把数据做成值得点星的报告。

点餐助手 M-CODE WRAPPED
视角 省钱、下单 调试 + 数据可视化 + 决策
是否需要消费记录 需要 公共全景不需要,个人年报需要
产物 一个订单 探测报告 + 年报 + 全景 + 精算
对开发者友好度 一般 探测器专门解决这个痛点

模块一:MCP 能力探测器

官方文档列了 tool 名字,但没说清楚实际返回什么。实测下来坑不少:

  • 返回的是 Markdown 文本,真 JSON 藏在 ## Original Response 之后
  • 营养数据是逗号分隔文本表格,不是 JSON
  • 无数据时返回中文文案(如 暂无可用优惠券),不是空数组

探测器一键跑完所有只读工具,记录真实形态:

export MCD_MCP_TOKEN=你的token
python3 scripts/explore.py

自动串联参数:从 order-list 取 storeCode 喂给 query-meals,取 orderId 喂给 query-order, 取 spuId 喂给 mall-product-detail, , 需要参数的工具也能跑起来。

本次实测:35 个 tool,27 个成功调用,7 个写操作跳过,1 个缺参数。 完整报告见 out/mcp-explorer.md。

安全红线:draw-lottery、create-order、cancel-order、mall-create-order、 auto-bind-coupons、party-order-create、delivery-create-address 一律不调用, 只在报告里展示参数定义。

模块二:个人年度消费年报

export MCD_MCP_TOKEN=你的token
python3 scripts/collect.py
python3 scripts/build_report.py       # -> out/mcd-wrapped.html

包含:年度下单数、消费总额、客单价、深夜订单占比、最常去门店、连续打卡、 高频单品 Top 6、月度趋势、周几偏好、下单高峰、累计能量、可用积分、奖品数。

模块三:麦当劳数据全景报告

python3 scripts/public_data.py
python3 scripts/build_panorama.py     # -> out/panorama.html

不需要消费记录,只用公共数据:158 个餐品营养档案、热量 TOP10 / 低卡 TOP10 / 分布直方图、 当月营销日历、积分抽奖池、麦麦省可领券、积分商城商品。

模块四:抽奖 EV 精算器

python3 scripts/lottery_ev.py                    # 默认 10 连抽 × 10000 轮
python3 scripts/lottery_ev.py --draws 50 --trials 50000
python3 scripts/lottery_ev.py --base-price 45    # 调整折扣券基准价

真实奖池 + 真实单次消耗(24 积分),蒙特卡洛模拟。 券面额按奖品名智能匹配基准价(麦旋风按 ¥9、三件套按 ¥40)。

麦当劳未公布中奖概率,所有结果基于等概率假设,脚本从不调用 draw-lottery。 完整报告见 out/lottery-ev.md。

方言播报

python3 scripts/speak.py --dialect cantonese    # 粤语
python3 scripts/speak.py --dialect taiwanese    # 闽南语调
python3 scripts/speak.py --dialect mandarin     # 普通话
python3 scripts/speak.py --dry-run              # 只看播报稿

后端按 VoxCPM2 → macOS 内置中文嗓音 自动回退:

export VOXCPM_API_URL=http://127.0.0.1:7860     # 本地 VoxCPM2 Gradio 服务
export VOXCPM_REF_AUDIO=/path/to/四川话参考音频.wav
python3 scripts/speak.py --dialect voxcpm

目录结构

mcd-wrapped/
├── SKILL.md                      Skill 定义,供 Agent 驱动全流程
├── MCP_INTEGRATION.md            使用的 MCP tool、调用流程与踩坑记录
├── CONTEST_DECLARATION.md        参赛声明(官方原文,未修改)
├── workbuddy.md                  使用 WorkBuddy 开发时的上下文
├── mcp-config.example.json       脱敏配置,仅环境变量占位符
├── scripts/
│   ├── mcp_client.py             MCP Streamable HTTP 客户端
│   ├── explore.py                ★ 35 个 tool 能力探测器
│   ├── collect.py                个人数据采集 + 字段归一化
│   ├── build_report.py           个人年报渲染
│   ├── public_data.py            公共数据采集与解析
│   ├── build_panorama.py         全景报告渲染
│   ├── lottery_ev.py             ★ 抽奖期望值精算
│   ├── demo_data.py              演示数据(dry-run)
│   └── speak.py                  方言语音播报
├── references/
│   ├── mcp_tools.md              tool 清单与字段归一化说明
│   └── compliance.md             输出内容合规红线
├── assets/
│   ├── panorama_template.html    全景报告模板
│   └── report_template.html      个人年报模板
└── out/
    ├── mcd-wrapped.html          个人年报
    ├── panorama.html             全景报告
    ├── mcp-explorer.md           能力探测报告
    ├── lottery-ev.md             抽奖精算报告
    └── preview.png               README 预览图

合规说明

  • 项目只读官方数据,不创建、不取消、不支付任何订单
  • 写操作工具(draw-lottery / create-order / mall-create-order 等)从不调用
  • 配置文件仅使用环境变量占位符,不含任何凭证
  • 能量数值按公开营养信息估算,仅供参考,不构成健康或营养建议
  • 抽奖期望值官方未公布概率,按等概率假设做披露性说明,不构成参与建议
  • 报告只陈述事实,不做健康评价
  • 完整红线见 references/compliance.md

License

MIT

Questions about Mcd Wrapped

What is the Mcd Wrapped MCP server?

M-CODE WRAPPED · 麦当劳数据全景报告 + 个人年报 + 方言播报. Mcd Wrapped is maintained by lvzuojing on GitHub at lvzuojing/mcd-wrapped, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mcd Wrapped MCP server?

Mcd Wrapped doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (lvzuojing/mcd-wrapped). Like most servers, Mcd Wrapped ends with a command or URL you paste into your AI app's MCP config.

Does Mcd Wrapped need an API key?

The registry lists no required keys for Mcd Wrapped. Check the Mcd Wrapped README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mcd Wrapped an official MCP server?

No. Mcd Wrapped is a community server maintained by lvzuojing. Community servers can be excellent; read the code and the open issues before you give Mcd Wrapped access to company data.

What license is Mcd Wrapped under?

Mcd Wrapped is released under the MIT license, according to its GitHub repository. The license covers the code of Mcd Wrapped; the service it connects to has its own terms.