4,500+ servers built on MCP Fusion
Vinkius
Countly logo
Vinkius
Claude Code logo

How to Use the Countly MCP in Claude Code

Run headless Countly analytics audits and trigger custom event tracks directly from your Claude Code terminal.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Countly MCP on Cursor AI Code Editor MCP Client Countly MCP on Claude Desktop App MCP Integration Countly MCP on OpenAI Agents SDK MCP Compatible Countly MCP on Visual Studio Code MCP Extension Client Countly MCP on GitHub Copilot AI Agent MCP Integration Countly MCP on Google Gemini AI MCP Integration Countly MCP on Lovable AI Development MCP Client Countly MCP on Mistral AI Agents MCP Compatible Countly MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Claude Code

Connect Countly MCP to Claude Code

Create your Vinkius account to connect Countly to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Headless session testing in Claude Code

This Countly MCP Server exposes `begin_session`, `update_session`, and `end_session` directly to your terminal environment. You can pipe these tools into shell scripts via Claude Code to simulate user traffic, verify session timeouts, or test telemetry collection during CI/CD runs. It removes the need for any graphical interface. Because Claude Code operates entirely in the terminal, you can easily script Countly session lifecycles without opening a browser or booting up a heavy IDE.

Command-line event recording and validation

The integration uses `record_events` and `read_events` to let you track and verify custom application behavior straight from the Claude Code command line. When debugging a production issue, you can tell your agent to query the latest custom events to see if a specific error code was logged in Countly. It gives you instant diagnostics. You can pipe the JSON output of these Countly event tools directly into utilities like jq or grep, making terminal-based analytics troubleshooting incredibly fast with Claude Code.

Instant metrics extraction via MCP Server

This server provides `read_metrics` and `read_drill` to pull raw behavioral cohorts and standard usage metrics right into your Claude Code shell. If you need a quick count of daily active users, you ask your agent, and it queries your Countly instance to return a formatted text table. It replaces slow dashboard loading times. You can also update user segments using `update_user_details` to quickly flag internal test accounts. Running this command directly from your terminal session updates metadata instantly.

Setup guide

Set up Countly 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. 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 user to make it available across all projects.

  2. 2

    Verify the connection

    Start a Claude Code session and type /mcp to list connected servers. You should see countly-mcp with a green status indicator.

  3. 3

    Start using tools

    Ask Claude Code something like "Check my latest Countly transactions." It will automatically discover and invoke the available Countly tools.

Terminal
claude mcp add --transport http countly-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 Countly MCP in Claude Code

You can have Claude Code call `read_events` and then pipe the resulting Countly event JSON directly into local terminal utilities like jq or custom bash scripts.
Yes, you can run Claude Code headlessly to trigger `begin_session` and `end_session` sequences to mock Countly sessions during your automated deployment tests.
You add the MCP server to your local Claude Code config using the command-line interface, passing your Countly credentials as environment variables or command flags.
Yes. If you use Countly Enterprise, Claude Code can execute `read_drill` to pull complex behavioral cohorts directly into your terminal output.
Your Countly analytics credentials and user session data are stored locally in your terminal's encrypted configuration. The MCP connection uses transport-level security, ensuring no telemetry is cached or intercepted.

Start using the Countly MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 8 tools

We've already built the connector for Countly. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 8 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.