Grab McDonald’s Coupons with Anthropic’s MCP and Claude Code
This step‑by‑step guide shows how to activate the McDonald’s Model Context Protocol (MCP), integrate it into Cherry Studio, install Claude Code support, and use AI commands to automatically retrieve and claim McDonald’s coupons.
Activating the McDonald’s MCP
Visit https://open.mcd.cn/mcp, log in with the phone number you use for ordering, and obtain the verification code. After logging in, open the console from the top‑right corner, copy the displayed Token, and click the red "Activate" button to enable the token.
Connecting MCP with Cherry Studio
Cherry Studio is a large‑model client that can connect to various models and import MCP definitions.
Open Cherry Studio and click the settings button in the top‑right corner.
In the Settings page, select the “MCP Server” tab and click “Add”. Choose “Import from JSON”.
Paste the following JSON configuration, replacing YOUR_TOKEN with the token obtained earlier (include the Bearer prefix).
{
"mcpServers": {
"mcd-mcp": {
"type": "streamablehttp",
"url": "https://mcp.mcd.cn/mcp-servers/mcd-mcp",
"headers": {
"Authorization": "Bearer 你的token"
},
"baseUrl": "https://mcp.mcd.cn/mcp-servers/mcd-mcp"
}
}
}Enable the newly added MCP, then open its detail page; you should see five available tools.
In the chat interface, click the hammer icon below the input box and choose automatic or manual invocation. With automatic mode, any prompt that matches the MCP’s function will trigger the call.
Example prompt: “Help me check McDonald’s coupons.” The MCP is invoked and returns the available coupons.
Installing Claude Code Support for MCP
Claude Code can also use the MCP. Two installation methods are available; the command‑line method is shown below.
claude mcp add mcd-mcp --transport http https://mcp.mcd.cn/mcp-servers/mcd-mcp --header "Authorization: Bearer YOUR_MCP_TOKEN"Replace YOUR_MCP_TOKEN with the token you saved earlier. After running the command, a success message appears.
Verify the connection inside Claude by entering claude, then typing /mcp. The status should show “connected”.
Now ask Claude to retrieve coupons (e.g., “Get McDonald’s coupons”). The MCP is called, and Claude lists all available coupons, which can be claimed automatically.
macrozheng
Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
