Builders: list your MCP server or AI tool for free.Submit a listing
Analytics and dataMCP serverOfficial

Microsoft Clarity MCP Server

Ask an AI client about Clarity traffic, session recordings and AI visibility data

By MicrosoftLast checked Local server

In short: Microsoft's open-source MCP server for Clarity. Query traffic and behaviour metrics, find session recordings and check AI citations and crawler activity.

What it does

The Microsoft Clarity MCP Server is an open-source project from the Clarity team at Microsoft. It connects an AI client to your Clarity projects, so you can ask about visitor behaviour and session recordings without opening the Clarity dashboard.

A typical request: “List the most recent sessions on mobile where visitors hit a JavaScript error on the pricing page.” The server finds matching recordings and returns them with links. It also covers Clarity’s AI visibility features, which show how often AI assistants cite your site and which AI crawlers request your pages.

Good uses for marketing teams

  • Finding session recordings for a landing page after a campaign launch, filtered by device or country
  • Finding sessions with JavaScript errors on key pages before they cost conversions
  • Checking which AI queries and topics cite your domain, and which pages they cite
  • Tracking how often AI crawlers visit compared with the traffic they send back
  • Quick answers on how to set up a Clarity feature, from the documentation tool

Things to know

  • The server runs locally through npx and signs you in with your Microsoft Clarity account. Setup takes about ten minutes.
  • Most tools only read data. The Topic Insights tools can create, regenerate and delete reports, and deletion asks for confirmation first.
  • Bot activity data needs a CDN connected to the project, and citation and Topic Insights data need a verified domain.
  • Keep each request focused on one question. Microsoft recommends this for better answers.
  • A running server does not update itself. Restart the client to pick up a new version.

What it can do

  • Query dashboard metrics such as sessions, browsers, devices and countries in plain language
  • List session recordings filtered by URL, device, browser, operating system, country and more
  • Report AI visibility citations, the queries and topics that cite your domain, and the top cited pages
  • Show AI crawler activity, requested paths, status codes and scrape-to-referral ratios
  • Read Topic Insights reports on citation rate and competitive share
  • Create, regenerate and delete Topic Insights reports, with a confirmation before deletion
  • Search the Clarity documentation for setup and troubleshooting answers

How to set it up

  1. Install Node.js 16 or later. You also need admin or member access to at least one Clarity project.
  2. Add the server to your AI client with the configuration below. In VS Code you can use the install button on the GitHub page, and Claude desktop lists Microsoft Clarity in its connector gallery.
  3. Restart the client and ask it to sign in to Microsoft Clarity. A browser window opens for the Microsoft sign-in.
  4. After sign-in, pick a default project if you have more than one.
  5. Ask how many Clarity sessions you had in the past 7 days to confirm it works.

Example client configuration from the publisher’s docs. Replace the placeholder values with your own.

{
  "mcpServers": {
    "microsoft-clarity": {
      "command": "npx",
      "args": ["-y", "--prefer-online", "@microsoft/clarity-mcp-server@latest"]
    }
  }
}

Works with

Based on the publisher’s documentation and the transport the server uses. Check the publisher’s docs for the latest list.

Questions about Microsoft Clarity MCP Server

Do I still need a Clarity Data Export API token?

No. The server now uses OAuth sign-in with your Clarity account, and Microsoft says token authentication for the MCP server is being deprecated. If you set it up with a token earlier, remove the token argument and sign in instead.

Why does the bot activity data come back empty?

The bot activity tools need a CDN connected to your project in Clarity. Without that connection, Clarity has no crawler data to report.

Sources

We checked this listing against these pages on 29 November 2026.

Spotted something out of date? Email listings@marketingmcphub.com.