1. Open the connector settings
In Claude, click your profile, then Settings → Connectors. On the Team and Enterprise plans, an owner adds the connector for the organization under Organization settings → Connectors. Members then connect one by one.2. Add a custom connector
Click + Add connector, then Add custom connector. On Team and Enterprise the path is Add → Custom → Web.3. Paste the Grain endpoint
4. Authorize in the browser
Claude opens the Grain consent screen. Pick the workspace that Claude will see, read the scopes, and click Authorize. A workspace on the consent screen is a tenant. A 7-day preview of the tenant shows what you share. Then you return to Claude with the connector enabled.5. Turn it on in a chat
In a conversation, click the + button, open Connectors, and switch Grain on. Then ask a question, for example “What were my top 5 traffic sources last week?”. Claude callsgrain.query, describes the result, and cites the rows it used.
The first tool call of a new session is the slowest. Claude discovers the tool surface on that
call. Later calls are faster.
Claude Code
Claude Code has a CLI for MCP servers. One command adds the Grain server.-
Install Claude Code. If you have it, make sure that you have a recent version. Remote HTTP
transport is a recent addition.
-
Add the Grain server.
Add
--scope userto make Grain available in every project. Add--scope projectto write the connection to.mcp.jsonfor your team. -
Authenticate. Inside Claude Code, run
/mcp, select grain, then Authenticate. The CLI opens the Grain consent screen in your browser. Approve the tenant. Then control returns to the terminal. -
Ask Claude Code a question that needs Grain data, for example “Which pages had the biggest
drop in conversions this week versus last?”. Claude Code picks the tool
(
grain.query.compareorgrain.segment.compare), runs it, and summarizes the result.
list shows every server. get grain shows the Grain server. remove grain deletes it. The
Claude Code documentation on MCP is at
code.claude.com/docs/en/mcp.
What the assistant can do
With all three scopes granted, Claude has eleven tools. These prompts are a good start:
The digest result includes the Grain surprise hints (concentration, volatility, rank changes), so
the summary names anomalies, not only numbers. Run the tracking audit before an investigation, so
that you know the data is complete. Read Tools for every tool.