vturb-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vturb-mcpfind active players for today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vturb-mcp
MCP server for the vTurb Analytics API — exposes 15 tools to query real-time and historical video analytics directly from Claude.
Features
15 analytics tools covering sessions, events, engagement, clicks, conversions, traffic origin and more
Built-in rate limiter — token bucket enforcing the Pro tier limit of 120 req/min (no 429 errors)
Smart player detection —
find_active_playersauto-discovers which video is live todayPer-client
.envfiles — clean credential management across multiple accounts
Related MCP server: MCP YouTube Intelligence
Requirements
Node.js ≥ 18
A vTurb account with Analytics API access
Your API token from app.vturb.com/settings/analytics-api
Claude Code (CLI or VSCode extension)
Installation
1. Clone the repository
git clone https://github.com/hiperbold/vturb-mcp.git
cd vturb-mcp
npm install
npm run build2. Create your .env file for each client
The MCP uses a per-client .env file so you can manage multiple vTurb accounts cleanly. Name the file after the client:
# Copy the example
cp .env.example .env.customer-name
# Edit and paste your token
# .env.customer-name
VTURB_API_TOKEN=your_token_hereThe file format is simple — one variable per line:
VTURB_API_TOKEN=eyJ...Security: Never commit
.env.*files. They are already in.gitignore.
3. Register the MCP server in Claude Code
Open ~/.claude/mcp.json (create it if it doesn't exist) and add:
{
"mcpServers": {
"vturb-mcp": {
"command": "node",
"args": ["/absolute/path/to/vturb-mcp/dist/index.js"],
"env": {
"VTURB_ENV_FILE": "/absolute/path/to/vturb-mcp/.env.customer-name"
}
}
}
}Windows example:
{
"mcpServers": {
"vturb-mcp": {
"command": "node",
"args": ["F:\\local-mcps\\vturb-mcp\\dist\\index.js"],
"env": {
"VTURB_ENV_FILE": "F:\\local-mcps\\vturb-mcp\\.env.customer-name"
}
}
}
}4. Restart Claude Code
The MCP server starts automatically on the next session. You'll see it listed in your available tools.
Switching between clients
To switch accounts, just update VTURB_ENV_FILE in mcp.json to point to a different .env file and restart Claude:
"VTURB_ENV_FILE": "F:\\local-mcps\\vturb-mcp\\.env.other-customer"Available Tools
Discovery & Monitoring
Tool | Description |
| Lists all players in the account with |
| Smart tool. Lists all players, checks which ones have activity today, and returns only the active ones with their metadata. Use this first to discover the correct |
| Returns the current API quota status: queries used, remaining, and reset time. Use this to monitor consumption and avoid hitting the 120 req/min limit. |
| Returns the number of users currently watching, broken down by domain. Configurable time window (1–720 minutes). |
Session Analytics
Tool | Description |
| Main analytics dashboard for a player: total views, plays, unique sessions/devices, engagement rate, clicks, conversions, and revenue in BRL/USD/EUR. |
| Same metrics as |
Events
Tool | Description |
| Returns totals for |
| Same event totals broken down by day for trend analysis. |
Engagement & Retention
Tool | Description |
| Returns the video retention curve: how many users are still watching at each second. Also returns |
| Returns the engagement rate per day over the selected period. |
Clicks
Tool | Description |
| Returns CTA click counts grouped by video second. Identifies the moment in the video that drives the most intent. |
| CTA click totals broken down by day. |
Conversions
Tool | Description |
| Conversion totals grouped by day, with unique session and device counts. |
Traffic Origin
Tool | Description |
| Breaks down session metrics by traffic source. Supports |
Dashboard Summary
Tool | Description |
| Returns a pre-computed summary (views, plays, engagement rate, clicks, and conversion rate) — the same numbers shown in the vTurb dashboard header. |
Typical Workflow
1. find_active_players → discover which player_id is in use today
2. get_session_stats → get the main KPIs for a date range
3. get_user_engagement → inspect the retention curve
4. get_clicks_timed → find when viewers click the CTA
5. get_conversions_by_day → track conversion trends
6. get_traffic_origin_stats → compare traffic sourcesRate Limiting
The client uses a token bucket algorithm configured for the Pro tier:
Limit: 120 requests per minute
Refill rate: 2 tokens per second
Behavior: requests wait automatically if the bucket is empty — no errors thrown, no retries needed
Use get_quota_usage to check live consumption from vTurb's side.
Project Structure
vturb-mcp/
src/
env.ts — loads .env.* file at startup (via VTURB_ENV_FILE)
client.ts — rate-limited HTTP client (token bucket, 120 req/min)
index.ts — MCP server, registers all 15 tools
tools/ — one file per tool
list-players.ts
find-active-players.ts
get-quota-usage.ts
get-session-stats.ts
get-session-stats-by-day.ts
get-events-total.ts
get-events-by-day.ts
get-user-engagement.ts
get-user-engagement-by-day.ts
get-clicks-timed.ts
get-clicks-by-day.ts
get-conversions-by-day.ts
get-live-users.ts
get-headlines-stats.ts
get-traffic-origin-stats.ts
dist/ — compiled output (run npm run build)
.env.example — template for creating client-specific env filesAPI Reference
Base URL:
https://analytics.vturb.netAuth headers:
X-Api-Token+X-Api-Version: v1
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
Analytics for MCP servers. Find out which of your tools agents get wrong. MCPulse shows you which tools AI agents retry, which come back empty, and which they never call at all. Two lines inside your own server. It never sees your arguments or your results. getmcpulse.com
Clamp Analytics MCP server: traffic, revenue, funnels, cohorts, errors, and search, for AI agents.
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis read-only MCP Server allows you to connect to YouTube Analytics data from Claude Desktop through CData JDBC Drivers. Free (beta) read/write servers available at https://www.cdata.com/solutions/mcp1MIT
- AlicenseAqualityBmaintenanceAn MCP server for intelligent YouTube video analysis that provides token-optimized summaries, sentiment analysis, and entity extraction from transcripts. It enables AI assistants to perform video reporting, channel monitoring, and comprehensive YouTube searches through structured data tools.1052Apache 2.0
- FlicenseBqualityDmaintenanceMCP server that enables video analysis capabilities to Claude, including frame extraction, scene detection, and video metadata retrieval.8-
- AlicenseNot gradedqualityCmaintenanceMCP server providing 13 agent-friendly tools for video creation and management via the Vivideo API, with built-in rate limiting, retries, and secret redaction.MIT