---
title: "VS Code analytics with MCP - Tracwell"
description: "Connect GitHub Copilot in VS Code to Tracwell. Agent mode adds analytics to your code, sets up funnels and answers which traffic brings customers."
canonical: "https://tracwell.app/agents/vscode"
markdown: "https://tracwell.app/agents/vscode.md"
---

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

# Tracwell for VS Code

Let GitHub Copilot in VS Code add Tracwell to your project, set up goals and funnels, and answer which traffic brings signups and payments, from agent mode.

## Connect VS Code

.vscode/mcp.json

```json
{
  "servers": {
    "tracwell": { "type": "http", "url": "https://tracwell.app/mcp" }
  }
}
```

Start the server from the file and sign in when asked.

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

## What VS Code can do with Tracwell

- ### Set up

  VS 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 site and tell me when the first visit arrives.
- Make a funnel from the landing page to signup and show where people leave.
- Which sources brought signups in the last 7 days?

## Or use the terminal

VS 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

- **Where do I put the config in VS Code?**

  In .vscode/mcp.json in your project, so it applies to that workspace. Start the server from the file and sign in to Tracwell when asked.

  **Does VS 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 VS 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

- [Claude Code](https://tracwell.app/agents/claude-code)
- [Cursor](https://tracwell.app/agents/cursor)
- [Codex](https://tracwell.app/agents/codex)
- [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 VS 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)
