KrystalView MCP Server
OfficialThe KrystalView MCP Server gives AI agents direct access to website analytics data, enabling querying, investigation, and analysis of visitor behavior and site performance.
Session Analysis: Search and filter visitor sessions by device type, country, friction score, duration, rage clicks, or entry/exit URLs. Deep-dive into individual sessions for a full event timeline, navigation path, device/browser info, friction breakdown, errors, and geographic location.
Site Statistics: Get aggregate metrics including total sessions, bounce rate, average friction score, device/browser breakdowns, top pages, and daily session trends over a configurable time period.
Funnel Analysis: List all defined conversion funnels and analyze step-by-step conversion rates and drop-off points (e.g., landing → signup → checkout → payment).
Anomaly Detection: Access AI-detected anomalies (traffic spikes/drops, friction surges, bounce spikes) with severity levels, deviation percentages, and AI-generated explanations.
Live Visitors: Check the currently active visitor count and recent live sessions.
Campaign Insights: Get UTM campaign summaries, campaign-specific sessions, and ROAS for paid campaigns.
Error Monitoring: Access aggregated client-side browser errors.
Notifications: View recent KrystalView notifications and insights.
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., "@KrystalView MCP Server Show me frustrated mobile users from the last 24 hours"
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.
KrystalView MCP Server
Give your AI agents direct access to website analytics. Query visitor sessions, investigate UX friction, analyze conversion funnels, review campaigns and errors, and get anomaly alerts — all from Claude, Cursor, or any MCP-compatible client.
Connection Options
Hosted Remote MCP
Use this when your client supports remote MCP servers or connector-style OAuth. No local package install is required.
Field | Value |
Endpoint |
|
Transport |
|
Authentication | OAuth authorization code + PKCE |
OAuth metadata |
|
Protected resource metadata |
|
During OAuth, KrystalView asks the signed-in user to choose the site the MCP client can read. The issued token is read-only and scoped to that site. The hosted OAuth server supports dynamic client registration, authorization code + PKCE, resource indicators, refresh-token rotation, and token revocation.
For clients that support custom headers instead of OAuth, the hosted endpoint also accepts a KrystalView read API key as either:
Authorization: Bearer kv_live_...or:
X-API-Key: kv_live_...Local stdio MCP Package
Use this when your MCP client runs local stdio servers, such as Claude Desktop, Claude Code, Cursor, or similar developer tools.
Install
pip install krystalview-mcpConfigure
Generate an API key in your KrystalView console under Settings > API Keys.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"krystalview": {
"command": "krystalview-mcp",
"env": {
"KRYSTALVIEW_API_KEY": "your-api-key-here"
}
}
}
}Claude Code
claude mcp add krystalview -- krystalview-mcp
# Then set your API key:
export KRYSTALVIEW_API_KEY="your-api-key-here"Cursor
Add to your MCP settings:
{
"krystalview": {
"command": "krystalview-mcp",
"env": {
"KRYSTALVIEW_API_KEY": "your-api-key-here"
}
}
}Related MCP server: fe
Available Tools
Tool | Description |
| List/search visitor sessions with filters (device, location, friction, rage clicks) |
| Deep dive into a specific session — full timeline, events, navigation path |
| Aggregate performance metrics — sessions, friction, devices, top pages |
| Scroll-depth buckets for a specific page path |
| Currently active visitor count and recent live sessions |
| AI-detected anomalies with explanations (traffic spikes/drops, friction surges) |
| List defined conversion funnels |
| Step-by-step funnel conversion rates and drop-off analysis |
| UTM campaign attribution summary |
| Visitor sessions from a specific campaign |
| Paid campaign spend, conversions, and ROAS where connected |
| Aggregated client-side browser errors |
| Recent KrystalView notifications and insights |
Example Prompts
Once connected, try asking your AI assistant:
"How's my site performing this week?"
"Show me frustrated mobile users from the last 24 hours"
"Why did our traffic drop yesterday?"
"Where are users dropping off in the checkout funnel?"
"Find sessions with rage clicks on the pricing page"
"Which campaigns are driving the most high-friction sessions?"
"Show me unresolved browser errors with sample session IDs"
"Are there any anomalies I should know about?"
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Your KrystalView API key |
| No |
| API base URL |
| No |
| Request timeout in seconds |
Rate Limits
API keys have configurable rate limits (default: 60 requests per minute). Rate limit headers are included in every response. If you hit the limit, the server returns a clear error with retry timing.
Security
API keys are scoped to a single site — agents can only access data for the site the key was created for
OAuth tokens issued by the hosted MCP endpoint are read-only and scoped to the selected site
Hosted OAuth supports refresh-token rotation and token revocation
Browser-originating MCP/OAuth requests are checked against explicit trusted origins
Tools are read-only
All requests use HTTPS
Keys can be rotated or revoked in the KrystalView console
The local stdio package stores no data — it proxies directly to the KrystalView API
License
MIT
Available Tools
6 toolsget_anomaliesAInspect
Get detected anomalies for the site.
Anomalies are automatically detected when metrics deviate significantly from their 7-day rolling average (>2 standard deviations). Types include: traffic_spike, traffic_drop, friction_surge, and bounce_spike.
Each anomaly includes: type, severity (warning/critical), metric name, expected vs actual values, deviation percentage, and an AI-generated explanation of what likely caused it.
Args: limit: Max results (1-200, default 20) unacknowledged_only: Only show unacknowledged anomalies
Inputs: limit, unacknowledged_only. Returns: result
get_funnel_analysisAInspect
Analyze a conversion funnel — see where users drop off.
Returns step-by-step conversion rates showing how many sessions reached each step, the conversion rate between steps, and the overall funnel completion rate.
Use this to identify which step in a user flow (e.g. landing -> signup -> checkout -> payment) loses the most visitors.
Args: funnel_id: Funnel ID from get_funnels results days: Lookback period in days (7-90, default 30)
Inputs: funnel_id (required), days. Returns: result
get_funnelsAInspect
List all conversion funnels defined for this site.
Returns funnel definitions with their name, steps (URLs/patterns), and creation date. Use the funnel ID with get_funnel_analysis to see conversion rates and drop-off points.
Inputs: no named parameters. Returns: result
get_session_detailAInspect
Get full details for a specific session.
Returns the complete session record including: all page visits with timestamps, event timeline, device/browser info, IP address, geographic location, friction breakdown, rage clicks, errors encountered, and navigation path.
Use this to deep-dive into a specific session after finding it via get_sessions.
Args: session_id: The session primary key (UUID) from get_sessions results
Inputs: session_id (required). Returns: result
get_sessionsAInspect
List recent visitor sessions with filtering.
Each session includes: duration, page count, entry/exit URLs, device info, screen size, IP address, location (country/city), friction score, and rage click count.
Use this to find sessions matching specific criteria — e.g. frustrated mobile users, visitors from a specific country, or high-friction sessions.
Args: query: Search entry/exit URLs (e.g. "/pricing", "/checkout") limit: Max results (1-100, default 20) offset: Pagination offset country: Filter by country name device_type: "mobile" or "desktop" min_friction: Minimum friction score (0-10) min_duration: Minimum session duration in seconds has_rage_clicks: Only sessions with rage clicks
Inputs: query, limit, offset, country, +4 more. Returns: result
get_site_statsAInspect
Get aggregate site statistics and performance metrics.
Returns: total sessions, average duration, average friction score, bounce rate, rage click sessions, device breakdown (desktop/mobile), browser breakdown, top entry pages, top exit pages, daily session counts, and friction score distribution.
Use this for an overview of site health and trends.
Args: days: Lookback period in days (7-90, default 7)
Inputs: days. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct aspect of site analytics: anomalies, funnel definitions, funnel conversion analysis, session listing, session deep-dive, and aggregate stats. No two tools overlap in functionality.
All tool names follow a consistent 'get_<resource>' pattern with snake_case. Variations like 'get_funnel_analysis' and 'get_session_detail' extend logically without breaking the pattern.
With 6 tools covering anomalies, funnels, sessions, and site stats, the set is well-scoped for an analytics MCP server. Each tool serves a clear purpose without being overly granular or sparse.
The tool surface covers all major read-only analytics needs: listing and details for sessions, funnels, and anomalies plus aggregate stats. Minor gaps exist: no single anomaly detail view and no way to acknowledge anomalies, but the core workflows are supported.
Maintenance
Related MCP Connectors
Web analytics for AI agents: realtime visitors, revenue, funnels and AI-detected site issues
Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.
Real-time web analytics for AI agents: query traffic, funnels, revenue, and manage your sites.
Web analytics your agent reads: visits, sources, AI-assistant traffic, funnels, Search Console.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides AI assistants with read access to Clamp analytics data including pageviews, visitors, referrers, and custom events. Enables traffic analysis, conversion funnel evaluation, and metric alerts through natural language queries.3357 npm2MIT
- AlicenseNot gradedqualityDmaintenanceMulti-site analytics for AI agents — GA4, Google Search Console, Cloudflare edge, PageSpeed, and audit insights across all your websites as tools.26 npmMIT

wireboard-mcpofficial
AlicenseAqualityBmaintenanceEnables LLM agents to query real-time and historical analytics from WireBoard, allowing natural language questions about visitors, events, and site metrics.10406 npm3MIT- AlicenseBqualityBmaintenanceCookieless web analytics your AI agent can read. Self-host it on your own Cloudflare account (Workers + D1) and read visits, sources, pages, countries and custom events over MCP. Prefer hosted? https://a.measuremy.site/mcp (OAuth sign-in, no key).201MIT