Your analytics, inside Claude Code.
Ship a feature in Claude Code, then ask “did it work?” without leaving the terminal. One connect command registers the MCP server via Claude Code's own CLI. Because Claude Code has your code and tracking plan, you can ask by your own names (“MAU for the PQR page”) and it resolves them to routes; answers are computed from deterministic reports, never generated SQL.
what analytics works inside Claude Code?
smolanalytics is web and product analytics you ask from inside Claude Code. It ships an MCP server, and `smolanalytics connect claude-code` registers it through Claude Code's own CLI: it runs `claude mcp add -s user` for you rather than hand-editing a JSON file, which is the documented, supported path. Once connected, Claude Code gets 96 tools and 15 built-in prompts (instrument-my-app, whats-broken-today, weekly-review, and more). On the cloud it is one connection for the whole org: add your org's MCP endpoint once (the API token from Settings, at /api/mcp), then query or manage any project by passing project="the-name" to any of those tools, and provision new projects with create_project, no browser. The secret read key stays server-side, and the token is permanent, so you set it up once. Because Claude Code also has your codebase and tracking plan, you can ask in your own terms, like "what's the MAU for the PQR page", and it resolves PQR to the /pqr route before querying. Answers are computed from exact, deterministic reports (funnels, retention, paths), never LLM-generated SQL. A plan-as-code gate (`smolanalytics plan check`) fails CI when an event your tracking plan expects stops firing, and it can run against existing PostHog data via --source=posthog before you migrate. You bring your own model (Claude Code is already your model), so asking is never metered. Try it at smolanalytics.com: 14-day full trial, no card, then $19/month.
built for the agent loop
Honest pricing: a 14-day full trial, no credit card. Then Pro $19/mo (unlimited sites, 2M events included) or Scale $49/mo (5M events included); past that it's a flat $6/M and the dashboard never locks. Asking from Claude Code is never metered: it's your model.
Stop alt-tabbing to a dashboard.
One connect command, gate your instrumentation in CI, and get the real number where you already work.