> ## Documentation Index
> Fetch the complete documentation index at: https://support.detrics.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Detrics for Claude

> Chat with your marketing data using Claude, the most intelligent AI model for marketing analysis

## Chat with your marketing data

Detrics connects to Claude through the **Model Context Protocol (MCP)**, an open standard that lets AI models interact with external data sources. Once connected, you can query ad spend, ROAS, conversions, revenue, and more across all your platforms using natural language.

Just ask questions in plain language and get answers straight from your live data.

## Two ways to connect

<CardGroup cols={2}>
  <Card title="Claude Web" icon="bolt" href="/claude/claude-web">
    **Recommended.** Connect via OAuth in \~30 seconds, straight from your browser.
  </Card>

  <Card title="Claude Code" icon="terminal" href="/claude/claude-code">
    Anthropic's CLI coding agent. One command + API key.
  </Card>
</CardGroup>

## What you can do

Once connected, Claude can:

* **Query marketing data**: spend, ROAS, conversions, revenue, CPA, and hundreds of other metrics across 30+ platforms
* **Compare platforms**: side-by-side analysis across Meta Ads, Google Ads, TikTok, Shopify, and more
* **Analyze campaigns**: find top performers, spot anomalies, identify optimization opportunities
* **Browse available fields**: discover every metric and dimension available for each platform
* **Use AI Contexts**: pre-select which accounts to query so you skip the setup in every prompt
* **Use Prompt Templates**: 40+ ready-made marketing analysis prompts you can copy and use immediately
* **Connect new platforms**: add data sources directly from the chat via OAuth

## How it works

```
Claude (Web or Claude Code)
        |
   Detrics MCP Server (authenticated via OAuth or API key)
        |
   Marketing Platform APIs (Meta, Google, TikTok, Shopify, etc.)
```

**For Claude Web:** You connect through OAuth from the Detrics web app, no API key or installation needed.

**For Claude Code:** You generate an API key, register the Detrics MCP server with a single command, and start querying.

## Next steps

<CardGroup cols={2}>
  <Card title="Connect Claude Web" icon="bolt" href="/claude/claude-web">
    Get set up in under 30 seconds, our recommended path.
  </Card>

  <Card title="Create an AI Context" icon="layer-group" href="/claude/create-ai-context">
    Pre-select your accounts so every prompt is simpler.
  </Card>

  <Card title="Browse Prompt Templates" icon="grid-2" href="/claude/use-prompt-templates">
    40+ ready-made marketing analysis prompts.
  </Card>

  <Card title="Available Tools" icon="wrench" href="/claude/available-tools">
    Full reference of every MCP tool Detrics exposes.
  </Card>
</CardGroup>
