{"id":46530472,"url":"https://github.com/nks-hub/rybbit-mcp","last_synced_at":"2026-04-01T23:43:49.122Z","repository":{"id":342441388,"uuid":"1173986881","full_name":"nks-hub/rybbit-mcp","owner":"nks-hub","description":"MCP server for Rybbit Analytics - query statistics, errors, users, sessions, funnels, goals and performance metrics via Claude Code","archived":false,"fork":false,"pushed_at":"2026-03-06T00:50:12.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-06T04:44:20.715Z","etag":null,"topics":["analytics","claude-code","mcp","model-context-protocol","rybbit","typescript","web-analytics"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nks-hub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-06T00:32:56.000Z","updated_at":"2026-03-06T00:50:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nks-hub/rybbit-mcp","commit_stats":null,"previous_names":["nks-hub/rybbit-mcp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nks-hub/rybbit-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nks-hub%2Frybbit-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nks-hub%2Frybbit-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nks-hub%2Frybbit-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nks-hub%2Frybbit-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nks-hub","download_url":"https://codeload.github.com/nks-hub/rybbit-mcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nks-hub%2Frybbit-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30195742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","claude-code","mcp","model-context-protocol","rybbit","typescript","web-analytics"],"created_at":"2026-03-06T22:06:17.116Z","updated_at":"2026-04-01T23:43:49.107Z","avatar_url":"https://github.com/nks-hub.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nks-hub/rybbit-mcp\n\n[![Build Status](https://github.com/nks-hub/rybbit-mcp/actions/workflows/build.yml/badge.svg)](https://github.com/nks-hub/rybbit-mcp/actions)\n[![npm version](https://img.shields.io/npm/v/@nks-hub/rybbit-mcp.svg)](https://www.npmjs.com/package/@nks-hub/rybbit-mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.7+-3178c6.svg)](https://www.typescriptlang.org/)\n[![MCP SDK](https://img.shields.io/badge/MCP_SDK-1.27+-8b5cf6.svg)](https://modelcontextprotocol.io/)\n\n\u003e MCP server for [Rybbit Analytics](https://github.com/rybbit-io/rybbit) — query statistics, errors, users, sessions, funnels, goals, and performance metrics directly from Claude Code or any MCP-compatible client.\n\n---\n\n## Why?\n\nInstead of manually checking the Rybbit dashboard, let your AI assistant query analytics data directly:\n\n- \"How many users visited the site today?\"\n- \"Show me the top pages by bounce rate this week\"\n- \"What errors occurred in the last hour?\"\n- \"Show user journey from homepage to checkout\"\n- \"Compare browser usage between mobile and desktop\"\n\n---\n\n## Quick Start\n\n### Installation (npx — recommended)\n\nNo install needed. Just configure your MCP client to run via `npx`:\n\n```json\n{\n  \"mcpServers\": {\n    \"rybbit\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@nks-hub/rybbit-mcp\"],\n      \"env\": {\n        \"RYBBIT_URL\": \"https://your-rybbit-instance.com\",\n        \"RYBBIT_API_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\nAdd this to your `~/.claude/settings.json` or project `.claude/settings.json`.\n\n**CLI shorthand:**\n\n```bash\nclaude mcp add rybbit -e RYBBIT_URL=https://your-instance.com -e RYBBIT_API_KEY=your-key -- npx -y @nks-hub/rybbit-mcp\n```\n\n### Installation (from source)\n\nFor development or contributing:\n\n```bash\ngit clone https://github.com/nks-hub/rybbit-mcp.git\ncd rybbit-mcp\nnpm install \u0026\u0026 npm run build\n```\n\nThen point your MCP config to the local build:\n\n```json\n{\n  \"mcpServers\": {\n    \"rybbit\": {\n      \"command\": \"node\",\n      \"args\": [\"path/to/rybbit-mcp/build/index.js\"],\n      \"env\": {\n        \"RYBBIT_URL\": \"https://your-rybbit-instance.com\",\n        \"RYBBIT_API_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\n### Usage\n\nAsk Claude Code anything about your analytics data. The MCP tools are automatically available.\n\n---\n\n## Features\n\n| Feature | Description |\n|---------|-------------|\n| **32 Analytics Tools** | Complete coverage of Rybbit API — overview, metrics, sessions, users, events, errors, performance, funnels, goals, journeys, site management |\n| **Flexible Auth** | API key (recommended) or email/password authentication |\n| **Smart Filtering** | Filter by 22 dimensions (browser, country, UTM, page, device, etc.) with 8 comparison types |\n| **Time Ranges** | Date ranges (`YYYY-MM-DD`) or relative time (`pastMinutesStart`) |\n| **Time Series** | Configurable bucket granularity from minutes to years |\n| **Pagination** | Built-in page/limit support for large datasets |\n| **Response Truncation** | Auto-truncation at 25k chars to prevent context bloat |\n| **Actionable Errors** | Error messages guide the LLM toward correct tool usage |\n\n---\n\n## Authentication\n\nSupports two authentication methods:\n\n| Method | Environment Variables | Use Case |\n|--------|----------------------|----------|\n| **API Key** | `RYBBIT_API_KEY` | Recommended for production |\n| **Email/Password** | `RYBBIT_EMAIL`, `RYBBIT_PASSWORD` | Development/testing |\n\nBoth require `RYBBIT_URL` pointing to your Rybbit instance.\n\n---\n\n## Tools (32)\n\n### Configuration \u0026 Site Management\n| Tool | Description |\n|------|-------------|\n| `rybbit_get_config` | Get server version and configuration |\n| `rybbit_list_sites` | List all sites and organizations |\n| `rybbit_create_site` | Create a new site (type: `web` or `app` — app sites auto-disable bot filtering) |\n| `rybbit_delete_site` | Delete a site permanently |\n| `rybbit_get_site_id` | Look up site ID by domain name |\n| `rybbit_update_site_config` | Update site tracking config (IP, errors, replay, etc.) |\n\n### Real-time \u0026 Overview\n| Tool | Description |\n|------|-------------|\n| `rybbit_live_users` | Current active users count |\n| `rybbit_get_overview` | Aggregated metrics (sessions, pageviews, users, bounce rate, duration) |\n| `rybbit_get_overview_timeseries` | Metrics as time-series with configurable buckets |\n| `rybbit_get_session_locations` | Geographic session data with coordinates for map visualization |\n\n### Metrics \u0026 Dimensions\n| Tool | Description |\n|------|-------------|\n| `rybbit_get_metric` | Breakdown by dimension (browser, OS, country, page, UTM, etc.) |\n| `rybbit_get_retention` | User retention cohort analysis |\n\n### Sessions\n| Tool | Description |\n|------|-------------|\n| `rybbit_list_sessions` | Session list with filtering by IP, identified users, min duration, and pagination |\n| `rybbit_get_session` | Full session detail with events and user traits |\n\n### Users\n| Tool | Description |\n|------|-------------|\n| `rybbit_list_users` | Users with search, sort (first/last seen, pageviews, sessions, duration), and identified-only filter |\n| `rybbit_get_user` | User detail with traits and activity |\n| `rybbit_get_user_traits` | Trait keys, values, or find users by trait |\n| `rybbit_get_user_event_breakdown` | Per-user event count breakdown |\n\n### Events\n| Tool | Description |\n|------|-------------|\n| `rybbit_list_events` | Raw event records with filtering |\n| `rybbit_get_event_names` | Custom event names and counts |\n| `rybbit_get_event_properties` | Property breakdowns per event |\n| `rybbit_get_event_timeseries` | Event count trends over time with configurable buckets |\n| `rybbit_get_outbound_links` | Outbound link clicks with URLs and counts |\n\n### Errors\n| Tool | Description |\n|------|-------------|\n| `rybbit_get_errors` | Error types/counts, individual instances, or timeseries for a specific error |\n\n### Performance (Web Vitals)\n| Tool | Description |\n|------|-------------|\n| `rybbit_get_performance` | Core Web Vitals (LCP, CLS, INP, FCP, TTFB) with percentiles |\n| `rybbit_get_performance_timeseries` | Web Vitals trends over time |\n\n### Funnels \u0026 Goals\n| Tool | Description |\n|------|-------------|\n| `rybbit_list_funnels` | Saved funnels with step definitions |\n| `rybbit_analyze_funnel` | Ad-hoc funnel analysis with custom steps |\n| `rybbit_get_funnel_step_sessions` | Sessions that reached or dropped off at a funnel step |\n| `rybbit_list_goals` | Goals with conversion metrics |\n| `rybbit_get_goal_sessions` | Sessions that completed a specific goal |\n\n### Journeys\n| Tool | Description |\n|------|-------------|\n| `rybbit_get_journeys` | User navigation path analysis |\n\n---\n\n## Common Parameters\n\nAll analytics tools support these optional parameters:\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `siteId` | string | Site identifier (required) |\n| `startDate` | string | Start date `YYYY-MM-DD` |\n| `endDate` | string | End date `YYYY-MM-DD` |\n| `timeZone` | string | IANA timezone (e.g., `Europe/Prague`) |\n| `filters` | array | Filter array `[{parameter, type, value[]}]` |\n| `pastMinutesStart` | number | Minutes ago (alternative to date range) |\n\n### Filter Parameters\n\n`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`\n\n### Filter Types\n\n`equals`, `not_equals`, `contains`, `not_contains`, `regex`, `not_regex`, `greater_than`, `less_than`\n\n### Time Buckets\n\n`minute`, `five_minutes`, `ten_minutes`, `fifteen_minutes`, `hour`, `day`, `week`, `month`, `year`\n\n---\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build\nnpm run build\n\n# Watch mode\nnpm run dev\n\n# Type checking\nnpx tsc --noEmit\n```\n\n---\n\n## Requirements\n\n- **Node.js**: 18+\n- **Rybbit Analytics**: Self-hosted or cloud instance\n\n---\n\n## Contributing\n\nContributions are welcome! For major changes, please open an issue first.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'feat: description'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Support\n\n- 📧 **Email:** dev@nks-hub.cz\n- 🐛 **Bug reports:** [GitHub Issues](https://github.com/nks-hub/rybbit-mcp/issues)\n- 📖 **MCP Protocol:** [modelcontextprotocol.io](https://modelcontextprotocol.io/)\n\n## License\n\nMIT License — see [LICENSE](LICENSE) for details.\n\n---\n\n## Links\n\n- [Rybbit Analytics](https://github.com/rybbit-io/rybbit)\n- [npm Package](https://www.npmjs.com/package/@nks-hub/rybbit-mcp)\n- [@nks-hub/rybbit-ts](https://github.com/nks-hub/rybbit-ts) — TypeScript tracking SDK\n- [rybbit-flutter-sdk](https://github.com/nks-hub/rybbit-flutter-sdk) — Flutter/Dart tracking SDK\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by \u003ca href=\"https://github.com/nks-hub\"\u003eNKS Hub\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnks-hub%2Frybbit-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnks-hub%2Frybbit-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnks-hub%2Frybbit-mcp/lists"}