MCP Hub
Back to servers

rybbit-mcp

Enables querying Rybbit Analytics data directly through MCP-compatible clients like Claude Code. It provides tools for monitoring website statistics, user sessions, error logs, funnels, and performance metrics via natural language.

glama
Updated
Mar 6, 2026

@nks-hub/rybbit-mcp

npm version License: MIT TypeScript MCP SDK

MCP server for Rybbit Analytics — query statistics, errors, users, sessions, funnels, goals, and performance metrics directly from Claude Code or any MCP-compatible client.

Why?

Instead of manually checking the Rybbit dashboard, let your AI assistant query analytics data directly:

  • "How many users visited the site today?"
  • "Show me the top pages by bounce rate this week"
  • "What errors occurred in the last hour?"
  • "Show user journey from homepage to checkout"
  • "Compare browser usage between mobile and desktop"

Quick Start

1. Install

npm install -g @nks-hub/rybbit-mcp

Or clone and build:

git clone https://github.com/nks-hub/rybbit-mcp.git
cd rybbit-mcp
npm install && npm run build

2. Configure Claude Code

Add to your ~/.claude/settings.json or project .claude/settings.json:

{
  "mcpServers": {
    "rybbit": {
      "command": "node",
      "args": ["C:/path/to/rybbit-mcp/build/index.js"],
      "env": {
        "RYBBIT_URL": "https://your-rybbit-instance.com",
        "RYBBIT_API_KEY": "your-api-key"
      }
    }
  }
}

3. Use

Ask Claude Code anything about your analytics data. The MCP tools are automatically available.

Authentication

Supports two authentication methods:

MethodEnvironment VariablesUse Case
API KeyRYBBIT_API_KEYRecommended for production
Email/PasswordRYBBIT_EMAIL, RYBBIT_PASSWORDDevelopment/testing

Both require RYBBIT_URL pointing to your Rybbit instance.

Tools (27)

Configuration

ToolDescription
rybbit_get_configGet server version and configuration
rybbit_list_sitesList all sites and organizations

Real-time & Overview

ToolDescription
rybbit_live_usersCurrent active users count
rybbit_get_overviewAggregated metrics (sessions, pageviews, users, bounce rate, duration)
rybbit_get_overview_timeseriesMetrics as time-series with configurable buckets
rybbit_get_session_locationsGeographic session data with coordinates for map visualization

Metrics & Dimensions

ToolDescription
rybbit_get_metricBreakdown by dimension (browser, OS, country, page, UTM, etc.)
rybbit_get_retentionUser retention cohort analysis

Sessions

ToolDescription
rybbit_list_sessionsSession list with filtering and pagination
rybbit_get_sessionFull session detail with events and user traits

Users

ToolDescription
rybbit_list_usersIdentified users with session counts and traits
rybbit_get_userUser detail with traits and activity
rybbit_get_user_traitsTrait keys, values, or find users by trait

Events

ToolDescription
rybbit_list_eventsRaw event records with filtering
rybbit_get_event_namesCustom event names and counts
rybbit_get_event_propertiesProperty breakdowns per event
rybbit_get_event_timeseriesEvent count trends over time with configurable buckets
rybbit_get_outbound_linksOutbound link clicks with URLs and counts

Errors

ToolDescription
rybbit_get_errorsError types/counts, individual instances, or timeseries for a specific error

Performance (Web Vitals)

ToolDescription
rybbit_get_performanceCore Web Vitals (LCP, CLS, INP, FCP, TTFB) with percentiles
rybbit_get_performance_timeseriesWeb Vitals trends over time

Funnels & Goals

ToolDescription
rybbit_list_funnelsSaved funnels with step definitions
rybbit_analyze_funnelAd-hoc funnel analysis with custom steps
rybbit_get_funnel_step_sessionsSessions that reached or dropped off at a funnel step
rybbit_list_goalsGoals with conversion metrics
rybbit_get_goal_sessionsSessions that completed a specific goal

Journeys

ToolDescription
rybbit_get_journeysUser navigation path analysis

Common Parameters

All analytics tools support these optional parameters:

ParameterTypeDescription
siteIdstringSite identifier (required)
startDatestringStart date YYYY-MM-DD
endDatestringEnd date YYYY-MM-DD
timeZonestringIANA timezone (e.g., Europe/Prague)
filtersarrayFilter array [{parameter, type, value[]}]
pastMinutesStartnumberMinutes ago (alternative to date range)

Filter Parameters

browser, operating_system, language, country, region, city, device_type, referrer, hostname, pathname, page_title, querystring, event_name, channel, utm_source, utm_medium, utm_campaign, utm_term, utm_content, entry_page, exit_page, user_id

Filter Types

equals, not_equals, contains, not_contains, regex, not_regex, greater_than, less_than

Time Buckets

minute, five_minutes, ten_minutes, fifteen_minutes, hour, day, week, month, year

Requirements

  • Node.js >= 18
  • Rybbit Analytics instance (self-hosted or cloud)

Related

License

MIT

Reviews

No reviews yet

Sign in to write a review