Skip to main content
When you finish, you can ask Claude or Codex about your Datalyr analytics without storing an API key anywhere.
The connection uses OAuth with the scope datalyr:read. Your client receives a short-lived read-only token, never the workspace Agent key. Datalyr never receives your Claude or Codex credentials, and you need no Anthropic or OpenAI API key.

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 seventeen tools

Every tool is read-only, so nothing your client does can change tracking, settings, sources, conversion rules, team membership, or billing.

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

  • Read API: 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.