What you can do with Microsoft Clarity

Built for

Growth Teams, Product Analytics, Conversion Optimization, Marketing Operations

Example workflows

Yesterday's traffic snapshot

Structured export for a daily pulse — counts against the 10/day export cap.

Try this

Using Microsoft Clarity, export the last 24 hours of session traffic and engagement time for our site and summarize whether bot traffic is material.

Sessions with rage clicks

Uses recording metadata filters without spending export quota.

Try this

List the 10 most recent Microsoft Clarity session recordings from the last 48 hours where rage clicks were present.

Clarity custom events setup

Documentation search for implementation guidance.

Try this

Search Microsoft Clarity documentation for how to send custom events from a React app.

Context to know first

What data can agents access from Microsoft Clarity?

Structured dashboard metrics (traffic, engagement, friction signals, dimensional breakdowns), natural-language dashboard answers, session recording samples with links, and official documentation snippets — all with one Data Export token.

What are the API limits?

The structured export tool (clarity_live_insights) allows 10 requests per project per UTC day and 1–3 days of history. Documentation, session recordings, and NL dashboard queries use separate Microsoft endpoints and keep working when the export cap is exhausted. Clarity has no paid quota upgrade today.

Does this include session recordings?

Yes — clarity_list_recordings returns sample session metadata and links to watch in the Clarity UI. Video bytes and heatmap images are not streamed through the API.

AI Skill
SKILL.md

Domain knowledge for Microsoft Clarity — workflow patterns, data models, and gotchas for your AI agent.

Microsoft Clarity

Microsoft Clarity records how visitors use a website: sessions, scroll depth, engagement time, rage clicks, dead clicks, quick backs, script errors, and traffic sources. One Data Export token (Clarity → Settings → Data Export) powers all tools in this bundle.

Four API surfaces (same token)

ToolBackendBest for
clarity_live_insightsclarity.ms/export-data GETDeterministic metric blocks with dimension_1dimension_3 and metric_names filtering
clarity_query_dashboardclarity.microsoft.com/mcp/dashboard/query POSTNatural-language dashboard questions ("top browsers last 3 days")
clarity_list_recordingsclarity.microsoft.com/mcp/recordings/sample POSTSample session recording metadata (links, duration, filters)
clarity_query_docsclarity.microsoft.com/mcp/documentation/query POSTOfficial Clarity documentation snippets
clarity_list_snapshots(local inventory)See cached upstream payloads and quota without calling Microsoft

Snapshot caching (all fetch tools)

Every upstream tool accepts refresh and allow_stale:

  • Default: serve a fresh cached snapshot when one exists for the same upstream arguments (dimensions, date range, NL query, etc.).
  • metric_names and compact on clarity_live_insights are local filters — they narrow a cached export without spending quota.
  • When export quota is exhausted, set allow_stale=true (default) to read the latest cached export; only use refresh=true when the user explicitly wants a new upstream call.
  • clarity_list_snapshots lists stored snapshots and quota windows for the connected credential.

Operational order

  1. clarity_list_snapshots or a cached read when you only need data already fetched for this credential.
  2. clarity_query_docs when the user needs setup, SDK, privacy, or feature guidance — no export quota cost.
  3. clarity_live_insights with num_of_days=1 and no dimensions for a structured traffic pulse — only 10 calls/project/UTC day on this endpoint.
  4. clarity_query_dashboard for exploratory NL questions when structured export is awkward — separate from the export quota.
  5. clarity_list_recordings to find sessions with rage clicks, errors, or device filters — empty [] is normal on low-traffic projects.

For structured breakdowns, prefer one clarity_live_insights call with dimension_1 set rather than multiple aggregates. Use metric_names to trim a response locally without another export call.

Metrics from clarity_live_insights

MetricMeaning
TrafficSession counts, bot sessions, distinct users, pages per session
EngagementTimeTotal and active engagement time
ScrollDepthAverage scroll depth
DeadClickCountClicks on non-interactive elements
RageClickCountRapid repeated clicks signaling frustration
QuickbackClickFast navigations away after landing
ExcessiveScrollUnusually long scroll sessions
ScriptErrorCountJavaScript errors observed in sessions
ErrorClickCountClicks that coincided with errors
Browser / Device / OS / CountryDimensional breakdown rows when requested
PageTitle / ReferrerUrl / PopularPagesContent and acquisition breakdown rows

