AI agents (MCP)

Ask your AI which post made you money

DataBull has a built-in MCP server. Connect Claude Code, Cursor, Codex, Windsurf or VS Code in one command, and your agent answers from your own traffic and Stripe, Polar or Dodo revenue, live.

All sales are final · License terms

Claude Codedatabull · 11 tools connected
MCP
Terminal

      
Works withClaude CodeCursorCodexCopilotWindsurf

One command, then just ask

npx databull@latest mcp

It creates a read-only key on your own DataBull, checks the connection, adds DataBull to Claude Code if it's installed, and prints the exact config for Cursor, Codex, Windsurf, VS Code and any other MCP client. Prefer clicking? Settings → API keys & AI agents shows the same snippets, filled in.

Questions it answers

Eleven read-only tools

ToolWhat the agent gets
list_sitesEvery site: today, online now, 7 and 30 days.
get_overviewVisitors, revenue, sales, conversion and revenue per visitor, against the previous period, with a time series and traffic spikes.
get_breakdownAny dimension ranked by visitors or revenue: referrer, channel, campaign, page, landing page, country, device, goal.
compare_periodsWhat changed, with the biggest gainers and losers.
list_salesSales with the source each one is credited to.
list_visitors / get_visitorWho visited, and one person's whole journey.
get_realtime, get_goals, get_funnels, get_customer_valueLive visitors, goals, funnel steps, lifetime value by source.

Your data stays yours

The MCP server runs inside your own DataBull, on your Cloudflare account: the agent talks to your install, not to us. Keys are read-only, stored only as a hash, and revocable any time. Customer names and emails stay hidden unless you create a key that includes them.

Not using an agent? Same data in the terminal

npx databull@latest sources --by revenue
npx databull@latest compare
npx databull@latest sales -n 10 --json

Every command takes --json for scripts, and works on any machine with DATABULL_URL and DATABULL_API_KEY. Details in the AI agents, CLI & API docs.

Questions

Which AI clients work?

Any client that speaks MCP over Streamable HTTP with a header: Claude Code, Cursor, Codex, Windsurf, VS Code (Copilot agent mode) and others. npx databull@latest mcp prints the config for each.

Can the agent change anything?

No. Every tool is read-only, and keys can only read analytics.

Does my data go through DataBull's servers?

No. The MCP server is part of your own install on your Cloudflare account; your agent connects to it directly.

Does it work on Cloudflare's free plan?

Yes. It needs no extra Cloudflare services: it's part of the same Worker.

Find out which of your posts pay the bills.

One script, one payment connection, and you'll know by tomorrow.

All sales are final · License terms