Skip to content

Microsoft Clarity MCP for Grok

io.github.surendranb/microsoft-clarity-mcp

Microsoft Clarity MCP: behavioral UX analytics, rage clicks, dead clicks, scroll, and JS errors.

client:Grok transport:stdio runtime:pypi

Install Microsoft Clarity MCP in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "microsoft-clarity-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "microsoft-clarity-mcp"
      ],
      "env": {
        "CLARITY_API_TOKEN": "<CLARITY_API_TOKEN>",
        "CLARITY_PROJECT_ID": "<CLARITY_PROJECT_ID>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Microsoft Clarity MCP in other clients