clarity-mcp-multi
Enables managing multiple Microsoft Clarity projects by routing requests per client name using a token map, proxying the official Clarity MCP server with tools to list and switch clients.
README
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.
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 |
|---|---|
clarity_clienti |
Lists the configured client names and the active one. No token is returned. |
clarity_usa_cliente |
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.