datalyr:read and nothing else, so the token your
client receives reads and changes nothing. It is short-lived, and it is never the
workspace Agent key. Datalyr never receives your Claude or Codex credentials, and you
need no Anthropic or OpenAI API key.
The server does expose tools that change conversion rules, trackable links, saved
reports, dashboards, analyses, and share links. A token that asked for datalyr:read
alone cannot call any of them. See
The 19 tools that write or start work.
Before you start
You must have a Datalyr login that belongs to at least one workspace. The server checks your membership on every tool call.Connect Claude
- Open Customize → Connectors in Claude.
- Select + → Add custom connector.
- Enter
Datalyras the name. - Enter
https://api.datalyr.com/mcpas the remote MCP URL. - Select Add.
- Select Connect.
- Sign in to Datalyr and allow read-only access.
Connect Codex
The 44 read tools
One more tool,
report_missing_capability, records a question no tool could answer so
we can add what was missing. It reads and changes no data.
Ask with analytics_query
analytics_query answers any question of the form metric by dimension, filter, and
time. It takes a plan, not SQL. The workspace comes from your sign-in.
Funnels, retention, cohort LTV, and one person’s journey keep their own tools:
get_funnel, get_retention, get_ltv, and get_user.
Ad tools
Ad tools that work in your Meta, TikTok and Google Ads accounts need an ads row on the consent page:
See Agent ads and Agent ad tools.
The 19 tools that write or start work
The server advertises 19 more tools. A token that asked fordatalyr:read alone cannot
call any of them. See Agent access for the scopes, the dry-run
default, and the undo path.
No tool changes tracking, settings, sources, tracking domains, team membership, or
billing. No scope publishes a container script.
There is no signup tool. MCP needs an OAuth token, and only an existing Datalyr account
can hold one. To start a signup for somebody who has no account, call
POST /v1/signup. See Agent-driven setup.
Save a chart as a report
A report keeps one id on the Reports page, in the in-app chat, over MCP, and at/v1/reports.
Build a dashboard, write an analysis, share it
Dashboards and analyses point to saved report ids. They never copy a report. See Dashboards and analyses.Get a headless key
The OAuth token lasts 15 minutes and lives in your client. A script that runs without the client needs a key. Trade the token for one withPOST /v1/keys.
owner or admin role. It
expires after 90 days by default, and we show it once. See
Token exchange.
Rules the client follows
An AI client can misread a number it fetched correctly. Check any high-impact decision
against the matching report in Datalyr.
Verify
- Start a new conversation.
- Ask:
List my Datalyr workspaces. - Confirm the reply names the workspace you expect.
- Ask:
Show my Datalyr overview for the last 7 days. - Compare the visitor count with Overview in Datalyr.
When it does not work
Removing Datalyr from your client’s connector settings stops it from requesting new data.
Next
- API reference: the same data over HTTP with an Agent key.
- API keys: when you need a key instead of OAuth.
- AI Chat: ask the same questions inside Datalyr.