---
title: "Claude Code analytics with MCP - Tracwell"
description: "Connect Claude Code to Tracwell. It adds analytics to your site, sets up funnels and tells you which posts bring signups and payments, from your terminal."
canonical: "https://tracwell.app/agents/claude-code"
markdown: "https://tracwell.app/agents/claude-code.md"
---

[All agents](https://tracwell.app/agents)

# Tracwell for Claude Code

Let Claude Code add Tracwell to your site, set up goals and funnels, and tell you which posts bring signups and payments. It reads the same numbers as your dashboard.

## Connect Claude Code

Terminal

```bash
claude mcp add --transport http --scope user tracwell https://tracwell.app/mcp
```

Then run /mcp in Claude Code and choose Authenticate.

When you approve the connection you pick its websites and what it may do. Reading analytics is always included.

## What Claude Code can do with Tracwell

- ### Set up

  Claude Code adds your website, puts the script in your code and checks that visits arrive. New websites start without cookies.

- ### Track what matters

  If you allow it, it creates and updates goals and funnels and adds chart notes for releases.

- ### Answer

  It reads traffic, journeys, funnels, goals and revenue by source, campaign and landing page. The numbers match your dashboard.

- ### Stay in bounds

  It only sees the websites you pick. It can't delete data or change your settings, and you can revoke it in Settings → MCP.

## Try these prompts

- Add Tracwell to this app and tell me when the first visit arrives.
- Track signup\_completed when the signup form succeeds, then make a funnel from /pricing to signup.
- Which post or campaign brought the most paying customers this month?
- Signups dropped last week. Check sources and the signup funnel and tell me why.

## Or use the terminal

Claude Code can also run the Tracwell CLI. One command signs in, adds the website, prints the install snippet and adds a Tracwell skill to your repo.

Terminal

```bash
npx tracwell init --url https://acme.com
```

[Read the CLI docs](https://tracwell.app/docs/cli)

## Questions

- **Should I use MCP or the Tracwell CLI with Claude Code?**

  Either works. MCP gives Claude Code the tools inside the session. The CLI (npx tracwell) runs the same tools as shell commands and installs a Tracwell skill in your repo, which keeps context small.

  **Does Claude Code work on the Free plan?**

  Yes. Agent access works on every plan, including Free. Each website your agent adds counts toward your plan’s website limit.

  **What can’t Claude Code do in Tracwell?**

  It can’t delete data, change settings or see websites you didn’t pick. Adding websites, goals and funnels needs the permission you choose when you connect.

## Other agents

- [Cursor](https://tracwell.app/agents/cursor)
- [Codex](https://tracwell.app/agents/codex)
- [VS Code](https://tracwell.app/agents/vscode)
- [Amp](https://tracwell.app/agents/amp)
- [Claude](https://tracwell.app/agents/claude)
- [ChatGPT](https://tracwell.app/agents/chatgpt)

## Start with your website

Create a free account, connect Claude Code, and ask it to add your site.

[Start for free](https://tracwell.app/login?callbackURL=%2Fonboarding) [Explore demo](https://tracwell.app/demo) [MCP setup docs](https://tracwell.app/docs/agents)
