Instacart Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Instacart MCP or direct API to build shoppable grocery lists, discover nearby stores, fetch product details, and automate recipe creation through natural language.
Instacart Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Instacart now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Create Recipe PageCreate a recipe page on instacart + return shareable url.
Create Shopping List PageCreate a shopping list page on instacart + return shareable url.
Get Nearby RetailersGet nearby retailers by postal code + country code.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Instacart tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Create a shopping list page for taco night')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Instacart Integration

  • Supports both Instacart MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for creating shoppable lists, recipes, and retailer discovery

Managed Auth

  • Instant, code-free authentication—no API keys or OAuth required
  • Central place to manage and revoke Instacart connections
  • Per user and per environment credentials for better security

Agent Optimized Design

  • Tools tuned for high reliability with real usage feedback
  • Comprehensive logs so you always know which lists, recipes, or retailers your agent accessed

Enterprise Grade Security

  • Fine-grained RBAC—control which agents and users can access Instacart features
  • Scoped, least privilege access to Instacart APIs
  • Audit trail of agent actions for transparency and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Instacart with Composio?

No developer credentials are needed—just get started! The Instacart toolkit doesn't require authentication, so you can use it right away through Composio.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.