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 URL. - Select Continue.
- Keep the detected OAuth settings and select Continue.
- Select Add.
- Select Connect if the DATALYR sign-in has not opened.
- Sign in to DATALYR and select the permissions to allow.
Claude Code
/mcp in Claude Code, select datalyr, and complete the sign-in in your browser.
Connect Codex
Read tools
One more tool,
report_missing_capability, records a short note of what no tool could do,
so we can add it. It never stores your question or your conversation, and 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 propose changes to a review page. They need an ads row on the consent page:
See Agent ads and Agent ad tools.
Tools that write or start work
These tools need the matching permission, exceptcreate_export.
See Agent access for the scopes, the dry-run default, and undo.
No tool changes tracking, sources, team membership, billing, or ad safety switches, except
that
stop_agent_ads switches live ads off. See Limits. No scope publishes a container script.
There is no signup tool. When a person without an account asks, use 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
A script that runs without your client needs a key. Trade the OAuth token for one withPOST /v1/keys.
owner or admin role. A key
with a write scope needs the owner. 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.
Limits
Data and privacy
See Privacy and DPA.
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.