
IFood的非官方模式背景协议服务器——通过AI浏览,搜索,推车和订购食物. 两次运输(Stio + HTTP/OAuth 2.1),真实iFood OTP登录.
概览
IFood的非官方模式背景协议服务器——巴西最大的食品提供平台. 浏览餐馆,搜索食物,管理你的推车,并通过任何会说MCP的AI助手发布订单. 与iFood无关. 包装公共消费网络API供个人使用. 这个MCP服务器允许AI助手(Claude Code, Claude Desktop, Cursor, Codex等)访问您的iFood账户. 它揭露了25种工具 让AI: -====================================== ======================================================================================================================================================================================================================== 构建一个带有项目、交付方式和支付方式的推车 - 列出您保存的支付方式和地址 - 列出过去的订单,获得订单细节,并重新排序 - 检查忠诚卡,钱包福利和优惠券 - 探索家用种子,分类和被整理的浏览页面 您可以独立运行任意一种模式; 相同的工具定义返回这两个模式 。 - 节点.
概述(AI 翻译)
IFood的非官方模式背景协议服务器——巴西最大的食品提供平台. 浏览餐馆,搜索食物,管理你的推车,并通过任何会说MCP的AI助手发布订单.
不隶属于iFood. 包装公共消费网络API供个人使用.
□ 此 MCP 服务器所做的
这个MCP服务器允许AI助手(Claude Code, Claude Desktop, Cursor, Codex等)访问您的iFood账户. 它揭露了25种工具 让AI:
- 搜查你附近的餐馆和食物
- 浏览商、完整目录、项目细节和客户评论
- 建造一辆载有物品、交货方法和付款的推车
- 列出保存的付款方法和地址
- 列出过去的命令,获得命令细节,并重新排序
- 检查忠诚卡、钱包福利和优惠券
- 探索家用饲料、分类和浏览页
□ 二认证模式
- 模式 + 运输 + 登录 + 最佳 + 最佳 | – – – – – – – – – – – – – – – –
- **HTTP + OAuth 2.1 ** * * * 流取 HTTP → Real iFood OTP(电子邮件/短信/WhatsApp)在主机登录页 * * * 多用户部署,远程 MCP, 与朋友分享 * * *
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
iFood MCP Server
Unofficial Model Context Protocol server for iFood — Brazil’s largest food delivery platform. Browse restaurants, search food, manage your cart and place orders through any AI assistant that speaks MCP.
Not affiliated with iFood. Wraps the public consumer web API for personal use.
What This MCP Server Does
This MCP server gives AI assistants (Claude Code, Claude Desktop, Cursor, Codex, etc.) access to your iFood account. It exposes 25 tools that let an AI:
- 🔍 Search restaurants and food items near you
- 🍔 Browse merchants, full catalogs, item details and customer reviews
- 🛒 Build a cart with items, delivery method and payment
- 💳 List your saved payment methods and addresses
- 📦 List past orders, get order details, and reorder
- 🎁 Check loyalty cards, wallet benefits and coupons
- 📍 Explore the home feed, categories and curated browse pages
Two Authentication Modes
| Mode | Transport | Login | Best for |
|---|---|---|---|
| HTTP + OAuth 2.1 | Streamable HTTP | Real iFood OTP (e‑mail / SMS / WhatsApp) on a hosted login page | Multi‑user deploys, remote MCP, sharing with friends |
| stdio | Standard input / output | Tokens pasted from browser DevTools into a .env file |
Local single‑user setup, fastest to wire up |
You can run either mode independently; the same tool definitions back both.
Prerequisites
- Node.js ≥ 20
- An active iFood account (any region in Brazil)
- For HTTP+OAuth mode: nothing else — the login UI handles everything
- For stdio mode: a recent JWT extracted from browser DevTools (see below)
Check your install with node -v and npm -v.
Installation
1. Clone and build
git clone https://github.com/AriOliv/ifood-mcp.git
cd ifood-mcp
npm install
npm run build
2. Pick a mode
Option A — HTTP + OAuth 2.1 (recommended)
# Generate a JWT signing secret (≥32 chars)
echo "MCP_JWT_SECRET=$(openssl rand -hex 32)" >> .env
echo "PORT=3001" >> .env
# Run with auto-reload
npm run dev
Then register the server with your client.
Claude Code
claude mcp add --transport http ifood http://localhost:3001/mcp
Run /mcp inside Claude Code → click ifood → it’ll open the browser at the OTP login page. Authenticate with your iFood e‑mail and the 6‑digit code that arrives via WhatsApp/SMS/Email.
Cursor
Add to ~/.cursor/mcp.json:
{
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"ifood": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}