A Model Context Protocol (MCP) server for Microsoft Clarity
115
stars
49
commits
TypeScript
primary language
Feb 24, 2026
updated
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.
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
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
npm install
npm run build
npm run start
Click the button above to install the Microsoft Clarity MCP server directly in Visual Studio Code.
Install from Claude's extension gallery:
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:
Provide token as a parameter when calling the get-clarity-data tool
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.
To configure Claude for Desktop to use this server:
%AppData%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonThe 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-dashboardlist-session-recordingsquery-documentation-resourcesTo generate an API token:
For information about data privacy and usage, please refer to the Microsoft Clarity Privacy Policy.
This project is licensed under the MIT License.
TypeScript
99.6%
A Model Context Protocol (MCP) server for Microsoft Clarity
115
stars
49
commits
TypeScript
primary language
Feb 24, 2026
updated
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.
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
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
npm install
npm run build
npm run start
Click the button above to install the Microsoft Clarity MCP server directly in Visual Studio Code.
Install from Claude's extension gallery:
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:
Provide token as a parameter when calling the get-clarity-data tool
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.
To configure Claude for Desktop to use this server:
%AppData%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonThe 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-dashboardlist-session-recordingsquery-documentation-resourcesTo generate an API token:
For information about data privacy and usage, please refer to the Microsoft Clarity Privacy Policy.
This project is licensed under the MIT License.
TypeScript
99.6%