Rybbit for Developers | Open-Source, Self-Hostable Analytics | Rybbit
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.
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.
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
}
}
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.
terminal
claude mcp add --transport http rybbit \
https://app.rybbit.io/api/mcp
Works with
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 questions, answered plainly.
What do I need to self-host Rybbit?
Is the open-source version the full product?
Does Rybbit have an SDK?
Can I access my data programmatically?
How does the MCP server work?
Is Rybbit GDPR compliant without a cookie banner?
More ways teams use Rybbit.
For agencies One workspace for every client site, with dashboards clients can read on their own.
White label Embed dashboards, build on the API, or self-host: analytics under your own brand.
For startups Answers about your traffic and product without hiring a data team.
For SaaS Signup funnels, retention cohorts, and the sessions behind every drop-off.
For ecommerce Checkout funnels, campaign tracking, and full traffic with no consent banner.
For small businesses The handful of numbers that matter, with no GA4 setup and no cookie banner.
For creators & publishers What resonates, where readers come from, and a dashboard you can share.
For European companies EU-hosted cloud, cookieless compliance, and a self-host option for full control.
Enterprise SSO, dedicated instances, on-premise installation, and infinite retention.
Compare Rybbit Side-by-side with Google Analytics, Plausible, Matomo, PostHog, and more.
Ship analytics in the next ten minutes.
One script tag now. The API, the MCP server, and self-hosting whenever you want them.
7-day free trial. Cancel anytime.