Official Microsoft Clarity integration for the Model Context Protocol (MCP). This server allows AI agents to query analytics data, list session recordings, and access documentation using natural language.
- query-analytics-dashboard: Get metrics like scroll depth, engagement time, and traffic segments.
- list-session-recordings: Filter and find specific user sessions based on behavior and technical criteria.
- query-documentation-resources: Search official Clarity guides and troubleshooting steps.
When installing in Deco Mesh, you will be prompted for your Microsoft Clarity API Token.
- Log in to your Microsoft Clarity project.
- Navigate to Settings -> Data Export.
- Select Generate new API token.
- Copy and store the token safely.
Important
The Microsoft Clarity Data Export API has several built-in constraints:
- Quota: 10 API requests per project per day.
- Horizon: Access up to the last 3 days of analytics data.
- Dimensions: Filter by up to 3 dimensions per query.
- "Show me the top pages by traffic for the last 3 days."
- "List mobile sessions from the last 24 hours that had rage clicks."
- "How do I set up custom tags in Clarity?"
bun install
bun run devMIT