You’ll need: an active Grain workspace and whatever plan your Claude client requires. Custom connectors are available on Claude Free, Pro, Max, Team, and Enterprise — Free accounts are limited to a single custom connector.
Claude.ai (web) and Claude Desktop
The web and desktop apps share the same connector UI.Open the connector settings
In Claude, click your profile, then Settings → Connectors. On Team and Enterprise plans, an owner adds the connector org‑wide under Organization settings → Connectors, and members connect individually afterwards.
Add a custom connector
Click + Add connector, then Add custom connector (on Team/Enterprise: Add → Custom → Web).
Paste the Grain endpoint
Authorize in the browser
Claude opens Grain’s consent screen. Pick the workspace you want Claude to see, review the scopes, and click Authorize. You’ll see a 7‑day preview of the workspace so you know exactly what’s being shared.
You land back in Claude with the connector enabled.
Claude Code
Claude Code ships a first‑class CLI for MCP servers. One command gets you connected.Install Claude Code
Add the Grain server
Add
--scope user to make Grain available across every project, or --scope project to commit the connection to .mcp.json for your whole team.Authenticate
Inside Claude Code, run:Select grain, then Authenticate. The CLI pops Grain’s consent screen in your browser, you approve the workspace, and control returns to the terminal.
Useful CLI commands
What Claude can actually do
With all three scopes granted, Claude has eleven tools at its disposal. A few high‑leverage prompts to try:Schema discovery
Schema discovery
What events do I track, and which dimensions can I break them down by?Uses
grain.events.list + grain.dimensions.discover. Great first prompt on a brand new workspace.A week in review
A week in review
Give me a digest of what changed this week — metrics, sources, and anything that looks surprising.Uses
grain.query.digest. The result includes Grain’s surprise‑detection hints (concentration, volatility, rank changes) so the narration calls out anomalies, not just numbers.Investigate a drop
Investigate a drop
Checkout conversions fell Tuesday. Compare the users who dropped against those who converted and tell me what’s different.Uses
grain.segment.compare + grain.sessions.cluster under the hood.Tracking audit
Tracking audit
Is my analytics tag firing correctly?Uses
grain.integration.status. Handy before an investigation so you know the data itself is trustworthy.Troubleshooting
“Connect” button does nothing / OAuth window fails to open
“Connect” button does nothing / OAuth window fails to open
“Invalid tenant” or 403 after authorizing
“Invalid tenant” or 403 after authorizing
Tools missing from the list
Tools missing from the list
Grain filters tools by granted scope. If
grain.segment.compare isn’t showing up, reconnect and approve the mcp:investigate scope.“Server disconnected” mid‑session in Claude Code
“Server disconnected” mid‑session in Claude Code
Claude Code auto‑reconnects with exponential backoff (up to 5 attempts). If it gives up, run
/mcp → select grain → Reconnect.Next steps
Tool reference
Every tool, its inputs, and what scope it requires.
Security & scopes
How tokens, scopes, and revocation work.