Connect AI assistants (MCP)
Ask Claude, ChatGPT, Cursor or VS Code about your TruVisits analytics. Read-only, signed in with your TruVisits account, and you can disconnect at any time.
TruVisits runs a remote Model Context Protocol (MCP) server. Add it to your assistant and ask about your traffic in plain words: it answers from your real numbers, for the sites you choose.
https://truvisits.app/mcpBefore you start
- A TruVisits account with at least one site. MCP works on every plan, including Free.
- An assistant that supports remote MCP servers: Claude (web, desktop, mobile), ChatGPT, Claude Code, Cursor, VS Code, Codex and others.
Connect by signing in (recommended)
Paste the URL into your assistant. It opens TruVisits, where you sign in, choose which sites it can read (all of them or one), and allow it. Nothing to copy or keep safe, and you can disconnect it at any time.
Claude
- Open TruVisits in the Claude connectors directory and choose Connect. It works in Claude.ai and the Claude desktop and mobile apps.
- Sign in to TruVisits if asked, pick the sites, and choose Allow.
Or add it by hand: in Settings → Connectors → Add custom connector, paste https://truvisits.app/mcp and choose Connect. On Team and Enterprise plans, an owner may need to allow the connector first.
ChatGPT
- Open Settings → Apps & Connectors → Advanced settings and turn on Developer mode.
- Create a connector with
https://truvisits.app/mcpand OAuth authentication. - Allow it on the TruVisits page that opens, then turn it on from the tools menu in a chat.
Claude Code
claude mcp add --transport http --scope user truvisits https://truvisits.app/mcpThen type /mcp in Claude Code, pick truvisits and choose Authenticate.
Cursor
Add to ~/.cursor/mcp.json; Cursor asks you to sign in the first time it uses it.
{
"mcpServers": {
"truvisits": {
"url": "https://truvisits.app/mcp"
}
}
}VS Code
Add to .vscode/mcp.json, start the server from the MCP view, and sign in when asked.
{
"servers": {
"truvisits": {
"type": "http",
"url": "https://truvisits.app/mcp"
}
}
}Connect with a key
For tools that can't sign in, such as scripts, CI or Codex, create a key in your dashboard under Settings → AI assistants (MCP) → Use a key. Choose which sites it reads and when it expires (7, 30, 60 or 90 days, a year, or never), then send it as a header:
Authorization: Bearer tv_mcp_…The key is shown once. Treat it like a password, and revoke it in the same place when you no longer need it.
Tools
Every tool only reads. Each takes a site (its domain or id) and a window: a preset period (today, yesterday, 7d, 30d, month, 90d, 12m) or from and to dates, in the site's timezone. Bots are filtered out of the numbers, and most reports include the previous window for comparison.
list_sites: Your sites with the last 7 days at a glance. Start here.get_overview: Visitors, visits, page views, bounce rate, duration, revenue, AI visits and bots, against the previous window, with a time series.get_breakdown: Top pages, entry and exit pages, channels, sources, referrers, UTM tags, countries, cities, devices, browsers, goals or outbound links, with filters.get_realtime: Who is on the site right now: pages, sources, countries, latest events and payments.get_events: Tracked events by type and name, with trends and optionally their custom properties.get_goals: Every goal with completions, people and revenue.list_funnels / run_funnel: Saved funnels, or any steps you describe, with drop-off and revenue per step.get_retention: Cohorts of new visitors and how many came back.get_journeys: The paths visitors take through the site, with goals and revenue.get_revenue: Revenue from connected payment providers, credited to the visits that caused it.get_ai_crawlers: Requests from AI and search crawlers (GPTBot, ClaudeBot, PerplexityBot, Googlebot...) by crawler and page.get_traffic_quality: How traffic splits between people, filtered bots and crawlers.get_errors: JavaScript errors visitors hit, grouped, with the visits and visitors affected.
Questions to try
- How can you help me with my TruVisits analytics?
- How did my sites do this week compared with last week?
- Where did last week's sign-ups and payments come from?
- Which pages bring visitors from Google, and which ones keep them longest?
- Which AI crawlers read my site, and which pages do they read most?
- What JavaScript errors are visitors hitting, and on which pages?
Access and data
- Read-only: no tool can change your sites, settings, goals or data.
- An assistant sees exactly what your account can see, never more. A connection or key limited to one site can read only that site.
- Sign-in uses OAuth 2.1 with PKCE. Access tokens last an hour and refresh tokens rotate on every use. Tokens and keys are stored only as hashes.
- TruVisits sends the assistant the report it asked for and nothing else. We don't receive or store your conversations, prompts or memory.
- See every connected app and key in Settings → AI assistants (MCP), and disconnect or revoke any of them at once.
- More in the privacy policy and on the security page.
Troubleshooting
- “This connection link isn't valid”: start connecting again from your assistant; the link it opened was incomplete or expired.
- The assistant stopped working: the key may have expired or been revoked, or the app was disconnected. Connect again, or create a new key.
- A site is missing: the connection may be limited to one site. Disconnect it in Settings and connect again with all sites.
Support
Questions or problems: write to support@truvisits.app and we reply by email.