Compatible with every major AI agent and IDE
What is the WakaTime (Coding Stats) MCP Server?
Connect your WakaTime account to any AI agent to analyze your coding habits, track project progress, and monitor productivity goals through natural conversation.
What you can do
- Coding Statistics — Get summarized stats for specific ranges (7 days, 30 days, etc.) or your all-time total coding time.
- Project Tracking — List all projects detected by your IDE plugins and see daily summaries of activity per project.
- Goal Monitoring — Check your progress on custom coding goals and retrieve specific details for individual targets.
- Activity Analysis — Inspect raw heartbeats and duration blocks to understand exactly when and how you are working.
How it works
- Subscribe to this server
- Enter your WakaTime API Key
- Start querying your coding data from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Developers — track your own productivity and see which projects consume most of your time.
- Team Leads — monitor high-level project activity and goal progress without manual reporting.
- Data Enthusiasts — analyze coding patterns and heartbeats to optimize your workflow.
Built-in capabilities (14)
Create activity from an external app
Create a raw coding activity ping
Get total time logged since account creation
Get a specific user-defined coding goal
Get summarized coding statistics for a given range
List of commits for a project with time spent on each
Get rules to modify or delete coding activity based on patterns
Get coding activity joined into blocks based on keystroke timeout
g., Google Calendar). Get activity created from external apps
List user-defined coding goals and their progress
Get raw coding activity pings from IDE plugins
List of projects detected for the user
Get daily totals of coding activity
Update rules to modify or delete coding activity
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and WakaTime (Coding Stats) tool infrastructure. Connect 14 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add WakaTime (Coding Stats) without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every WakaTime (Coding Stats) tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
WakaTime (Coding Stats) in Mastra AI
WakaTime (Coding Stats) and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect WakaTime (Coding Stats) to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for WakaTime (Coding Stats) in Mastra AI
The WakaTime (Coding Stats) MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 14 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
WakaTime (Coding Stats) for Mastra AI
Every tool call from Mastra AI to the WakaTime (Coding Stats) MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I get a summary of my coding activity for the last week?
Yes! Use the get_stats tool with the range 'last_7_days'. Your agent will return aggregated data including total time, languages used, and project breakdown.
How do I check my progress on my coding goals?
Run the list_goals tool to see all your active goals and their current completion percentage. You can also use get_goal with a specific ID for deeper details.
Can I see which projects I've been working on?
Yes, the list_projects tool will return a list of all projects detected by your WakaTime plugins. You can then use list_summaries to see time spent on them.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Recharge Alternative
70 toolsManage subscription commerce via Recharge — handle customers, subscriptions, addresses, and delivery schedules directly from your AI agent.

Webshare
10 toolsManage residential and datacenter proxies, rotation settings, and authorized IPs on Webshare — the fast and affordable proxy network.

HubSpot CRM
10 toolsSearch, create, and manage HubSpot contacts, companies, notes, tasks, and associations through natural conversation.

Voiceflow
12 toolsDesign, prototype, and launch conversational AI agents with a visual builder that handles complex dialog flows without code.
