Instacart

io.github.markswendsen-code由 GitHub 账号 markswendsen-code 发布v0.2.2更新于 Oct 24, 2026

MCP server for Instacart - let AI agents manage grocery shopping and place orders autonomously

已验证STDIO仅桌面浏览器自动化商业与电商

概览

AI 生成的概览

本地 MCP 服务器,让 AI 助手通过浏览器自动化在 Instacart 上搜索商品、管理购物车并下单生鲜配送。

可以做什么
  • 按名称或类别搜索商品,浏览商店与库存情况
  • 将商品加入购物车,可设置数量与特殊备注
  • 选择配送时间与地址并提交订单
  • 查询订单状态,复用已保存的常购商品
  • 登录账号并检查登录状态
适用场景
适合希望助手在自己 Instacart 账号上处理日常买菜的场景,例如重复购买常购商品、组建购物车并安排配送,而无需自己打开网站操作。
运行要求
通过 npx 或 npm 以 Node.js 18+ 本地进程运行,仅支持桌面版 MCP 客户端。需要 Instacart 账号及 INSTACART_EMAIL、INSTACART_PASSWORD,首次需在可见浏览器窗口(INSTACART_HEADLESS=false)中手动登录;浏览器配置会持久保存在用户主目录下。
安装前请注意
它可以提交真实的生鲜订单并产生费用,确认前应核对购物车与配送信息。它需要 Instacart 账号邮箱和密码,并保留已登录的浏览器会话;通过浏览器自动化并使用拟真浏览器配置规避机器人检测,可能与 Instacart 的服务条款冲突。README 中关于加密与不向第三方发送数据的说法来自提供方自身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Instacart,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@striderlabs/mcp-instacart

Order groceries via Instacart using AI agents

[npm] [MCP Registry] [Claude Desktop] [License: MIT]

Part of Strider Labs — action execution for personal AI agents.

Get Started in 2 Minutes

For Claude Desktop Users

  1. Add this to your Claude Desktop config:
json
{  "mcpServers": {    "instacart": {      "command": "npx",      "args": ["-y", "@striderlabs/mcp-instacart"]    }  }}
  1. Restart Claude.
  2. Tell Claude: "Order my usual groceries for delivery tomorrow morning"

Your agent can now place orders. That's it.


Installation (NPM)

bash
npm install @striderlabs/mcp-instacart

Or with npx directly:

bash
npx @striderlabs/mcp-instacart

Features

  • 🛒 Search for products by name or category
  • 📦 Browse stores and product availability
  • 🏪 Add to cart with quantities and special requests
  • 💳 Place orders with delivery time selection
  • 📍 Track orders with real-time status
  • 🔐 Persistent sessions - stay logged in across restarts
  • 🔄 Automatic MFA - handles multi-factor authentication
  • 📱 Per-user credentials - encrypted session storage
  • ⭐ Saved items - order your favorites faster

Tested & Compatible

ComponentVersionStatus
MCP SDK^1.0.0✅
Node.js18+✅
Claude DesktopLatest✅
Claude (API)claude-3.5-sonnet+✅
Anthropic SDK^0.20+✅

Metrics

  • Weekly downloads: 271 (Apr 10-17, 2026) — Top grocery connector (+330% growth)
  • Status: ✅ Live in production
  • Reliability: 85%+ task completion rate
  • Discovery: npm, mcpservers.org, ClawHub, PulseMCP, Glama, LobeHub

Available Elsewhere

How It Works

For Agents

Your agent can use these capabilities:

javascript
// Search for productsproducts = search_products({  query: "organic milk",  location: "San Francisco, CA"})
// Browse a store's offeringsstore_products = get_store_products({  store_id: "whole_foods_sf",  category: "Dairy"})
// Add to cartadd_to_cart({  product_id: "organic_milk_gallon",  quantity: 2,  special_instructions: "Cold stock, please"})
// Place an orderorder = place_order({  delivery_time: "tomorrow morning",  delivery_address: "123 Main St, San Francisco, CA",  special_instructions: "Ring the doorbell twice"})
// Track deliverystatus = track_order({ order_id: order.order_id })

Session Management

  • Each user has encrypted, persistent credentials
  • Automatic OAuth token refresh
  • MFA handling (SMS/email)
  • Sessions survive agent restarts

Reliability

  • 85%+ task completion rate
  • Automated UI change detection (connectors update when Instacart changes)
  • Fallback paths for failures
  • 24/7 monitoring + alerting

Authentication

The MCP server uses a persistent browser profile (~/.strider/instacart/browser-profile) so your login session survives server restarts automatically.

First-time login

  1. Set INSTACART_HEADLESS=false in your MCP server config so the browser window is visible:
json
{  "mcpServers": {    "instacart": {      "command": "npx",      "args": ["-y", "@striderlabs/mcp-instacart"],      "env": { "INSTACART_HEADLESS": "false" }    }  }}
  1. Restart Claude / your MCP client.
  2. Ask Claude to run instacart_login — a real browser window will open.
  3. Log in to Instacart inside that window.
  4. Run instacart_status to confirm authentication.
  5. Remove INSTACART_HEADLESS (or set it back to true) and restart — the saved profile keeps you logged in.

How login detection works

Authentication is verified by navigating to /account and confirming the page resolves without a redirect to /login or /authentication (positive detection). This is more reliable than checking for the absence of a "Log in" button.

Configuration

Environment Variables

bash
# Show browser window (required for first-time login)INSTACART_HEADLESS=false   # default: true (headless)

Self-Hosted

bash
# Clone the repogit clone https://github.com/striderlabsdev/mcp-instacartcd mcp-instacart
# Install dependenciesnpm install
# Start the servernpm start
# Your agent can now connect to localhost:3000

Architecture

How We Connect

This connector uses browser automation (Playwright) to interact with Instacart, because Instacart doesn't have a public API. Here's why that's safe and reliable:

  • User-controlled: Your agent only accesses your own Instacart account
  • Session-based: We store your login session securely, not your password
  • Change-aware: We detect Instacart UI changes and alert immediately
  • Fingerprinting: We use realistic browser profiles to avoid bot detection
  • Rate-limited: We respect Instacart's infrastructure with appropriate delays

Security

  • Credentials stored encrypted in your local .env or secure vault
  • Sessions isolated per user
  • No data sent to third parties
  • MIT Licensed — audit the code yourself

Support

Contributing

We welcome contributions! Areas of interest:

  • Bug reports and fixes
  • Feature requests (new stores, categories, etc.)
  • Performance improvements
  • Documentation enhancements

See CONTRIBUTING.md for guidelines.

License

MIT — Free to use, modify, and distribute. See LICENSE for details.


Built by Strider Labs — Making AI agents actually useful.

GitHub | Website | Discord

来源:README.md,提交 6da8d68

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。