Integration
MCP for coding agents
Connect Cursor, Claude Code, or Codex to Tracuto MCP: create a tk_live_ key, wire the client, and query friction and usage.
Tracuto MCP exposes your workspace behavioral data to coding agents over Streamable HTTP. Agents can ask what UI is used, what is ignored, and where users struggle — alongside the friction analysis already in the dashboard.
What you get
- Remote MCP at
https://mcp.tracuto.com/mcp(Bearertk_live_…) - Scoped tools for analytics, friction, and sessions (no raw replay frames or form values)
- Built-in MCP prompts:
audit_page_friction,find_unused_ui,explain_dropoff
1. Create an API access token
- Open the dashboard → workspace → Agents & MCP (/app/agents-mcp).
- Create a token. Pick scopes you need:
read:analytics,read:friction,read:sessions. Optionally limit the key to specific projects. - Copy the
tk_live_…secret once — it is not shown again.
2. Connect Cursor
Add a Streamable HTTP server to .cursor/mcp.json (project or user). Replace the placeholder key:
{
"mcpServers": {
"tracuto": {
"url": "https://mcp.tracuto.com/mcp",
"headers": {
"Authorization": "Bearer tk_live_YOUR_KEY"
}
}
}
}Reload MCP / restart the agent, then call list_projects as a smoke test.
3. Connect Claude Code
# Store the key in your environment (recommended):
export TRACUTO_API_KEY="tk_live_YOUR_KEY"
# Register the remote MCP server:
claude mcp add tracuto --url https://mcp.tracuto.com/mcp \
--header "Authorization: Bearer ${TRACUTO_API_KEY}"4. Connect Codex
# Codex / OpenAI agents — MCP server entry (prefer env for the secret)
[mcp_servers.tracuto]
url = "https://mcp.tracuto.com/mcp"
headers = { Authorization = "Bearer tk_live_YOUR_KEY" }Tool reference
Common arguments: projectId?, from/to (default last 30 days), limit, format (markdown | json).
| Tool | Scope | Purpose |
|---|---|---|
| list_projects | (free) | List projects the key can access |
| get_quota | (free) | Read-token usage and remaining budget |
| get_overview | read:analytics | Events, users, pageviews, devices, trends |
| get_page_usage | read:analytics | Per-page views, exits, engagement |
| get_element_usage | read:analytics | Clicked vs seen-but-never-clicked UI |
| get_element_stats | read:analytics | Lookup usage by selector / text / path |
| get_feature_adoption | read:analytics | Key actions / feature usage |
| get_navigation_paths | read:analytics | Entry/exit and path flows |
| get_funnel | read:analytics | Funnel step conversion and drop-off |
| get_experiment_results | read:analytics | A/B comparison for a test |
| get_friction_hotspots | read:friction | Friction rollups by surface |
| get_friction_detail | read:friction | Evidence and recommendations for one friction |
| get_struggle_signals | read:friction | Rage clicks, dead clicks, errors by page |
| get_errors | read:friction | Session / project JS and network errors |
| search_sessions | read:sessions | Find sessions by page, device, errors |
| get_session_story | read:sessions | Size-capped text timeline for one session |
Example agent prompts
After MCP is connected, paste one of these into the agent chat:
Audit friction
Using the Tracuto MCP tools already configured in this workspace:
1. Call get_quota, then get_friction_hotspots for the last 30 days.
2. For the top 3 surfaces, call get_friction_detail.
3. Cross-check with get_struggle_signals on those page paths.
4. Open 1–2 example sessions with search_sessions + get_session_story.
5. Map each friction to selectors / paths I can grep in this repo, and propose concrete UI fixes.
Prefer markdown answers. Do not invent metrics — only report what the tools return.Find unused UI
Using Tracuto MCP:
1. get_element_usage on the main product paths (last 30 days).
2. Highlight elements that are seen but rarely or never clicked.
3. get_element_stats for any selector I mention from this codebase.
4. Cross-check get_feature_adoption and get_page_usage.
5. Rank removal or redesign candidates with evidence.Explain funnel drop-off
Using Tracuto MCP:
1. get_funnel for the primary signup/checkout funnel (list funnels if I did not give an id).
2. get_navigation_paths and get_page_usage around the biggest drop step.
3. get_friction_hotspots / get_friction_detail on the exit page.
4. Sample abandoning sessions with search_sessions + get_session_story.
5. Give a short causal narrative and 2–3 testable hypotheses.Read tokens
Successful tool responses are charged in read tokens (roughly UTF-8 bytes ÷ 4), the same unit family as ingest tokens on your plan. Prefer compact markdown answers; open get_session_story only when needed. Check remaining budget with get_quota or the Billing page.
MCP setup prompt
Paste this into a coding agent that does not have Tracuto MCP yet. It will ask for your tk_live_ key and write the client config.
Set up Tracuto MCP with AI
Copy into Cursor, Claude Code, Codex, or another assistant. The agent must ask for your tk_live_ key before writing config.
Paste into Agent, then ask it to write .cursor/mcp.json
Set up Tracuto MCP so this coding agent can query real user behavior from my Tracuto workspace. Documentation: - MCP tutorial: https://tracuto.com/integrate/mcp - Integration hub: https://tracuto.com/integrate Before changing any files: 1. Ask me for a tk_live_* API access token from Tracuto → Agents & MCP (workspace settings). Do not invent keys or project ids. 2. Ask which scopes I enabled (read:analytics, read:friction, read:sessions) and whether the key is limited to one project. 3. Ask which agent client to configure: Cursor (.cursor/mcp.json), Claude Code, or Codex. Implementation rules: - Endpoint (Streamable HTTP): https://mcp.tracuto.com/mcp - Auth header: Authorization: Bearer <tk_live_ key I provide> - Never commit the raw key. Prefer an env var (e.g. TRACUTO_API_KEY) and reference it from local config that is gitignored when possible. - After wiring, verify with free tools first: list_projects, then get_quota. - For product work, prefer get_friction_hotspots / get_element_usage / get_funnel before opening session stories (read tokens are metered). - Built-in MCP prompts: audit_page_friction, find_unused_ui, explain_dropoff. When done, show the exact config snippet you added (with the key redacted), how to restart the agent so MCP loads, and a one-line smoke test (list_projects).
Troubleshooting
- 401 / unauthorized — wrong or revoked key; confirm
Authorization: Bearer tk_live_…. - Scope errors — enable the matching scope on the token (
read:friction, etc.). - Wrong project — pass
projectId, or create a key allowlisted to one project. - Budget exceeded — upgrade plan or wait for the next billing period; free tools still work.