Docs menu
Billing
Attribution
Attribution
MCP and read API.
Connect Claude Code or Cursor to a read-only MCP server, or call the read API with the same workspace key. Every answer includes the confidence breakdown and the unknown share.
1. Create a read-only key
Open Settings → API keys and create a key with the mcp:connect scope. That scope is read-only for MCP and the read API. It is owner-only. Revoke the key at any time.
2. Claude Code
claude mcp add --transport http metrivo https://www.metrivo.co/api/mcp \
--header "Authorization: Bearer mtr_your_key"Then ask: “Which source made the most revenue last month?” The answer includes the unknown share.
3. Cursor
Add this to .cursor/mcp.json:
{
"mcpServers": {
"metrivo": {
"url": "https://www.metrivo.co/api/mcp",
"headers": { "Authorization": "Bearer mtr_your_key" }
}
}
}Tools
traced_percentRevenue traced %, confidence breakdown, and unknown share for a period.
revenue_by_sourceRevenue, payments, visitors, revenue per visitor, confidence, and unknown share by channel or source.
explain_paymentOne payment's source, confidence, unknown reason, first touch, and touchpoints.
open_fixesRule-based Fixes with the revenue affected and the steps to apply.
customer_journeyFirst source, credited source, visits, days, pages, and confidence per touch.
Read API
The same key works with plain HTTP:
curl "https://www.metrivo.co/api/v1/revenue?view=traced" \
-H "Authorization: Bearer mtr_your_key"
curl "https://www.metrivo.co/api/v1/revenue?view=by-source&group_by=channel" \
-H "Authorization: Bearer mtr_your_key"
curl "https://www.metrivo.co/api/v1/fixes" \
-H "Authorization: Bearer mtr_your_key"
curl "https://www.metrivo.co/api/v1/payments/<payment_id>" \
-H "Authorization: Bearer mtr_your_key"
curl "https://www.metrivo.co/api/v1/customers/<customer_id>/journey" \
-H "Authorization: Bearer mtr_your_key"Optional query parameters: website_id, from, to, currency. A key locked to one website can only read that website. The API never writes.
Security
- Keys are hashed at rest and shown once at creation.
- The MCP server and read API are workspace-scoped and read-only.
- Unknown revenue keeps its recorded reason. Nothing is rounded up to a match.
- Revoke a key in Settings; the next request is rejected immediately.