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 "Install 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 ServerAdd 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
MCP server that gives AI agents the ability to search products, manage cart, and place grocery orders on Instacart.
Built by Strider Labs β building the action layer for AI agents.
Features
π Search Products β Find products across Instacart with prices and availability
π Cart Management β Add items, view cart, clear cart
π¦ Place Orders β Preview and place orders with delivery time selection
π Session Persistence β Cookies saved locally for seamless re-authentication
π‘οΈ Order Safety β Requires explicit confirmation before placing orders
Installation
npm install @striderlabs/mcp-instacartOr install globally:
npm install -g @striderlabs/mcp-instacartPrerequisites
This package requires Playwright browsers. Install them with:
npx playwright install chromiumMCP Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"instacart": {
"command": "npx",
"args": ["@striderlabs/mcp-instacart"]
}
}
}Other MCP Clients
npx @striderlabs/mcp-instacartAvailable Tools
Authentication
Tool | Description |
| Check login status and session info |
| Initiate login flow (returns URL for manual login) |
| Clear saved session and cookies |
Shopping
Tool | Description |
| Search for products by name |
| List available stores for delivery location |
| Set delivery address or zip code |
Cart
Tool | Description |
| Add a product to cart |
| View cart contents and totals |
| Remove all items from cart |
Orders
Tool | Description |
| Preview order before placing |
| Place order (requires |
Usage Examples
Check Session Status
User: Am I logged into Instacart?
Agent: [calls instacart_status]
β Returns login state, email, saved addressSearch for Products
User: Find organic bananas on Instacart
Agent: [calls instacart_search with query="organic bananas"]
β Returns list of products with pricesBuild a Shopping List
User: Add milk, eggs, and bread to my Instacart cart
Agent:
[calls instacart_add_to_cart with product="milk"]
[calls instacart_add_to_cart with product="eggs"]
[calls instacart_add_to_cart with product="bread"]
β Items added to cartView Cart
User: What's in my Instacart cart?
Agent: [calls instacart_view_cart]
β Returns items, quantities, subtotal, fees, totalPlace Order
User: Place my Instacart order
Agent: [calls instacart_place_order with confirm=false]
β Returns preview asking for confirmation
User: Yes, place it
Agent: [calls instacart_place_order with confirm=true]
β Order placed, returns confirmationAuthentication Flow
Instacart requires browser-based login. The flow:
Call
instacart_loginβ returns login URLUser opens URL and logs in manually
Cookies are automatically saved to
~/.strider/instacart/Future sessions use saved cookies
Session cookies persist until they expire or instacart_logout is called.
Configuration
Session data is stored in:
~/.strider/instacart/
βββ cookies.json # Browser cookies
βββ session.json # Session metadataOrder Safety
The instacart_place_order tool has a built-in safety mechanism:
Without
confirm=true: Returns a preview, does not place orderWith
confirm=true: Actually places the order
Agents should ALWAYS show the preview and get explicit user confirmation before calling with
Technical Details
Uses Playwright for browser automation
Runs headless by default
Includes stealth patches to avoid detection
Supports all Instacart stores available in your area
Limitations
Requires manual login (no programmatic auth)
Browser automation may break if Instacart updates their UI
Some anti-bot measures may require solving CAPTCHAs manually
Payment methods must be pre-configured in your Instacart account
Troubleshooting
"Not logged in" errors
Run instacart_login and complete the login flow manually.
Timeout errors
Instacart pages may be slow. The server will retry automatically, but you can also:
Check your internet connection
Try again after a moment
"Could not find element" errors
Instacart may have updated their UI. Please file an issue with details.
CAPTCHA challenges
Some actions may trigger CAPTCHA. You'll need to:
Open Instacart in a regular browser
Complete the CAPTCHA
Try the MCP action again
Development
# Clone the repo
git clone https://github.com/markswendsen-code/mcp-instacart
cd mcp-instacart
# Install dependencies
npm install
# Install Playwright browsers
npx playwright install chromium
# Build
npm run build
# Run locally
node dist/index.jsLicense
MIT