Instacart MCP Server
This server enables AI agents to fully manage Instacart grocery ordering, from searching products to placing and tracking orders.
Authentication & Sessions: Check login status, initiate login (with MFA support), log out, and maintain persistent sessions across server restarts
Product Search: Search for products by name or category with configurable result limits up to 50 items
Store Discovery: Browse available stores for your current delivery location
Cart Management: Add products with specified quantities, view cart contents with totals, and clear all items
Delivery Setup: Set or update a delivery address or zip code
Order Placement: Preview orders before confirming, then place orders with explicit user confirmation
Order Tracking: Track real-time status of placed orders
Allows AI agents to search for products, manage shopping carts, and place grocery orders on Instacart, providing tools for searching items, viewing cart contents, and previewing or placing orders.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Instacart MCP Server Add organic bananas and a gallon of whole milk to my cart"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@striderlabs/mcp-instacart
Order groceries via Instacart using AI agents
Part of Strider Labs — action execution for personal AI agents.
Get Started in 2 Minutes
For Claude Desktop Users
Add this to your Claude Desktop config:
{
"mcpServers": {
"instacart": {
"command": "npx",
"args": ["-y", "@striderlabs/mcp-instacart"]
}
}
}Restart Claude.
Tell Claude: "Order my usual groceries for delivery tomorrow morning"
Your agent can now place orders. That's it.
Related MCP server: mcp-amazon
Installation (NPM)
npm install @striderlabs/mcp-instacartOr with npx directly:
npx @striderlabs/mcp-instacartFeatures
🛒 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
Component | Version | Status |
MCP SDK | ^1.0.0 | ✅ |
Node.js | 18+ | ✅ |
Claude Desktop | Latest | ✅ |
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
Claude Plugins: Search "Strider Labs" in Claude
mcpservers.org: Strider Labs Instacart
Full Strider Labs: github.com/striderlabsdev/striderlabs
How It Works
For Agents
Your agent can use these capabilities:
// Search for products
products = search_products({
query: "organic milk",
location: "San Francisco, CA"
})
// Browse a store's offerings
store_products = get_store_products({
store_id: "whole_foods_sf",
category: "Dairy"
})
// Add to cart
add_to_cart({
product_id: "organic_milk_gallon",
quantity: 2,
special_instructions: "Cold stock, please"
})
// Place an order
order = place_order({
delivery_time: "tomorrow morning",
delivery_address: "123 Main St, San Francisco, CA",
special_instructions: "Ring the doorbell twice"
})
// Track delivery
status = 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
Set
INSTACART_HEADLESS=falsein your MCP server config so the browser window is visible:
{
"mcpServers": {
"instacart": {
"command": "npx",
"args": ["-y", "@striderlabs/mcp-instacart"],
"env": { "INSTACART_HEADLESS": "false" }
}
}
}Restart Claude / your MCP client.
Ask Claude to run
instacart_login— a real browser window will open.Log in to Instacart inside that window.
Run
instacart_statusto confirm authentication.Remove
INSTACART_HEADLESS(or set it back totrue) 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
# Show browser window (required for first-time login)
INSTACART_HEADLESS=false # default: true (headless)Self-Hosted
# Clone the repo
git clone https://github.com/striderlabsdev/mcp-instacart
cd mcp-instacart
# Install dependencies
npm install
# Start the server
npm start
# Your agent can now connect to localhost:3000Architecture
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
.envor secure vaultSessions 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.
Available Tools
11 toolsinstacart_add_to_cartB
Add a product to the Instacart cart. Searches for the product and adds the first matching result.
Inputs: product (required), quantity.
instacart_clear_cartA
Remove all items from the Instacart cart.
Inputs: no named parameters.
instacart_loginA
Initiate Instacart login flow. Returns a URL and instructions for the user to complete login manually. After logging in, use instacart_status to verify.
Inputs: no named parameters.
instacart_logoutA
Clear saved Instacart session and cookies. Use this to log out or reset authentication state.
Inputs: no named parameters.
instacart_place_orderA
Place the order. IMPORTANT: Set confirm=true only when you have explicit user confirmation. Without confirm=true, this returns a preview instead of placing the order.
Inputs: confirm.
instacart_preview_orderB
Preview order before placing. Shows cart summary, delivery window, and any issues that need to be resolved.
Inputs: no named parameters.
instacart_searchB
Search for products on Instacart. Returns product names, prices, and availability.
Inputs: query (required), maxResults.
instacart_set_addressC
Set delivery address or zip code for Instacart orders.
Inputs: address (required).
instacart_statusA
Check Instacart login status and session info. Use this to verify authentication before performing other actions.
Inputs: no named parameters.
instacart_storesB
Get list of available stores for the current delivery location.
Inputs: no named parameters.
instacart_view_cartA
View current Instacart cart contents, including items, quantities, and totals.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose with no ambiguity. For example, instacart_search finds products, instacart_add_to_cart adds them, and instacart_view_cart shows the cart, making misselection unlikely. The tools cover different aspects like authentication, cart management, ordering, and store selection without overlap.
All tool names follow a consistent 'instacart_verb_noun' pattern, such as instacart_add_to_cart and instacart_set_address. This predictable naming scheme enhances readability and helps agents understand the tool's function at a glance, with no deviations in style.
With 11 tools, the server is well-scoped for an Instacart integration, covering essential workflows like login, search, cart management, and ordering. Each tool serves a specific function, and the count is neither too sparse nor bloated, fitting typical server ranges of 3-15 tools.
The tool surface is nearly complete for the Instacart domain, covering core operations from authentication to order placement. Minor gaps exist, such as the lack of tools for updating cart item quantities or removing specific items, but agents can work around these by using clear_cart and re-adding items.
Maintenance
Related MCP Connectors
Search live store shelves, verify delivery windows, and run instant AI agent checkouts.
Live product search for AI agents across Shopify merchants and major retailers.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Run reusable browser automations from your AI assistant: scrape sites, extract data, fill forms.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to shop on frisco.pl, Poland's online grocery store, with secure manual authentication. Supports product search, cart management, and checkout preparation via browser automation without storing login credentials.107MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search products, manage cart, place orders, and track shipments on Amazon via browser automation.2MIT
- AlicenseBqualityDmaintenanceEnables AI agents to search products, manage cart, and track orders on Walmart.com via browser automation.1285 npm7MIT
- AlicenseAqualityDmaintenanceEnables AI agents to search products, manage shopping carts, clip digital coupons, check fuel points, schedule delivery/pickup, and place grocery orders with Kroger.1555 npm2MIT