Skip to content

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

  1. 01

    Install Node.js 16 or later.

  2. 02

    In your Clarity project, open Settings › Data Export and generate an API token.

  3. 03

    Replace the token placeholder in the command argument yourself; this setup does not use a CLARITY_API_TOKEN environment variable.

  1. 01

    In the AI panel, open Customize › Connections.

  2. 02

    Under Add connection, choose Local command.

  3. 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.

  4. 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-dashboard
  • query-documentation-resources

Other · 1

  • list-session-recordings

Try Pro free for 14 days

Every new account gets the trial with no card, then moves to Free and keeps its data. For Mac and Windows.