# Microsoft Clarity MCP server

> Ask in plain English to find Microsoft Clarity session recordings, check traffic metrics, or get setup answers.

- Sign-in: See setup
- Connect in RevampKey: https://revampkey.com/marketplace/microsoft-clarity

## Agent skills (1)

- [Microsoft Clarity Essentials: Use Clarity Data with AI Safely](https://revampkey.com/marketplace/microsoft-clarity/skills/essentials.md): Shows how an AI assistant should work with your Clarity project: confirm the project and time window first, pick the right tool for the question, and report what the data can and cannot support.

All skills: https://revampkey.com/marketplace/microsoft-clarity/skills.md

Microsoft Clarity is a free analytics tool from Microsoft. It records real users on your website or app, so you can watch their sessions. It also shows heatmaps of where people click, scroll and drop off. Marketers, product teams and site owners use it to find where visitors get stuck. Microsoft says more than 2 million sites and apps use Clarity worldwide.

Connect Clarity to RevampKey from the Connectors tab. Then ask the agent about your project in plain English. It can list session recordings and filter them by URL, device type, browser, OS, country and city. It can pull figures from your project's analytics dashboard, such as traffic metrics. It can also find answers in Clarity's documentation, including setup steps and troubleshooting. All three tools only read data.

## What you can do

### Reviewing mobile sessions

A product manager wants to see how phone visitors use the site. They ask for the most recent Clarity sessions from mobile devices. The agent lists those session recordings from your project, using the filters you set. You then pick which recordings to open and watch in Clarity.

### Checking traffic by country

After a new campaign goes live, you ask how many sessions came from Germany in the past three days. The agent queries your project's analytics data for that country and date range. It reports the traffic metrics back to you in a short summary.

### Setting up custom event tracking

You are adding a new feature and want to track button clicks as custom events. You ask how to do this in Microsoft Clarity. The agent searches Clarity's documentation and returns the matching setup steps. You can then follow those instructions in your own project.

## Things to ask

- Show me the most recent Clarity sessions from mobile devices.
- Which browsers were most used in my Clarity project this week?
- Find Clarity recordings where users ran into JavaScript errors.
- How do I track custom events in Microsoft Clarity?
- Summarize the traffic metrics for my Clarity project for the last 7 days.

## What the agent can do

### Session recordings

List your project's session recordings and narrow them by URL, device type, browser, OS, country, city and more. Ask for the top sessions by number of clicks, or for recordings where users hit JavaScript errors.

`list-session-recordings`

### Analytics dashboard

Ask for traffic metrics and user behavior figures from your project's analytics dashboard in plain English. Filter by browser, device, country and other dimensions, over a date range such as the last week.

`query-analytics-data`

### Clarity documentation

Ask how to do something in Microsoft Clarity. The agent returns matching documentation snippets, covering setup guides, features, custom events, labels on recordings and troubleshooting.

`query-documentation-data`

## FAQ

### What do I need to connect Microsoft Clarity to RevampKey?

You need a Microsoft Clarity account and an API token. The Clarity MCP server documentation explains how to generate the token. Then add Microsoft Clarity from the Connectors tab in RevampKey, and the agent can start reading your project.

### What can the agent do in Microsoft Clarity, and what can't it do?

The agent can list session recordings, query analytics dashboard data and search Clarity's documentation. The connector gives the agent only these three tools, and none of them edit your project. Ask in plain English and the agent picks the tool that fits your question.

### What data does the agent read, and does it ask before changing anything?

The agent reads your project's session recordings, analytics data and documentation through the connector. Because the three tools only read, there is no change for the agent to make or ask about. Check the agent's answers against the recordings or dashboard in Clarity before you act on them.

### Which Microsoft Clarity data can the agent see?

The agent sees the session recordings and analytics dashboard data for your Clarity project. You can filter recordings by URL, device type, browser, OS, country and city. The three tools listed here do not cover heatmaps or AI summaries, so the agent cannot read those.

### Is the Microsoft Clarity MCP server local or remote?

It runs on your own computer with npx (package @microsoft/clarity-mcp-server@2.0.1). Your client starts it as a local process; nothing is hosted.

### What can an AI agent do with the Microsoft Clarity MCP server?

It exposes 3 tools: 3 that read and 0 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for Microsoft Clarity?

Yes. 1 SKILL.md playbooks teach an agent how to do real Microsoft Clarity work step by step. RevampKey installs them when you connect Microsoft Clarity; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (3)

- `list-session-recordings`
- `query-analytics-data`
- `query-documentation-data`

## Details

- Maker: Microsoft
- Setup: Connect from the app
- Documentation: https://github.com/microsoft/clarity-mcp-server

Page: https://revampkey.com/marketplace/microsoft-clarity
