Set up the Microsoft Clarity MCP server
Read Microsoft Clarity dashboard analytics and find session recordings from your AI client.
Official · Microsoft
Add it to your client
Before you start
- 01
Install Node.js 16 or later.
- 02
In your Clarity project, open Settings › Data Export and generate an API token.
- 03
Replace the token placeholder in the command argument yourself; this setup does not use a CLARITY_API_TOKEN environment variable.
- 01
In the AI panel, open Customize › Connections.
- 02
Under Add connection, choose Local command.
- 03
Name the connection Microsoft Clarity. Set the command to npx and the arguments to @microsoft/clarity-mcp-server --clarity_api_token=your-token-here.
- 04
Save the connection, then review the tools it makes available.
Replace the API-key placeholder yourself before using the command or config. Keep the key out of chat and shared config files.
What you can do
Query dashboard analytics.
List session recordings.
Read Clarity documentation resources.
Try asking
“List the session recordings available for this project.”
What it can change
Reads analytics, recordings, and documentation only. The API allows 10 requests per project per day, up to 3 days of data, and 3 dimensions per request.
Browse 3 tools
query · 2
query-analytics-dashboardquery-documentation-resources
Other · 1
list-session-recordings