Skip to main content
When you finish, you can ask Claude or Codex about your Datalyr analytics without storing an API key anywhere.
The steps below ask for the scope 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 and trackable links. A token that asked for datalyr:read alone cannot call any of them. See The 8 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

  1. Open Customize → Connectors in Claude.
  2. Select + → Add custom connector.
  3. Enter Datalyr as the name.
  4. Enter https://api.datalyr.com/mcp as the remote MCP URL.
  5. Select Add.
  6. Select Connect.
  7. Sign in to Datalyr and allow read-only access.
On Claude Team or Enterprise, an Owner first adds the URL under Organization settings → Connectors. Each member then connects their own Datalyr account under Customize → Connectors.

Connect Codex

Complete the Datalyr sign-in and the consent page in your browser.

The 27 read tools

The 8 tools that write or start work

The server advertises 8 more tools. A token that asked for datalyr: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.

Rules the client follows

Tool results carry customer, campaign, and revenue data. Connect only clients and organizations you trust, because anything you connect can read all of it.
An AI client can misread a number it fetched correctly. Check any high-impact decision against the matching report in Datalyr.

Verify

  1. Start a new conversation.
  2. Ask: List my Datalyr workspaces.
  3. Confirm the reply names the workspace you expect.
  4. Ask: Show my Datalyr overview for the last 7 days.
  5. 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.