# 麦麦拼单官

> Automated McDonald's group ordering with chat parsing, coupon optimization, and precise bill splitting.

麦麦拼单官 is a free AI agent skill on Agensi by Fine, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Fine](https://www.agensi.io/creators/fine)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/skill-16
- Tags: ai-agents, automation, sales, mcdonalds-mcp, bill-splitting

## About this skill

Group ordering for McDonald's is a logistical headache involving messy chat logs, complex coupon logic, and the inevitable "who owes what" debate. The Mcd-Group-Order skill automates this entire pipeline by converting unstructured group chat text into verified orders. It eliminates the friction of manual menu matching and the common errors associated with splitting bills by hand.

### What it does
- **Chat Log Parsing** transforms chaotic group chat messages into structured order data using local parsing scripts.
- **Intelligent Assignment** automatically assigns specific menu items to users who say "anything" or "whatever," ensuring variety and respecting dietary restrictions.
- **Coupon Optimization** performs authoritative price trials for every available coupon via MCP to identify the single most cost-effective option.
- **Precise Bill Splitting** calculates individual shares down to the cent using the Largest Remainder Method, ensuring the total sum perfectly matches the actual payment.
- **Visual Receipts** generates self-contained HTML billing cards that users can screenshot and share back to the group.

### How it works
1. **Input Collection**: Provide the chat history, preferred dining mode (delivery or pick-up), and store location.
2. **Menu Matching**: The skill fetches the live store menu via MCP and matches oral descriptions to specific product codes.
3. **Price Trial**: It executes real `calculate-price` calls for each coupon in the user's wallet to find the lowest total.
4. **Settlement**: After user confirmation, it generates a distribution report based on the chosen splitting logic (proportional, equal, or owner-benefit).

### Frameworks & tools
This skill utilizes the McDonald's MCP connector for live pricing and ordering. It relies on local Python scripts for data processing and uses HTML/CSS for bill card rendering.

### Why this beats prompting it yourself
Standard prompts fail at the math of bill splitting and can't access live, store-specific pricing or coupon rules. This skill uses actual API responses to ensure every cent is accounted for and every product code is valid.

### Use cases
- **Office Lunch** where multiple colleagues post different items in a thread and one person pays.
- **Dormitory Dinners** where one person has a specific discount coupon they want to apply to the group.
- **Social Gatherings** where guests give vague "surprise me" orders that need to be turned into a real cart.

### Known limitations
Does not support stacking multiple coupons as per McDonald's current API restrictions. Requires a configured McDonald's MCP connection to function.

## Requires

- Git
- python3.9+

mcp.json config： { "mcpServers": { "mcd-mcp": { "type": "streamablehttp", "url": "https://mcp.mcd.cn", "headers": { "Authorization": "Bearer ${MCD_MCP_TOKEN}" } } } }

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the 麦麦拼单官 skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does the skill ensure I'm getting the best price for my group order?

The skill uses the McDonald's MCP connector to fetch live, store-specific pricing and perform actual price trials for every coupon in your account to find the lowest possible total.

### Can the agent handle friends who just say "get me anything" in the chat?

Yes, the "Intelligent Assignment" feature handles vague requests by analyzing the group's order patterns and dietary restrictions to select appropriate items automatically.

### Which AI agents or platforms are compatible with this skill?

This skill is designed for any AI platform that supports Model Context Protocol (MCP), ensuring it can communicate directly with live McDonald's menu data and pricing APIs.

### Does the bill splitting feature account for rounding errors and delivery fees?

The skill uses the Largest Remainder Method for all calculations, ensuring that individual shares add up exactly to the total paid, including tax and delivery fees, down to the last cent.

### What exactly is included in the purchase of this skill?

You will receive the core logic scripts, the HTML billing card templates, and full documentation for connecting the skill to your McDonald's MCP environment.

### Can I apply multiple coupons to a single group order using this skill?

Due to current McDonald's API restrictions, the skill can only apply one coupon per order, but it will automatically identify which single coupon provides the maximum savings for your specific cart.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
