clarity-mcp-multi
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@clarity-mcp-multi list my clients"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
clarity-mcp-multi
An MCP proxy that adds per-client token routing on top of Microsoft's official Clarity MCP server.
Why
The official server authenticates with a single Clarity Data Export token, and a token maps to exactly one project. If you manage several Clarity projects you end up editing the config and restarting the client every time you switch project.
This proxy keeps a name → token map and resolves the token by name at runtime. It does not reimplement any Clarity functionality: it launches the official server as a child process and forwards calls to it, so it inherits the full tool set and tracks upstream changes automatically.
Related MCP server: janusmcp
How it works
The package acts as a server towards its MCP client (Claude, Cursor, …) and as a client towards the official server at the same time. It registers two tools of its own and re-exports whatever the official server exposes. A call that isn't one of its own tools is forwarded to the child process and the response is returned unchanged.
Selecting a client with clarity_usa_cliente restarts the child with that client's token. The token is read from the registry on the server side and is never sent through the conversation.
The child is launched as @microsoft/clarity-mcp-server@latest, so upstream releases are picked up without changes here.
Configuration
{
"mcpServers": {
"clarity": {
"command": "npx",
"args": ["-y", "clarity-mcp-multi@latest"],
"env": {
"CLARITY_TOKENS": "{\"acme\":\"<token>\",\"globex\":\"<token>\"}"
}
}
}
}CLARITY_TOKENS is a JSON object mapping a client name to its Clarity Data Export token (Clarity → Settings → Data export). As an alternative, set CLARITY_TOKENS_FILE to a path holding the same JSON. CLARITY_DEFAULT_CLIENT optionally sets the client selected at startup.
Keep tokens out of source control: pass them through the environment or a file the host loads, not in a committed config.
Tools
Tool | Description |
| Lists the configured client names and the active one. No token is returned. |
| Sets the active client by name; subsequent calls use its token. |
Names are matched case-insensitively. Every other tool is proxied to the official server under the active client's token.
Requirements
Node.js 18 or later. One Clarity Data Export token per project.
License
MIT
Available Tools
5 toolsclarity_clientiA
Elenca i clienti Clarity configurati (solo nomi) e qual è quello attivo. Nessun token esposto.
Inputs: no named parameters.
clarity_usa_clienteA
Imposta il cliente Clarity attivo passando SOLO il nome: il server usa il token corrispondente dal registro (il token non passa dalla chat). Chiamalo prima di leggere i dati quando lavori su un cliente specifico.
Inputs: cliente (required).
list-session-recordingsARead-only
List Microsoft Clarity session recordings based on specified filters. The filters allow you to narrow down the recordings by various criteria such as URLs, device types, browser, OS, country, city, and more. The date filter is required and must be in UTC ISO 8601 format.
Inputs: filters (required), count, sortBy.
query-analytics-dashboardARead-only
Fetch Microsoft Clarity analytics data using a simplified natural language search query. The query should be focused on one specific data retrieval or aggregation task. Avoid complex multi-purpose queries. Time ranges should be explicitly specified when possible. If no time range is provided, prompt the user to specify one.
Inputs: query (required).
query-documentation-resourcesARead-only
Retrieve Microsoft Clarity documentation snippets for finding answers to user questions including step-by-step screenshots for setup guides, features, usage, troubleshooting, and integration instructions. The query should be focused on one specific documentation topic or question. Avoid complex multi-purpose queries.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: client management (list/set active) vs. data retrieval (session recordings, analytics queries, documentation). No overlap.
Tools are named in two languages (Italian and English) and use different conventions: clarity_clienti and clarity_usa_cliente use snake_case and Italian, while the others use hyphens and English. This inconsistency can confuse agents.
5 tools is a reasonable number for a Clarity-focused server, covering client selection, recordings, analytics, and documentation without being excessive.
Covers core workflows (client management, listing recordings, analytics queries, documentation) but lacks detailed session drill-down or export capabilities, which are notable gaps.
Maintenance
Related MCP Connectors
Hosted Microsoft Clarity MCP server, with each action switched on or off per account.
Hosted Magento MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Meta Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables multi-AI collaborative analysis by proxying requests to existing login-based MCP servers (Gemini CLI and Codex CLI) from Claude Desktop or Claude Code.MIT
- AlicenseAqualityBmaintenanceLocal, open-source multi-account MCP broker — one endpoint, every account. Add credentials once and switch identity without reconnecting, from any LLM client.59MIT
- AlicenseNot gradedqualityCmaintenanceLocal-first CLI + proxy that curates your MCP servers per client from one canonical config, cutting tool-schema tokens ~80% and resolving secret references instead of hardcoding keys.MIT
- FlicenseNot gradedqualityDmaintenanceA minimal multi-sub-account MCP proxy for GoHighLevel that allows listing configured accounts and making authenticated REST API calls on behalf of any account.-