How to Use the Pirsch Analytics MCP in Claude Code
Manage your Pirsch Analytics MCP Server directly from your terminal with Claude Code to automate reporting and monitor live metrics.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Pirsch Analytics MCP to Claude Code
Create your Vinkius account to connect Pirsch Analytics to Claude Code — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Instant Infrastructure Audits
The `list_domains` tool lets your terminal agent audit every registered web property in seconds. Claude Code hits the API, formats the output into a clean CLI table, and pipes the results into your infrastructure logs. Need to spin up a new environment? You run a single command. The agent uses `create_domain` to register the site, grabs the new tracking tokens, and injects them straight into your `.env` files.
Headless Traffic Monitoring with Claude Code
The `get_statistics_overview` tool pulls hard numbers on your active visitors without a browser. You can schedule a cron job that triggers the agent to fetch yesterday's traffic and dump it into a Slack webhook. When a deployment goes out, you want immediate feedback. The agent loops `get_statistics_active` to watch real-time user counts drop or spike, giving you instant terminal alerts if a release breaks the site.
Batch Event Processing via MCP
The `send_event_batch` tool allows you to replay backend logs directly into your analytics provider. Claude Code parses your server access logs, formats the data, and pushes thousands of events in a single command. It handles the exact same process for page views using `send_hit_batch`. You get accurate historical data backfill without writing custom Python scripts or dealing with rate-limit backoff logic.
Set up Pirsch Analytics MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seepirsch-analytics-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Pirsch Analytics transactions." It will automatically discover and invoke the available Pirsch Analytics tools.
claude mcp add --transport http pirsch-analytics-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Pirsch Analytics MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Pirsch Analytics MCP today
We host it, we monitor it, we maintain it. You just paste one token.