Skip to main content

KrystalView MCP Server — AI agent access to website analytics, session replay, friction scoring, and anomaly detection.

Project description

KrystalView MCP Server

Give your AI agents direct access to website analytics. Query visitor sessions, investigate UX friction, analyze conversion funnels, and get anomaly alerts — all from Claude, Cursor, or any MCP-compatible client.

Quick Start

Install

pip install krystalview-mcp

Configure

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"
    }
  }
}

Available Tools

Tool Description
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_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

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"
  • "Are there any anomalies I should know about?"

Environment Variables

Variable Required Default Description
KRYSTALVIEW_API_KEY Yes Your KrystalView API key
KRYSTALVIEW_BASE_URL No https://krystalview.com/api API base URL
KRYSTALVIEW_TIMEOUT No 15 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
  • All requests use HTTPS
  • Keys can be rotated or revoked in the KrystalView console
  • No data is stored by the MCP server — it proxies directly to the KrystalView API

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krystalview_mcp-0.1.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krystalview_mcp-0.1.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file krystalview_mcp-0.1.4.tar.gz.

File metadata

  • Download URL: krystalview_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for krystalview_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cd5f989feab7c8dfa1fa107503d45c90e0a9de73831d01063575e1e034e6941c
MD5 0869d9a5b3882b01350abfb147ebb8fb
BLAKE2b-256 88d8a344cb33d4f308eb32cea34d994f5091978d1d7b80526df4d537f9847ffb

See more details on using hashes here.

File details

Details for the file krystalview_mcp-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: krystalview_mcp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for krystalview_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9a3222cfd488cf8fe7d64185f18d924a892802026d4bc892f3cb34a9c76d85d9
MD5 70e40d9206d4d8c586f5e1e7af3bd012
BLAKE2b-256 0a6bb89db7f48fba8a8e2fed95a2c175990b916b6dda7fb37c45b43f42d319ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page