If you primarily want to chat with your data (not code), Claude Web is the easiest path — no API key needed, just OAuth in 30 seconds.
Prerequisites
- A Detrics account
- Claude Code installed
- At least one connected platform in your Detrics workspace
Setup
Generate a Detrics API key
Go to app.detrics.io/mcp/api-keys and click Generate New Key. Copy it — you will need it in the next step.
Register the Detrics MCP server
Run the following command in your terminal. Replace
your-api-key with the key you just generated.Example prompts
Once connected, try these:- “What was my total ad spend across all platforms last month?”
- “Compare my Google Ads and Meta Ads ROAS for the last 30 days”
- “Show me my top 5 campaigns by conversions this week”
- “What’s my Shopify revenue trend over the last 90 days?”
- “What metrics are available for TikTok Ads?”
Updating your API key
If you need to rotate your API key:- Generate a new key at app.detrics.io/mcp/api-keys
- Remove the existing server:
claude mcp remove detrics-mcp - Re-add with the new key:
Troubleshooting
'Server not found' or 'Connection refused'
'Server not found' or 'Connection refused'
The MCP server URL may be incorrect.Fix: Make sure the URL is exactly
https://mcp.detrics.io — no trailing slash, no /sse suffix.'Unauthorized' or '401' errors
'Unauthorized' or '401' errors
'No connections found' response
'No connections found' response
Your MCP connection works, but there are no platforms connected in your Detrics workspace.Fix:
- Go to app.detrics.io and connect at least one data source
- Or ask Claude Code: “Connect my Meta Ads account” — it will generate an OAuth link for you