vTilt
By roleFoundersKnow what to fix firstMarketersSee what happens after the clickCMOsSee what your budget really buys
By businessSaaSTurn signups into active usersEcommerceSee why shoppers abandon cartsAgenciesProve your work to clientsEnterpriseOne customer record for every team
MeasureWeb AnalyticsFind where buyers leaveSession ReplaySee why they left, not just that they didAdsKnow what paid visitors do nextIntegrationsOne snippet feeds your stack
ThinkPeopleOne profile per customerCustomer MemoryvTilt remembers every visitorSite KnowledgeAnswers and audits from your own pages
ActAsk AIAnswers from real behaviorAI ChatChat that knows the visitorEmail CampaignsEmail from real visits
PricingWhy vTiltDocs
Docs / Cursor
Getting Started
OverviewInstallInitializeIdentify usersTrack eventsLogout & resetVerify eventsCommon mistakes
Guides
Event forwardingGoogle Tag Manager
Site builders
WordPressShopifyWebflowWixSquarespaceReverse proxyRealtime dashboardSite knowledgeStudioWebsite chat MCP
Frontend frameworks
Next.jsNuxt.jsVue.jsReactReact RouterRemixGatsbySvelte / SvelteKitAstroAngularTanStack StartDocusaurus
Backend frameworks
NestJSHonoCloudflare WorkersDjangoFlaskLaravelPhoenixRuby on Rails
Backend languages
PythonPHPRubyElixirGoJava.NET / C#Rust
Stack guides
Vue + PHP
API Reference
Browser SDK
Script bundlesAutocaptureWeb VitalsSession recordingChat widgetOutbound messagesCookie consentFeature readinessRemote configurationDebug logging
Node SDK
Install & setupCapture, identify & aliasContext & shutdownGlobal properties & opt-outError tracking
Content SDK
Headless blog
MCP server
Guides
OverviewAuthenticationOAuthAgent skills (prompts)AI intelligenceSite knowledgeGoogle AdsMeta AdsGoogle Search ConsoleGoogle Business Profile
Client setup
CursorClaude DesktopVS CodeChatGPTCodex

Getting Started

OverviewInstallInitializeIdentify usersTrack eventsLogout & resetVerify eventsCommon mistakes

Guides

Event forwardingGoogle Tag Manager
Reverse proxyRealtime dashboardSite knowledgeStudioWebsite chat MCP

API Reference

MCP server

CursorClaude DesktopVS CodeChatGPTCodex
On this page

On this page

  • 1. Open Cursor's MCP settings
  • 2. Add the vTilt server
  • 3. Pin a project (multi-project users only)
  • Parallel chats with one key (x-vtilt-mcp-session-id)
  • 4. Verify the connection
  • 5. Integrate into a new codebase
  • 6. Try a real analytics prompt
  • 7. Pin a fixed toolset (optional)
  • 8. Multiple projects, multiple entries
  • Troubleshooting
  • Next steps
DocsMCP serverClient setupCursor

Cursor

Last updated November 25, 2026

Connect Cursor to vTilt's MCP server. Install via the Cursor MCP catalogue or edit ~/.cursor/mcp.json by hand.

Note

Part of the MCP server Client setup guides — see Authentication or OAuth before editing mcp.json.

Cursor ships first-class support for remote MCP servers — no bridge process required. Once configured, every Cursor chat (and Cursor's coding agent) can call vTilt tools while keeping the same vtu_ key for the lifetime of the connection.

Important

Get a vtu_ key first. See Authentication — the rest of this page assumes you have the secret on your clipboard.

#1. Open Cursor's MCP settings

  • Cursor desktop → Settings (gear icon, top-right of the chat) → Model Context Protocol.
  • Or open the file directly: ~/.cursor/mcp.json (macOS / Linux) / %USERPROFILE%\.cursor\mcp.json (Windows).

#2. Add the vTilt server

Add this entry under mcpServers:

{
  "mcpServers": {
    "vtilt": {
      "url": "https://www.vtilt.com/api/mcp",
      "headers": {
        "Authorization": "Bearer vtu_YOUR_SECRET"
      }
    }
  }
}
json

Save and reload Cursor (the chat panel auto-reconnects).

#3. Pin a project (multi-project users only)

If your account has access to more than one project, add a header so the server doesn't have to ask:

{
  "mcpServers": {
    "vtilt": {
      "url": "https://www.vtilt.com/api/mcp",
      "headers": {
        "Authorization": "Bearer vtu_YOUR_SECRET",
        "x-vtilt-project-id": "YOUR_PROJECT_ID"
      }
    }
  }
}
json

You can find the project id at Project settings → General in the dashboard.

If you'd rather pick the project conversationally, omit x-vtilt-project-id and ask the agent: "List my projects, then switch me to the Marketing site one." Cursor will call list_projects to see the catalog, then switch_project (accepts the project's display name directly — UUID not required), and remember the pin for 30 days.

#Parallel chats with one key (x-vtilt-mcp-session-id)

If several Cursor chats (or agents) share the same vtu_ secret, each switch_project call would normally overwrite the same Redis pin. Add a stable UUID per MCP server entry so each connection gets its own pin namespace:

{
  "mcpServers": {
    "vtilt": {
      "url": "https://www.vtilt.com/api/mcp",
      "headers": {
        "Authorization": "Bearer vtu_YOUR_SECRET",
        "x-vtilt-mcp-session-id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
      }
    }
  }
}
json

