hivecode
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., "@hivecodestart a new Claude Code session"
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.
HiveCode
Real-time analytics dashboard for Claude Code
Track sessions, tool usage, file changes, token costs, and more — all from a real-time local dashboard. Built as an MCP server that plugs directly into Claude Code.
Features
Real-time Dashboard — Live WebSocket updates as Claude Code works
Session Tracking — Monitor every Claude Code session with full detail
Tool Analytics — See which tools are used most, average durations, success rates
File Change Log — Track every file created, edited, or deleted
Cost Tracking — Token usage and estimated API costs with daily breakdowns
Canvas Charts — Visual bar and line charts for activity trends
Activity Feed — Live stream of all events as they happen
MCP Server — Plugs directly into Claude Code via Model Context Protocol
Update Notifications — Get notified when a new version is available
Mobile Responsive — Works on phone and tablet
100% Local — All data stored in SQLite on your machine
Related MCP server: token-meter
Quick Start
# Clone the repo
git clone https://github.com/ZedoxDevelopment/hivecode.git
cd hivecode
# Install dependencies
npm install
# Start the dashboard
npm startOpen http://localhost:3800 in your browser.
Seed Demo Data
Want to see the dashboard in action before connecting Claude Code?
node src/seed-demo.jsConnect to Claude Code
Add HiveCode as an MCP server in your Claude Code settings:
~/.claude/settings.json
{
"mcpServers": {
"hivecode": {
"command": "node",
"args": ["/path/to/hivecode/src/mcp-server.js"],
"env": {}
}
}
}Or run the MCP server standalone:
npm run mcpMCP Tools
Tool | Description |
| Start tracking a new Claude Code session |
| Log a tool call with duration and success status |
| Log a file change (create/edit/delete) |
| Log token usage for cost tracking |
| End the current session with a summary |
| Get dashboard statistics |
API Endpoints
Method | Endpoint | Description |
GET |
| Dashboard overview stats |
GET |
| List all sessions |
GET |
| Session detail with events |
GET |
| Tool usage analytics |
GET |
| Recent file changes |
GET |
| Daily stats for charts |
POST |
| Log events via HTTP |
GET |
| Current version info |
GET |
| Check for updates |
GET |
| Health check |
Dashboard Pages
Overview — Stats grid, 14-day activity chart, recent sessions, top tools
Sessions — Searchable/filterable session list with drill-down detail view
Tools — Usage distribution chart, per-tool bars, performance table
Files — Searchable file change log across all sessions
Costs — Cost/token trend charts with daily breakdown table
Activity Feed — Real-time event stream via WebSocket
Settings — MCP config, data export, seed/clear data
Configuration
Environment Variable | Default | Description |
|
| Dashboard server port |
Tech Stack
Backend: Express.js, WebSocket (ws), better-sqlite3
Frontend: Vanilla JS, Canvas charts, CSS custom properties
Protocol: MCP (Model Context Protocol) over JSON-RPC stdio
Database: SQLite with WAL mode
Project Structure
hivecode/
src/
server.js # Express + WebSocket server
db.js # SQLite schema + prepared statements
mcp-server.js # MCP protocol handler + tools
seed-demo.js # Demo data generator
public/
index.html # Dashboard shell
app.js # Frontend application
style.css # Dark theme styles
data/ # SQLite database (auto-created)
version.json # Version + changelog for update checks
package.jsonLicense
MIT — Zedox Development
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
- AgentCatOAuthcom.agentcat
Analytics and debugging for your MCP server — explore usage and sessions, then root-cause errors.
Read-only analytics for Convex apps, queryable via MCP from Claude, Cursor, and other clients.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceProvides comprehensive telemetry and usage analytics for Claude Code sessions, including token usage tracking, cost monitoring, and tool usage patterns. Enables users to monitor their Claude usage with detailed metrics, warnings, and trend analysis.12-
- AlicenseAqualityAmaintenanceLocal-first dashboard + MCP server that parses Claude Code and Codex JSONL files into a SQLite cost / token tracker. Per-MCP and per-tool breakdown, session drill-down, dedup by request_id; never talks to vendor APIs5100 npm1MIT
- FlicenseAqualityCmaintenanceA local MCP server that tracks token usage and costs for Claude Desktop and Claude Code, providing a live dashboard at localhost:6789.55 npm-
- AlicenseNot gradedqualityCmaintenanceAutomatically tracks AI-assisted work sessions, code changes, and commands in Claude Code or Codex CLI, and provides daily stats, weekly reports, and data export through MCP tools.23 npmMIT