Claude Code

Your analytics, inside Claude Code

Ask about your site without leaving the terminal. One command adds StepMetrics as an MCP server, and the answers come from the same numbers as the dashboard.

Connect with one prompt

Open Connect agent in your dashboard, click Copy setup prompt, and paste it into your coding agent. It installs tracking for your framework and verifies MCP access with a real analytics query. No StepMetrics npm package is required.

Manual MCP configuration

With a read key from your setup prompt:

claude mcp add --transport http stepmetrics https://app.stepmetrics.co/mcp \
  --header "Authorization: Bearer dak_..."

That registers twenty-eight read-only tools. Ask a question and Claude Code picks the tool.

What you can ask

Twenty-eight read-only tools sit behind those questions: sites, overview, live visitors, series, top pages and sources, returning visitors, each visitor and their visits, breakdowns, conversions, funnels, event checks, the ignore list, the All sites dashboard layout, clickstream on Pro and Scale, and five over agent telemetry. The agent calls the same query functions the dashboard calls, so the two cannot disagree about a number.

What it cannot do

It cannot create keys, delete your data or sites, or touch billing, whatever key it holds. The key the dashboard gives your agent can change only three things, when you ask: your Dashboard page and its shared metrics; the ignore list, so you can tell it to stop counting the computer you are sitting at; and your workspace's keys, which it can revoke but never create, and never an admin key. A site id from another account returns the same "not found" as a site that does not exist. "The model would not do that" is not a security control, so the endpoint is built so that it cannot.

Try it on your site.

Add your first site for free. See where visitors come from, what they look at, and how many take the next step.

No credit card required.