rybbit-mcp
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., "@rybbit-mcp What are the top pages this week?"
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.
rybbit-mcp
An MCP server that exposes Rybbit Analytics as tools for Claude (or any MCP-compatible client). Ask Claude things like:
"What's the traffic overview for my site this week?"
"What are the top 10 pages by visits this month?"
"How many people are on the site right now?"
"Where is my traffic coming from, by country?"
"Show me the most recent sessions from mobile users."
It works against both Rybbit Cloud (app.rybbit.io) and self-hosted Rybbit instances.
Tools
Tool | Description |
| List organizations and sites (with their site IDs) |
| Get config/details for one site |
| Sessions, pageviews, users, bounce rate, duration for a time range |
| Same metrics bucketed over time (for trend charts) |
| Top pages, referrers, countries, browsers, devices, UTM params, etc. |
| Current active visitor count |
| Paginated list of visitor sessions |
| Full detail + event list for one session |
| Aggregated session geolocation, for mapping |
This covers Rybbit's Overview and Sessions API families. The same client/tool pattern can be extended to Events, Users, Goals, Funnels, Performance, and Errors — see Extending below.
Related MCP server: Rybbit MCP Server
Setup
1. Get a Rybbit API key
In your Rybbit dashboard: Settings → Account → API Keys → Create.
Self-hosted instances have no rate limits. Rybbit Cloud rate-limits API keys per your plan (Standard: 20 req/min, Pro: 200 req/min); Free/Basic plans don't get API key access.
2. Build the server
git clone https://github.com/<your-username>/rybbit-mcp.git
cd rybbit-mcp
npm install
npm run buildThis produces build/index.js.
3. Configure your MCP client
Claude Desktop / Claude Code — add to your MCP config (claude_desktop_config.json or .claude/settings.json):
{
"mcpServers": {
"rybbit": {
"command": "node",
"args": ["/absolute/path/to/rybbit-mcp/build/index.js"],
"env": {
"RYBBIT_URL": "https://app.rybbit.io",
"RYBBIT_API_KEY": "your-api-key-here"
}
}
}
}If you self-host Rybbit, set RYBBIT_URL to your instance's base URL instead (e.g. https://analytics.yourdomain.com).
Restart Claude Desktop / reload Claude Code, and the rybbit_* tools should appear.
Deploying to CapRover (or Docker)
This MCP server supports Server-Sent Events (SSE) for remote clients over HTTP. This is perfect for deploying to a platform like CapRover so that a remote AI agent can access the tools.
Create a new App in your CapRover dashboard (e.g.,
rybbit-mcp).Set the Environment Variables in CapRover:
RYBBIT_URLRYBBIT_API_KEYPORT=3000(Optional, defaults to 3000)
Under the Deployment tab, deploy using the Captain Definition or simply push this repository via the CapRover CLI. This repository contains a
Dockerfilethat CapRover will automatically detect and build.
Once deployed, the SSE endpoint will be available at:
https://rybbit-mcp.your-caprover-domain.com/sse
Your remote AI agents can connect to this URL via SSEServerTransport instead of stdio.
4. Try it
"Use rybbit to show me an overview of site 123 for the last 7 days" "What are the top pages on my site this month?" "How many live visitors do I have right now?"
Development
npm run watch # recompile on change
npm run inspector # open the MCP Inspector against this serverExtending
Rybbit's API has more endpoint families than this v1 covers (Events, Users, Goals, Funnels, Performance metrics, Errors — see the Rybbit API docs). To add one:
Add a method to
src/rybbit-client.tscalling the endpoint.Register a corresponding tool in
src/index.tswithserver.registerTool(...), usingzodfor the input schema.npm run buildand reload your MCP client.
License
MIT
Available Tools
9 toolsrybbit_get_breakdownGet a dimensional breakdown (top pages, referrers, countries, browsers, etc.)A
Get analytics broken down by a single dimension, ranked by traffic. Use this for questions like 'what are the top pages', 'where is traffic coming from', 'what countries/browsers/devices do visitors use', 'what are the top UTM campaigns', etc. Set parameter to the dimension to break down by, e.g.: pathname, page_title, hostname, referrer, channel, entry_page, exit_page, country, region, city, browser, browser_version, operating_system, device_type, language, utm_source, utm_medium, utm_campaign, utm_term, utm_content, event_name. Results include visit count, percentage of total, pageviews, and bounce rate per value.
Inputs: site (required), parameter (required), limit, page, +8 more.
rybbit_get_live_visitorsGet live visitor countA
Get the count of currently active sessions on a site within a recent time window (real-time visitor count).
Inputs: site (required), minutes.
rybbit_get_overviewGet analytics overviewA
Get high-level analytics metrics for a site over a time range: sessions, pageviews, unique users, pages per session, bounce rate, and average session duration.
Inputs: site (required), start_date, end_date, time_zone, +5 more.
rybbit_get_overview_timeseriesGet analytics overview time seriesA
Get the same metrics as rybbit_get_overview (sessions, pageviews, users, bounce rate, etc.) broken down into time buckets, for charting trends. Choose a bucket size appropriate to the range: 'minute' or 'five_minutes' for the last hour or so, 'hour' for a single day, 'day' for weeks/months, 'week' or 'month' for longer ranges.
Inputs: site (required), bucket (required), start_date, end_date, +6 more.
rybbit_get_sessionGet session detailA
Get full detail for a single session by ID: session metadata plus the ordered list of pageview/custom events within it.
Inputs: site (required), session_id (required), limit, offset, +1 more.
rybbit_get_session_locationsGet session locationsA
Get aggregated session counts by geographic coordinates (lat/lon, city, country) for a site, suitable for plotting on a map.
Inputs: site (required), start_date, end_date, time_zone, +5 more.
rybbit_get_siteGet Rybbit site detailsA
Get configuration and details for a single site by ID (name, domain, tracking feature flags, etc.).
Inputs: site (required).
rybbit_list_sessionsList sessionsB
Get a paginated list of visitor sessions with details: location, browser/OS/device, referrer, entry/exit pages, pageview and event counts, duration, and UTM params.
Inputs: site (required), page, limit, user_id, +9 more.
rybbit_list_sitesList Rybbit sitesA
List all organizations the authenticated user belongs to, and every site (with its numeric site ID) under each. Call this first if you don't already know a site ID.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool serves a distinct analytics purpose: breakdown, live visitors, overview, timeseries, session detail, location map, site config, session list, site list. No overlap in functionality.
All tools follow the consistent pattern 'rybbit_{verb}_{noun}' with verbs 'get' for single/aggregate results and 'list' for collections, and nouns clearly indicating the resource.
9 tools cover the core analytics operations—overview, breakdown, sessions, live visitors, site listing—without being excessive. Each tool earns its place for typical analytics queries.
The set provides comprehensive querying capabilities for analytics metrics, breakdowns, sessions, and sites. Missing are explicit date-range parameters noted in descriptions, and custom event detail retrieval beyond breakdowns, but the core is well-covered.
Maintenance
Related MCP Connectors
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
Ask your website analytics in plain language and set up funnels, features and dashboards.
Ask Claude, ChatGPT, Cursor or any AI tool how your site is doing — the answers come from your own Google Analytics 4 (GA4) property. Paste https://app.anacraft.dev/mcp, sign in with Google and pick your site; nothing to install. Twelve tools: headline metrics against the previous period, live visitors, top pages, events, referrers, traffic sources and countries, page and event search, and an audit that checks whether the GA4 property is measuring correctly before its numbers are quoted. One tool writes: it creates a GA4 property and web stream for a new domain and returns the tag to paste.
Analytics your AI agent can actually use. Track, experiment, and optimize via MCP.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables 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.4314 npm4MIT
- AlicenseBqualityCmaintenanceAn MCP server for interacting with the Rybbit Analytics API, enabling querying analytics data, managing sites, tracking events, and more.5712 npm5MIT
- AlicenseAqualityDmaintenanceExposes DataFast analytics as tools for AI assistants, enabling natural language queries about website metrics such as visitors, referrers, revenue, and real-time data.221MIT
- AlicenseAqualityBmaintenanceEnables natural language analytics queries for Pirsch Analytics, providing comprehensive website traffic statistics, period comparisons, and trend analysis through an MCP interface.454 npm1MIT