Microsoft Clarity MCP
Overview
Description from the maker (original English)
Microsoft Clarity MCP: behavioral UX analytics, rage clicks, dead clicks, scroll, and JS errors.
PopNx MCP’s three pillars
These three are never merged into one score: opinions, measurements and popularity are different things.
- User voiceiNo reviews yetReviews open together with accounts in a later step
- Our basic checksi1 of 1 passedChecked from public information; code not scanned yet
- UsageiVery new↓ 67/wk · ★ –
What you can do with it
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
- Connection: Runs on your computer
- Transport: stdio
- Category: Marketing & social media
Install
Pick the AI app you use, then copy the settings.
Before you install
- Basic checks: 1 of 1 passed
- Runs on your computer with your user’s permissions (files, network, apps).
- You fill in yourself:
CLARITY_API_TOKEN,CLARITY_PROJECT_ID
You need
- PyPIPython’s uv installed (for the uvx command)
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"microsoft-clarity": {
"command": "uvx",
"args": [
"microsoft-clarity-mcp"
],
"env": {
"CLARITY_API_TOKEN": "your-value",
"CLARITY_PROJECT_ID": "your-value"
}
}
}
}Run this in your terminal
claude mcp add microsoft-clarity --env CLARITY_API_TOKEN=your-value --env CLARITY_PROJECT_ID=your-value -- uvx microsoft-clarity-mcpFill in the empty values before running it.
Or copy the settings yourself
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"microsoft-clarity": {
"command": "uvx",
"args": [
"microsoft-clarity-mcp"
],
"env": {
"CLARITY_API_TOKEN": "your-value",
"CLARITY_PROJECT_ID": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Or copy the settings yourself
Paste into .vscode/mcp.json in your project
{
"servers": {
"microsoft-clarity": {
"type": "stdio",
"command": "uvx",
"args": [
"microsoft-clarity-mcp"
],
"env": {
"CLARITY_API_TOKEN": "your-value",
"CLARITY_PROJECT_ID": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
Values you fill in
CLARITY_API_TOKENenvMicrosoft Clarity Data Export API tokenCLARITY_PROJECT_IDenvMicrosoft Clarity Project ID
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 9, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account surendranb, which owns the repo
- … Not checked yet
Still maintained
We have not read this repo from GitHub yet
- … Not checked yet
Has a licence
We have not read this repo from GitHub yet
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Compared with others in Marketing & social mediai
- More stars than 0% of the other 3620 servers in this category
- Published to the registry more recently than 74% of the other 3620 servers in this category
- Basic checks equal to or better than 100% of the other 3620 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is Microsoft Clarity MCP safe?
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
The registry does not list a required key, though some servers ask you to sign in on first use.
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed –, and the latest version (0.1.3) reached the registry 11 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
What can I use instead?
In the same category: MCP YouTube Transcript, BibiGPT YouTube Video Summarizer, gtm-api: LinkedIn MCP Server
Alternatives
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
gtm-api: LinkedIn MCP Server
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Microsoft Clarity MCP Server (microsoft-clarity-mcp)
FastMCP server exposing Microsoft Clarity's Data Export API for behavioral UX analysis, rage clicks, dead clicks, quick backs, excessive scrolling, and JavaScript runtime errors.
Companion behavioral diagnostics engine to Google Analytics and Search Console for AI agents.
1. Quickstart
Run directly without installing via uvx (Python) or npx (Node):
Via Python (uvx)
uvx microsoft-clarity-mcp
Via Node (npx)
npx microsoft-clarity-mcp
2. MCP Client Configuration
Add to your MCP client config (claude_desktop_config.json, cursor.json, or Antigravity/OpenCode):
{
"mcpServers": { "microsoft-clarity": { "command": "uvx", "args": ["microsoft-clarity-mcp"], "env": { "CLARITY_API_TOKEN": "your_clarity_api_token_here" } } } }
Or using npx:
{
"mcpServers": { "microsoft-clarity": { "command": "npx", "args": ["-y", "microsoft-clarity-mcp"], "env": { "CLARITY_API_TOKEN": "your_clarity_api_token_here" } } } }
3. Authentication & API Tokens
Microsoft Clarity secures data export via static JWT Bearer tokens:
- Log in to Microsoft Clarity.
- Open your project dashboard.
- Navigate to Settings -> Data Export.
- Click Generate new API token (provide a name between 4 and 32 alphanumeric characters, e.g.
clarity-agent). - Copy the generated token and configure
CLARITY_API_TOKEN.
4. Rate-Limit Defense & Persistent Caching
- Daily Quota: Microsoft Clarity strictly allows 10 requests per project per day.
- Automatic Cache: To safeguard user quota from runaway agent loops, all responses are cached locally on disk at
~/.clarity_mcp/cache.jsonwith a 1-hour TTL (configurable viaCLARITY_CACHE_TTL). - Stale Cache Fallback: If the daily 10-request quota is reached, the server automatically serves stale cached data with an explicit warning, ensuring your agents remain operational without hard crashing.
- Quota Transparency: Every tool response includes metadata detailing
calls_used_today,remaining_today, anddaily_limit.
5. Tools
| Tool | Parameters | Description |
|---|---|---|
get_ux_insights | project_id, num_of_days=3, token | High-level behavioral friction metrics: session counts, rage clicks, dead clicks, quick backs, excessive scroll, and JS errors. |
get_frustration_breakdown | project_id, dimension="URL", num_of_days=3, token | Ranks friction severity broken down across URL paths, devices, browsers, operating systems, or countries. |
get_js_errors | project_id, num_of_days=3, token | JavaScript runtime exceptions and error clicks grouped across browsers and operating systems. |
doctor | project_id, token | Diagnostic utility checking token format, cache integrity, and remaining daily API quotas. |
skills_list | *(none)* | Lists dynamic skill playbooks bundled with the server. |
skill_read | name | Fetches operational playbooks (e.g. ux-triage, setup-clarity-token, frustration-audit). |
check_for_updates | *(none)* | Queries PyPI for newer versions and upgrade commands. |
6. Telemetry & Privacy
This package includes anonymous usage telemetry to ensure reliability and detect runtime bugs across different client harnesses. Telemetry adheres strictly to Schema v2:
- Opt-Out: Strictly respects
DO_NOT_TRACK=1,DISABLE_TELEMETRY=1, orCLARITY_TELEMETRY=false. - Zero PII: No user URLs, personal identifiers, or authentication tokens are ever captured.
License
MIT License. Copyright (c) 2026 Surendran B.