Quotas and limits

  • clarity_live_insights only: 10 requests per project per UTC day (HTTP 429 Exceeded daily limit). History window is 1–3 days; max 1,000 rows; no pagination; timestamps are UTC.
  • clarity_query_dashboard, clarity_list_recordings, clarity_query_docs: use Microsoft's clarity.microsoft.com/mcp HTTP APIs with the same token. They are not blocked when the export daily cap is hit — plan agents around that split.
  • Session recordings return metadata and links, not video files. Heatmap images are not exposed via API.
  • Clarity is free; there is no paid tier to raise export limits today (Microsoft has noted higher limits on their roadmap).

Gotchas

  • Low-traffic projects return HTTP 200 with zero/null metrics or empty recording arrays — use compact=true (default) on exports to drop empty sections.
  • Each token is scoped to one Clarity project; agencies need one credential per project.
  • clarity_query_dashboard works best with single-purpose questions and explicit time ranges; avoid multi-metric kitchen-sink prompts.
  • Invalid dimension or metric names are rejected before the upstream export call.

Tools in this Server (5)

Clarity List Recordings

List sample Microsoft Clarity session recordings with metadata such as session links, duration, click counts, and applied filters. Responses are snaps...

Clarity List Snapshots

List cached Microsoft Clarity upstream snapshots stored for the connected credential: surface, argument fingerprint, fetch time, and payload size. Use...

Clarity Live Insights

Export live Microsoft Clarity dashboard metrics for the connected project as JSON. Responses are snapshot-cached per credential — reuse metric_names a...

Clarity Query Dashboard

Ask a natural-language question against the Microsoft Clarity analytics dashboard and receive structured rows (traffic, devices, pages, friction signa...

Clarity Query Docs

Search official Microsoft Clarity documentation and return relevant snippets for setup, features, troubleshooting, SDK integration, recordings, heatma...

Frequently Asked Questions

What is the Microsoft Clarity MCP server?

Microsoft Clarity is a free behavioral analytics platform for websites. Query live dashboard metrics, session recording samples, and official documentation through Microsoft's Clarity APIs using a single Data Export token — structured metric export, natural-language dashboard questions, filtered recording lists, and doc search. It provides 5 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect Microsoft Clarity to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/microsoft-clarity. Authentication is handled automatically.

How many tools does Microsoft Clarity provide?

Microsoft Clarity provides 5 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does Microsoft Clarity require?

Microsoft Clarity uses API Key. Microsoft Clarity requires credentials. Connect via MCPBundles and authentication is handled automatically.

What data can agents access from Microsoft Clarity?

Structured dashboard metrics (traffic, engagement, friction signals, dimensional breakdowns), natural-language dashboard answers, session recording samples with links, and official documentation snippets — all with one Data Export token.

What are the API limits?

The structured export tool (clarity_live_insights) allows 10 requests per project per UTC day and 1–3 days of history. Documentation, session recordings, and NL dashboard queries use separate Microsoft endpoints and keep working when the export cap is exhausted. Clarity has no paid quota upgrade today.

Does this include session recordings?

Yes — clarity_list_recordings returns sample session metadata and links to watch in the Clarity UI. Video bytes and heatmap images are not streamed through the API.

Setup Instructions

Connect Microsoft Clarity to any MCP client in minutes

MCP URL
https://mcp.mcpbundles.com/bundle/microsoft-clarity

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to Microsoft Clarity and paste the MCP URL into Remote MCP server URL.
  4. Click Add. Microsoft Clarity will appear under Not connected — select it and click Connect to complete OAuth.
Name: Microsoft Clarity
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/microsoft-clarity
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Ready to use Microsoft Clarity?

Sign in to connect your credentials and start running tools from the chat.

Microsoft Clarity MCP Server & Skill — 5 Tools