Generate a fresh UUID for every duplicate entry (for example vtilt-marketing-chat vs vtilt-product-chat). Invalid or malformed values are ignored — behaviour falls back to the shared default pin.

#4. Verify the connection

In a new Cursor chat, ask:

List the available vTilt tools.
text

Cursor calls tools/list and you should see the boot toolsets: the meta tools (list_toolsets, get_toolset, enable_toolset, call_toolset_tool, plus call_toolset_write_tool on write credentials), the orientation set get_guide / get_context / get_data_model / list_projects (plus switch_project when you have more than one accessible project and did not set x-vtilt-project-id), the analytics set (get_kpis, get_attribution, list_recent_events, list_event_types), the VQL trio (run_query, validate_query, get_query_schema), and search_docs (see Supported tools). Pin-scoped read connectors (Search Console, Business Profile, Google/Meta Ads reads, recordings, inbox reads, AI memory Q&A) also appear when your pinned or last-used project has that feature connected. Writes, persons, campaigns, content, and full site-knowledge stay on-demand.

Important

Cursor caches the tool catalogue at connect. After enable_toolset or switch_project, agents should call call_toolset_tool for missing reads or call_toolset_write_tool for missing writes — do not require a reconnect. You can still pin toolsets on the URL — see Pin a fixed toolset.

If Cursor reports a connection error:

  • Check the secret was copied in full — they're long.
  • Check the header line ends with the secret and not the project token (vt_); see Authentication for the difference.
  • Try a curl health check from the Authentication page.

#5. Integrate into a new codebase

Your mcp.json already holds the personal API key (vtu_). That key is not the SDK project token — the agent fetches the public vt_ token via MCP tools.

Paste one of these into a Cursor chat that has the repo open:

Integrate vTilt into this repo. Use /vtilt:integrate — create a
project if needed and wire the install snippet from get_install_snippet.
Prefer the inline script stub. Do not leave YOUR_PROJECT_TOKEN in the code.
text
Add vTilt analytics to this Next.js app. Call /vtilt:integrate with
stack nextjs, then verify with list_recent_events.
text

If create_project / get_install_snippet are missing from the tool list, enable_toolset { toolset: "project" } then call call_toolset_write_tool for create_project or call_toolset_tool for get_install_snippet — do not reconnect. (Optional: pin ?toolsets=default,project on the URL before connect.)

Note

Creating a project requires a write-scoped personal API key (or OAuth mcp:write) and workspace owner/admin. Workspace signup itself still happens in the dashboard.

#6. Try a real analytics prompt

Compare last week's visits to the previous week. Show the
top 5 sources for each week side by side.
text

Cursor will call get_kpis (twice, once per week) and synthesise the comparison into the chat. The same prompt with list_recent_events works directly; list_recordings is available the moment session replay is enabled on the project (the recordings toolset auto-lists) — Cursor figures out which tool to use.

Naming a project in the prompt also works:

Switch to the Product app project and show me last week's KPIs.
text

Cursor calls list_projects (to map "Product app" → UUID), switch_project with the resolved id, and then get_kpis. The pin sticks for the rest of the conversation, so subsequent prompts ("show me churn this quarter") stay on the same project until you ask to switch again.

#7. Pin a fixed toolset (optional)

By default Cursor sees the boot toolsets and enables more on demand. If you want to lock the surface — e.g. only analytics tools while writing a marketing report — add a ?toolsets= (or ?tools=) query parameter to the URL. See Selecting toolsets for the full list of ids (all, default, persons, google-ads, …).

{
  "mcpServers": {
    "vtilt-analytics-only": {
      "url": "https://www.vtilt.com/api/mcp?toolsets=analytics",
      "headers": {
        "Authorization": "Bearer vtu_YOUR_SECRET",
        "x-vtilt-project-id": "YOUR_PROJECT_ID"
      }
    }
  }
}
json

You can register the same key under multiple server names with different filters and pick the right one per conversation.

#8. Multiple projects, multiple entries

To make several projects always-on (rather than switch_project-on-demand), register one entry per project:

{
  "mcpServers": {
    "vtilt-marketing": {
      "url": "https://www.vtilt.com/api/mcp",
      "headers": {
        "Authorization": "Bearer vtu_YOUR_SECRET",
        "x-vtilt-project-id": "PROJECT_ID_MARKETING"
      }
    },
    "vtilt-product": {
      "url": "https://www.vtilt.com/api/mcp",
      "headers": {
        "Authorization": "Bearer vtu_YOUR_SECRET",
        "x-vtilt-project-id": "PROJECT_ID_PRODUCT"
      }
    }
  }
}
json

Cursor exposes them as vtilt-marketing and vtilt-product separately.

#Troubleshooting

  • "Unauthorized" — the bearer token is missing, malformed, revoked, or expired. Check the error table.
  • "Forbidden — project_not_accessible" — x-vtilt-project-id points at a project you don't have access to. Remove the header to fall back to switch_project, or use a project id from your dashboard.
  • "Rate limit exceeded" — you've made more than 60 requests in the last minute on this key. Cursor surfaces retryAfter to the agent; well-behaved agents back off automatically.
  • No tools shown — the connection is up but tools/list returned an empty list. This usually means the key has scopedProjectIds allowlisting projects you no longer access. Create a fresh key.

#Next steps

  • Authentication — full key lifecycle and error reference.
  • MCP server overview — the seven phase-1 tools and what they do.
PreviousGoogle Business ProfileMCP serverNextClaude DesktopMCP server