Connect Microsoft Clarity to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.
What you can do with the Microsoft Clarity MCP server
Ask your agent in plain language. Each of these maps to a real tool on the server.
Use the list session recordings tool in Microsoft Clarity
Use the get dashboard insights tool in Microsoft Clarity
Use the query analytics dashboard tool in Microsoft Clarity
Supported Tools
list_session_recordings
List Session Recordings
Lists session recordings from Microsoft Clarity for a given date range. Supports filtering by URLs, device types, browsers, operating systems, countries, and cities.
Returns a sample of session recordings matching the specified criteria, useful for reviewing user behavior on specific pages or segments.
get_dashboard_insights
Get Dashboard Insights
Retrieves dashboard analytics data from Microsoft Clarity including traffic, engagement, behavioral signals, and page metrics. Data can be broken down by up to three dimensions such as Browser, Device, Country/Region, OS, Source, Medium, Campaign, Channel, or URL.
Returns metrics like Traffic, Scroll Depth, Engagement Time, Popular Pages, Dead Click Count, Rage Click Count, Quickback Click, Excessive Scroll, Script Error Count, and Error Click Count.
query_analytics_dashboard
Query Analytics Dashboard
Ask a focused natural-language question about Microsoft Clarity traffic, user behavior, or performance metrics. Returns the complete analytics response for the connected project.
Enable Microsoft Clarity in Metorial. In your Metorial portal, enable the Microsoft Clarity MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
Sign in. Select Add and sign in to load Microsoft Clarity tools.
Enable Microsoft Clarity in Metorial. In your Metorial portal, enable the Microsoft Clarity MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add a custom MCP server. On ChatGPT web, open Plugins, select +, then Add custom MCP server.
Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>), choose OAuth and accept the risk notice.
Create and install the plugin. Select Create as a plugin, install it and sign in to load Microsoft Clarity tools.
Enable Microsoft Clarity in Metorial. In your Metorial portal, enable the Microsoft Clarity MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add Metorial to your MCP config. Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
Sign in. Open Customize in the sidebar, find Metorial and sign in to load Microsoft Clarity tools.
{
"mcpServers":{
"metorial":{
"url":"<your-magic-mcp-url>"
}
}
}
Enable Microsoft Clarity in Metorial. In your Metorial portal, enable the Microsoft Clarity MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server over HTTP. Add --scope user to use it in every project.
Sign in. Run /mcp, select Metorial and sign in to load Microsoft Clarity tools.
claude mcp add --transport http metorial <your-magic-mcp-url>
Enable Microsoft Clarity in Metorial. In your Metorial portal, enable the Microsoft Clarity MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
Add the server and sign in. The Codex CLI, IDE extension and ChatGPT desktop app share this config.
Check the connection. Type /mcp in Codex to see Metorial and its Microsoft Clarity tools.
codex mcp add metorial --url <your-magic-mcp-url>
codex mcp login metorial
Run Microsoft Clarity through the Metorial gateway
One governed layer for every app your agents reach, not a separate connector per tool.
Give Microsoft Clarity and every other app to your whole team through one MCP gateway, behind your SSO.
Scope which teams and agents can use Microsoft Clarity tools with role-based access control, and trace every call.
Prefer to run it yourself? Metorial is open source and self-hostable.
More integrations teams use with Microsoft Clarity
Retrieve Microsoft Clarity dashboard metrics, query traffic and behavioral analytics in natural language, and sample session recordings by date range, URL, device, browser, operating system, and location.
Frequently asked questions
Common questions about connecting Microsoft Clarity to AI agents with Metorial.
How many tools does the Microsoft Clarity MCP server have?
The Microsoft Clarity MCP server exposes 3 tools, including List Session Recordings, Get Dashboard Insights, Query Analytics Dashboard. Each one is governed and traced through Metorial.
Does the Microsoft Clarity MCP server support triggers?
Microsoft Clarity exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
Which AI clients can use the Microsoft Clarity MCP server?
Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Microsoft Clarity MCP server through the same Metorial URL.
How do I give only some teams access to Microsoft Clarity?
Use role-based access control to decide which teams, users, and agents can use Microsoft Clarity and which of its tools they can call.
Can I self-host the Microsoft Clarity MCP server?
Yes. Metorial is open source, so you can run the Microsoft Clarity MCP server yourself or use the hosted gateway.
Connect Microsoft Clarity to production AI agents
See how Metorial gives your team governed access to Microsoft Clarity, with tracing and security controls built in.