Gnat

Unique Visitors Today
Page Views Today
Live Visitors Currently active
Avg Time on Page
Custom Events
Avg Time on Site
Bounce Rate Today
Retention Rate (7 days)
Pages per Session

Live Visitors

Filter

Unique Visitors Over Time

Traffic Sources

Top Pages

Top Referrers

Countries

Device Types

Browsers

Operating Systems

Custom Events

Export Data

Exports everything shown for the currently selected date range () as a single file: stats, visitors over time, traffic sources, top pages, top referrers, countries, devices, browsers, custom events, funnels, and retention. Change the range at the top of the page before exporting to change what's included.

Format

MCP Connection

Gnat ships with a built-in MCP server so AI agents can query your analytics directly — traffic overview, custom events, funnels, retention, and live visitors. Generate a token below, then connect using either the static URL or the header-based config.

Example query, once connected

Ask your agent:
"Using the gnat MCP server, get unique visitors
and top referrers for the last 7 days."

Clients that support custom headers can instead connect to with an Authorization: Bearer <token> header - that keeps the token out of any URL, logs, or saved config file. Regenerating invalidates every existing connection immediately.

About Gnat

Small, quiet, everywhere. Self-hosted analytics without the bloat.

Gnat is a single lightweight Go binary for self-hosted, privacy-first web analytics. Download it, write a small config file, run it. No Docker, no multi-service stack, no per-language SDKs. Any backend just POSTs JSON.

Most self-hosted analytics tools force a tradeoff. Gnat aims to combine the deployment simplicity of a single binary with real analytics depth, plus an AI-native layer that none of the others offer yet: funnels, cohorts, retention curves, auto-discovered path analysis, and a built-in MCP server so AI agents can query your analytics directly.

This dashboard you're looking at is the embedded UI, served straight out of the Go binary. Export and MCP access here are both fully working, not just previews.

Gnat is built for one site per instance, matching the single-binary model. Features that only make sense once a team or several properties are involved are being tracked separately rather than bolted onto the core tool.

On the roadmap (enterprise)

None of this exists yet. Listed here so it's clear what's planned versus what's already in the binary today.

  • Multi-site management. One dashboard across several properties, instead of one instance per site.
  • SSO and team access control. Real accounts and roles, instead of one shared API key for everyone.
  • Priority support. A direct line for setup help and issues, rather than best-effort via email.
  • Managed hosting. For anyone who wants Gnat without running and maintaining the binary themselves.
  • Audit logs. A record of who exported data, and who changed configuration, once more than one person has access.

Found a bug, or want to report an issue? Reach out at the email above. That's also the fastest way to talk outreach or freelance work.