AI assistants (MCP)
DataFair has an MCP server, so an AI assistant such as Claude, ChatGPT or Cursor can answer questions like "which source brought the most revenue last month?" from your real numbers.
It only reads, and it only sees totals and breakdowns. Visitor profiles, emails and customer names are never sent to it.
Set it up
- Under Integrations, create an API key and choose AI assistant: read only. Limit it to one website if you like
- Add a remote MCP server to your assistant with the URL
https://datafair.dev/api/mcpand the headerAuthorization: Bearer YOUR_API_KEY
{
"mcpServers": {
"datafair": {
"type": "http",
"url": "https://datafair.dev/api/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}In Claude Code: claude mcp add --transport http datafair https://datafair.dev/api/mcp --header "Authorization: Bearer YOUR_API_KEY"
Tools
list_websites: the websites the key can readget_overview: visitors, revenue, conversion rate and more for a period, with the period before and chart notesget_breakdown: visitors and revenue by channel, source, campaign, country, page, device and other dimensionsget_recurring_revenue: estimated monthly recurring revenue, new subscribers and churn by source or channelget_search_keywords: Google Search Console queries with estimated revenue, when connected
Periods are today, yesterday, 24h, 7d, 30d, 90d, 12m and all, or from and to as dates. Money is in minor units, such as cents.