Docs / MCP Server

MCP Server for AI Tools

Use Trackveil analytics directly from Cursor, Claude Desktop, and other AI coding assistants.

✨ Industry First!

Trackveil is the first analytics platform with native AI assistant integration. Query your data and generate tracking code directly from your coding environment.

Quick Setup (Cursor)

Step 1: Generate an API key at dashboard.trackveil.net/app/api-keys

Step 2: Add to your Cursor settings:

{
  "mcpServers": {
    "trackveil": {
      "url": "https://mcp.trackveil.net",
      "headers": {
        "Authorization": "Bearer tv_your_api_key_here"
      }
    }
  }
}

Step 3: Restart Cursor and start using Trackveil with AI!

What You Can Do

Ask questions about your analytics:

Generate tracking code:

Manage your account:

Example Conversations

You:

"Track when users click the demo request button"

AI:

// Track demo request button clicks
document.querySelector('#demo-btn').addEventListener('click', () => {
  Trackveil.track('Demo Requested', {
    page: window.location.pathname,
    timestamp: new Date().toISOString()
  });
});

Paste this into your JavaScript file!

You:

"Create a conversion goal for newsletter signups"

AI:

✅ Goal created successfully!
Name: Newsletter Signup
Type: event
Target: Newsletter Signup

View at: dashboard.trackveil.net/app/goals

Cursor Configuration File

Download and save this as .cursor/mcp.json in your project:

{
  "mcpServers": {
    "trackveil": {
      "url": "https://mcp.trackveil.net",
      "headers": {
        "Authorization": "Bearer tv_YOUR_API_KEY_HERE"
      }
    }
  }
}

Replace tv_YOUR_API_KEY_HERE with your actual API key from your dashboard.

Available Plans

The MCP server works with all plan tiers. Data shown respects your plan limits:

Add-ons increase your limits! The MCP automatically respects your total limit (base plan + add-ons).

If you're over your limit, the AI will show you limited data and provide an upgrade link!

Requirements