@microsoft/clarity-mcp-server weekly downloads statistics
By microsoft (224 listings) · npm · MCP servers
MCP Server for Microsoft Clarity based on data export API
@microsoft/clarity-mcp-server has 6,569 recorded weekly downloads on npm, a decrease of 6.1% over the past 30 days, ranking #1069 of 2,322 tracked listings.
About @microsoft/clarity-mcp-server
Microsoft Clarity MCP Server
This is a Model Context Protocol (MCP) server for the Microsoft Clarity. It allows you to access your session recordings, project analytics, and documentation from Clarity using Claude for Desktop or other MCP-compatible clients.
Key Features
- Analytics Data Access: Query your Microsoft Clarity analytics data including traffic metrics, user behavior insights, and performance statistics
- Session Recording Retrieval: Access and analyze session recordings to understand user interactions and identify optimization opportunities
- Natural Language Querying: Ask questions in plain English to get insights from your data - no need to learn complex query syntax or API endpoints
- Flexible Data Filtering: Filter results by various dimensions such as browser, device, country, and many more
- Real-Time Data Access: Fetch the latest analytics data and insights from your Clarity projects on-demand
- Documentation Integration: Get quick answers and guidance from Microsoft Clarity documentation directly within your workflow
- Seamless MCP Integration: Works natively with Claude for Desktop, Visual Studio Code, and other Model Context Protocol (MCP) compatible clients
Setup and Installation
Prerequisites
- Node.js v16 or higher
- A Microsoft Clarity account and API token
- Any MCP-compatible client (Claude for Desktop, etc.)
Installation
Option 1: Install via npm (recommended)
You can install and run this package directly using npm:
# Install globally
npm install -g @microsoft/clarity-mcp-server
# Run the server
clarity-mcp-server
Option 2: Run with npx without installing
You can run the server directly using npx without installing:
npx @microsoft/clarity-mcp-server
With either option, you can provide your Clarity API token using the --clarity_api_token parameter:
npx @microsoft/clarity-mcp-server --clarity_api_token=your-token-here
Option 3: Manual Installation
- Clone or download this repository
- Install dependencies:
npm install - Build the TypeScript code:
npm run build - Run the server:
npm run start
Extension/Plugin Installation
Visual Studio Code Extension
Click the button above to install the Microsoft Clarity MCP server directly in Visual Studio Code.
Claude Desktop Plugin
Install from Claude's extension gallery:
- Open Claude Desktop
- Navigate to File → Settings → Extensions
- Search for Microsoft Clarity
- Click Install to add the extension
- Configure your API Token: <br> Follow the instructions in the API Token section to retrieve and set it up correctly.
Configuration
You can provide the Clarity data export API token in two ways:
-
Command Line Arguments:
npx @microsoft/clarity-mcp-server --clarity_api_token=your-token -
Tool Parameters: <br> Provide
tokenas a parameter when calling theget-clarity-datatool
Configuring MCP Clients
Generic MCP Client Configuration
MCP clients typically require configuration to connect to the server. Here's a general example of how to configure an MCP client:
{
"mcpServers": {
"@microsoft/clarity-mcp-server": {
"command": "npx",
"args": [
"@microsoft/clarity-mcp-server",
"--clarity_api_token=your-api-token-here"
]
}
}
}
The specifics of where and how to add this configuration will depend on your specific MCP client.
Claude for Desktop Configuration
To configure Claude for Desktop to use this server:
- Open your Claude for Desktop configuration file:
- Windows:
%AppData%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
- Add the configuration shown in the generic example above
- Save the configuration file and restart Claude for Desktop
Server Usage
The server exposes various tools that you can call from any MCP client. Just ask naturally and keep each request focused on one thing.
Query Analytics Dashboard
- <b>Name:</b>
query-analytics-dashboard - <b>Description:</b> Retrieves analytics data and metrics from your project's dashboard using a simplified natural language search query.
- <b>Examples:</b>
- How many Clarity sessions did we get from Egypt in the past 3 days?
- What are the most used browsers in my Clarity project?
- Show me traffic metrics from my Clarity project for the last week
List Session Recordings
- <b>Name:</b>
list-session-recordings - <b>Description:</b> Lists your project's session recordings based on a specified filtering criteria. The filters allow you to narrow down the recordings by various fields such as URLs, device types, browser, OS, country, city, and more.
- <b>Examples:</b>
- List the most recent Clarity sessions from mobile devices
- Show the top 5 Clarity sessions with the highest number of user clicks
- Get Clarity recordings where users encountered JavaScript errors…
Description from the npm listing.
- clarity
- behavior-analytics-tools
- heatmaps
- session-recordings
- insights
- analytics
- mcp
- model-context-protocol
- ai
- agents
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (544)Similar npm MCP servers plugins
All 20 @microsoft/clarity-mcp-server alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@microsoft/clarity-mcp-server. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.