# Bluebarry — how to use (mcp.ai)

Connect your Bluebarry account and use 2 tools for analytics straight from your AI agent. Connect with your own API key. Bluebarry is a customer data and product-advice platform for analyzing and synchronizing shopper identities and profiles.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_bluebarry?ms=1787295960000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `bluebarry_list_identities`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/bluebarry`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/bluebarry/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/bluebarry/list/identities` — Return shopper identity records. With limit, page by increasing offset; without limit, follow next_cursor when present. Filter mergedIntoId eq null for surviving identities. Incremental sync must over
  - body: { limit?: integer, offset?: integer, order_by?: string, next_cursor?: string, include_count?: boolean, select_fields?: string, filter_expression?: string }
- `POST https://api.mcp.ai/api/bluebarry/list/profiles` — Return raw, unmerged profile rows. With limit, page by increasing offset; without limit, follow next_cursor when present. Use this for per-session or per-user detail because one shopper can appear in 
  - body: { limit?: integer, offset?: integer, order_by?: string, next_cursor?: string, include_count?: boolean, select_fields?: string, filter_expression?: string }

## Example prompts
- "What can I do in Bluebarry?"
- "Show me a summary of my Bluebarry account"

## More
- Page: https://mcp.ai/bluebarry
- Agent spec (llms.txt): https://mcp.ai/bluebarry/llms.txt
- Postman collection: https://mcp.ai/bluebarry/postman.json
