Microsoft Clarity MCP for VS Code
io.github.surendranb/microsoft-clarity-mcp
Microsoft Clarity MCP: behavioral UX analytics, rage clicks, dead clicks, scroll, and JS errors.
client:VS Code
transport:stdio
runtime:pypi
Install Microsoft Clarity MCP in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "clarity-api-token",
"description": "CLARITY_API_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "clarity-project-id",
"description": "CLARITY_PROJECT_ID",
"password": true
}
],
"servers": {
"microsoft-clarity-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"microsoft-clarity-mcp"
],
"env": {
"CLARITY_API_TOKEN": "${input:clarity-api-token}",
"CLARITY_PROJECT_ID": "${input:clarity-project-id}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs