Skip to content

MCP server

Ask your coding agent which channel brings paying customers.

Ask Claude, Codex or Cursor about traffic, funnels and the payments they brought. Connect the same web and revenue analytics you see in twelvebit, with read-only access by default.

Updated

A worked example

A revenue answer, with its scope attached.

Illustrative question and answer · sample data, not a customer result

Which channel brought the most revenue from 1–30 October 2026?

Organic Social brought $960 from 80 visitors, compared with $640 from 160 Organic Search visitors. In this example, Organic Social brought 60% of the $1,600 attributed revenue, with $12 per visitor against $4 from Organic Search.

Site: example.com. Range: 1–30 October 2026, in the site's reporting time zone. Revenue: last touch, credited to the visit before each payment. This comparison describes attributed payments; it does not prove that a channel caused the sales.

The agent first calls list_sites, then get_breakdown with dim: channel and the explicit date range. You can ask it to inspect a landing page or funnel next, using the same reporting scope.

To ask this of your own business, connect a payment provider first. See Stripe revenue attribution and how payments get their credit. You can also explore the demo before connecting a site.

Connect

Add the server, then approve access.

Use OAuth in a compatible client. Keep Read only selected unless you also want the agent to change your tracking setup.

Claude Code
claude mcp add \
  --transport http twelvebit \
  https://twelvebit.app/api/mcp
Codex
codex mcp add twelvebit \
  --url https://twelvebit.app/api/mcp
codex mcp login twelvebit
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "twelvebit": {
      "url": "https://twelvebit.app/api/mcp"
    }
  }
}
Claude Code · key, for CI
claude mcp add \
  --transport http twelvebit \
  https://twelvebit.app/api/mcp \
  --header "Authorization: Bearer $TWELVEBIT_API_KEY"
Toolsthe ones agents use most
  • get_overviewVisitors, revenue, customers and conversion, with the previous period
  • get_revenueRevenue by channel and plan, and recent payments with their credited channel
  • get_breakdownTop channels, pages, countries or devices, with attributed revenue
  • get_funnelCounts per step, conversion by channel and days to convert
  • get_journeyOne person's visits, events and payments
  • get_realtimeVisitors online now and visitors per minute
  • get_install_statusWhich planned events have arrived
  • update_tracking_planValidate and save a new analytics.yaml

Client setup and troubleshooting →Use Claude.ai, ChatGPT or Gemini →

Questions

Questions you can ask.

The agent picks the tools and the date range. It can answer questions like these:

  • Which channel brought the most revenue in the last 30 days?
  • Where do visitors leave the signup funnel, and which source converts best?
  • Which landing page has the highest revenue per visitor?
  • Did the new pricing page change the trial starts this week?
  • Which events in analytics.yaml have not arrived yet?
  • Show the journey of the last customer who paid: every visit before the payment.

Revenue answers use the same model as the dashboard: each payment is credited to the visit before it (last touch). See revenue attribution.

How it works

What the server is and what it can do.

  • One URL

    https://twelvebit.app/api/mcp, over Streamable HTTP. Clients that only speak stdio use mcp-remote as a bridge.

  • Sign in, no key to copy

    Claude Code, Codex, Cursor, Claude.ai and ChatGPT sign in with OAuth. You approve the app in the browser.

  • Read only by default

    On the consent page you pick Read only, or Read and change setup. An app can never manage the team or API keys, or delete a site.

  • Keys for CI

    For a server without a browser, send a site key or an account token in the Authorization header, from an environment variable.

  • Your choice of sites

    The connection can read only the sites your account and its granted permissions allow. Ask the agent to list sites first, then name the site and date range in the question.

  • Revoke the connection

    In twelvebit, open Account → Connected apps and disconnect the app. You can remove access without changing your tracking setup.

The same agent can also install the tracking with one prompt →

Connecting MCP lets the agent read existing data. Agent setup installs tracking in your application; the MCP docs cover connection details. Both are included on every paid plan.

Paste one prompt. Watch the first events arrive.

Start free. Your agent does the setup, and you see revenue next to the traffic that brought it.

14-day free trial · cancel any time