# KrystalView Analytics [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/KrystalView/krystalview-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/krystalview-analytics

## Description
AI agent access to website analytics, session replay, and anomaly detection.

## Tools
Capabilities this server exposes over MCP:

- **get_sessions** — List/search visitor sessions with filters (device, location, friction, rage clicks)
- **get_session_detail** — Deep dive into a specific session — full timeline, events, navigation path
- **get_site_stats** — Aggregate performance metrics — sessions, friction, devices, top pages
- **get_scroll_depth** — Scroll-depth buckets for a specific page path
- **get_live_visitors** — Currently active visitor count and recent live sessions
- **get_anomalies** — AI-detected anomalies with explanations (traffic spikes/drops, friction surges)
- **get_funnels** — List defined conversion funnels
- **get_funnel_analysis** — Step-by-step funnel conversion rates and drop-off analysis
- **get_campaign_summary** — UTM campaign attribution summary
- **get_campaign_sessions** — Visitor sessions from a specific campaign
- **get_campaign_roas** — Paid campaign spend, conversions, and ROAS where connected
- **get_errors** — Aggregated client-side browser errors
- **get_notifications** — Recent KrystalView notifications and insights

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "krystalview-analytics": {
    "command": "uvx",
    "args": ["krystalview-mcp"],
    "env": {
      "KRYSTALVIEW_API_KEY": "",
      "KRYSTALVIEW_BASE_URL": "",
      "KRYSTALVIEW_TIMEOUT": ""
    }
  }
}
```

**Requires environment variables:** `KRYSTALVIEW_API_KEY`, `KRYSTALVIEW_BASE_URL`, `KRYSTALVIEW_TIMEOUT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What KrystalView Analytics MCP server does

KrystalView Analytics MCP server exposes website analytics to MCP-compatible AI clients. Its read-only tools cover both aggregate reporting and session-level investigation. You can query overall sessions, device patterns, friction indicators, top pages, scroll-depth buckets, and currently active visitors. Session queries can be filtered by attributes such as device, location, friction, or rage clicks, while session details provide a timeline, events, and navigation path.

The server also surfaces analysis for conversion and acquisition work. Funnel tools list configured funnels and return step-by-step conversion and drop-off results. Campaign tools summarize UTM attribution, find sessions tied to a campaign, and report paid spend, conversions, and ROAS when that data is connected. Additional tools return client-side browser errors, KrystalView notifications, and detected anomalies such as traffic changes or increases in friction.

## How it works

Two connection patterns are documented. The hosted option uses `https://krystalview.com/mcp` over streamable HTTP. Clients that support remote MCP or connector-style OAuth can authenticate with authorization code and PKCE. During authorization, the user selects the site the client may read. Hosted access can also use a KrystalView read API key in either an `Authorization: Bearer` header or an `X-API-Key` header.

The local option runs the `krystalview-mcp` command as a stdio process. It proxies requests to the KrystalView API rather than storing data locally. In both modes, tools are read-only and access is limited to the relevant site. Requests use HTTPS, and API keys can be rotated or revoked in the KrystalView console.

## Setup and configuration

For local use, install the package with `pip install krystalview-mcp`, create an API key under Settings > API Keys in the KrystalView console, and expose it as `KRYSTALVIEW_API_KEY`. Claude Desktop, Claude Code, and Cursor can be configured to launch the `krystalview-mcp` command with that variable in the environment.

The local package accepts `KRYSTALVIEW_BASE_URL` to change the API base URL; its documented default is `https://krystalview.com/api`. `KRYSTALVIEW_TIMEOUT` controls the request timeout in seconds and defaults to 15. The hosted endpoint does not require a local package installation.

## Tools and capabilities

The KrystalView Analytics MCP server includes tools for:

- Searching sessions and examining individual session timelines.
- Reading site metrics, scroll depth, live visitors, anomalies, and notifications.
- Listing funnels and analyzing conversion steps and drop-offs.
- Summarizing campaigns, retrieving campaign sessions, and checking connected paid-campaign ROAS.
- Reviewing aggregated browser errors.

## Limitations and notes

API keys have configurable rate limits, with 60 requests per minute documented as the default. Responses include rate-limit headers, and exceeded limits return an error with retry timing. API keys are scoped to one site, so an agent cannot read other sites through that key. Hosted OAuth tokens are read-only and scoped to the selected site; the hosted flow also supports refresh-token rotation and revocation.

The tool set is for reading KrystalView data. It does not provide documented mutation or site-management operations. Campaign ROAS is available only where the relevant paid-campaign data is connected. A client must support either the hosted remote MCP connection pattern or local stdio to use the server.

_Full upstream README: https://allmcps.com/mcp/krystalview-analytics/readme_

