Rybbit for developers

Analytics that behaves like good software.

One script tag, or one npm package. A REST API for everything the dashboard shows, an MCP server your agents can operate, and a codebase you can read, audit, and run on your own server.

7-day free trial, or self-host free forever.

Install

One tag. Or one package.

Drop the script on any site, or install @rybbit/js and initialize it in two lines. Autocapture starts immediately; custom events are there when you want them.

Script docs
index.html
<script
  src="https://app.rybbit.io/api/script.js?siteId=YOUR_SITE_ID"
  async
></script>
app.ts
npm install @rybbit/js

import rybbit from "@rybbit/js";

await rybbit.init({
  analyticsHost: "https://app.rybbit.io/api",
  siteId: "YOUR_SITE_ID",
});

Stats API

Everything in the dashboard, over HTTP.

Every metric Rybbit shows is available from the REST API with a bearer key. Pull traffic into your own tools, build a live feed, or export events to a warehouse. An API playground in the dashboard generates ready-to-use snippets.

API reference
terminal
curl "https://app.rybbit.io/api/sites/123/metric?parameter=country&start_date=2026-06-01&end_date=2026-06-30" \
  -H "Authorization: Bearer YOUR_API_KEY"
response.json
{
  "data": {
    "data": [
      { "value": "US", "count": 8420, "percentage": 54.63 },
      { "value": "GB", "count": 2150, "percentage": 13.95 }
    ],
    "totalCount": 87
  }
}

Organization keys or personal keys, rate-limited per plan. Sessions, metrics, funnels, goals, errors, and events are all endpoints. See the reference for the full surface.

MCP

Your agent already knows how to use it.

A hosted MCP server sits on top of the full REST API. Your agent reads live traffic, debugs errors, and manages goals, with the same permissions as a teammate.

Set up MCP
terminal
claude mcp add --transport http rybbit \
  https://app.rybbit.io/api/mcp

Open source

Read the code. Run the code.

Every line of Rybbit is on GitHub under AGPL v3, including the cloud and enterprise features. Clone it, audit it, and run the full stack on your own VPS with Docker.

terminal
git clone https://github.com/rybbit-io/rybbit.git
cd rybbit
./setup.sh your.domain.name

The setup script brings up the full stack with Docker Compose. Self-hosting is free for personal and business use.

Developer FAQ

A server with Docker. Clone the repository and run the setup script with your domain. It brings up the full stack with Docker Compose. Self-hosting is free for personal and business use.

Rybbit is 100% open source under AGPL v3, including the code for the cloud and enterprise offerings. See the self-hosting vs cloud guide for the practical differences between running it yourself and using the managed cloud.

Yes. @rybbit/js on npm for websites and web apps, plus Node and React Native SDKs. The plain script tag works anywhere HTML does.

Yes. The Stats API exposes the metrics the dashboard shows over HTTP with bearer-key auth, and there's an API playground in the dashboard for exploring endpoints and generating code snippets.

It's a hosted MCP endpoint on top of the REST API. Point Claude Code, Claude Desktop, Codex, Cursor, VS Code, or opencode at it, and your agent can query traffic, debug errors, and manage goals with the same permissions as a teammate.

Yes. Rybbit doesn't use cookies or collect personal data that could identify visitors, so sites using it don't need a consent banner for analytics.

Ship analytics in the next ten minutes.

One script tag now. The API, the MCP server, and self-hosting whenever you want them.

Live demo