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

  1. Under Integrations, create an API key and choose AI assistant: read only. Limit it to one website if you like
  2. Add a remote MCP server to your assistant with the URL https://datafair.dev/api/mcp and the header Authorization: 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

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.

Documentation