Wakatime MCP server

Connect Wakatime to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Wakatime MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the list projects tool in Wakatime
  • Use the get project commits tool in Wakatime
  • Use the delete heartbeat tool in Wakatime
  • Use the get user profile tool in Wakatime
  • Use the get heartbeats tool in Wakatime
  • Use the get private leaderboards tool in Wakatime

Supported Tools

list_projects

List Projects

List all coding projects that have recorded activity. Optionally search by name. Returns project names, IDs, and repository information.

get_project_commits

Get Project Commits

Retrieve commit history for a specific project with time-spent-coding data per commit. Commits can be filtered by author and branch. Requires a connected repository (GitHub, Bitbucket, or GitLab).

delete_heartbeat

Delete Heartbeat

Delete a specific heartbeat by its ID. Use the "Get Heartbeats" tool first to find the heartbeat ID you want to remove.

get_user_profile

Get User Profile

Retrieve the current user's profile information including display name, email, timezone, last active plugin, social profiles, plan details, and machines.

get_heartbeats

Get Heartbeats

Retrieve raw coding activity events (heartbeats) for a specific day. Each heartbeat records the file or app being used, timestamp, project, branch, language, and cursor position. Useful for detailed activity analysis.

get_private_leaderboards

Get Private Leaderboards

List all private leaderboards the user has access to. Use the leaderboard ID with the "Get Leaderboard" tool to view rankings.

create_external_duration

Create External Duration

Record activity durations from sources other than IDE plugins, such as calendar events, meetings, or code reviews. Supports both single and bulk creation. Uses an external ID for deduplication so the same event won't be recorded twice.

get_durations

Get Durations

Retrieve coding activity for a given day as time duration blocks. Durations are created by joining heartbeats within the user's keystroke timeout preference (default 15 minutes). Can be filtered by project and sliced by different dimensions.

get_coding_stats

Get Coding Stats

Retrieve aggregated coding statistics for a configurable time range. Includes breakdowns by project, language, editor, OS, category, and more, plus best day and daily average. Stats may be computed asynchronously — check the **isUpToDate** flag.

get_leaderboard

Get Leaderboard

Access public or private leaderboards of users ranked by coding activity. The public leaderboard can be filtered by language, country, or hireable status. For private leaderboards, provide the leaderboard ID.

get_machines

Get Machines

List all machines (computers) that have sent coding activity, including hostname, IP, and last seen time.

get_coding_summaries

Get Coding Summaries

Retrieve coding activity summaries for a given date range, segmented by day. Each day includes time breakdowns by project, language, editor, operating system, category, dependencies, and machine. Useful for understanding how coding time was distributed across a period.

get_insights

Get Insights

Access deeper analytics about coding activity for a given time range. Available insight types include weekday patterns, daily breakdowns, best day, daily average, and breakdowns by projects, languages, editors, categories, machines, and operating systems.

manage_data_exports

Manage Data Exports

List existing data exports or request a new full data export of all coding activity. Exports are generated asynchronously and a download URL is provided upon completion.

get_goals

Get Goals

Retrieve all coding goals. Goals define target coding time per day or week, can be scoped to specific languages, editors, or projects, and track success/failure over time.

get_all_time

Get All Time

Retrieve the total coding time since the user's account was created. Optionally filter by a specific project to see all-time totals for that project.

get_organizations

Get Organizations

List organizations the user belongs to, along with their dashboards and members. Optionally drill into a specific organization to see its dashboards, or into a specific dashboard to see members and summaries.

create_heartbeat

Create Heartbeat

Record one or more coding activity events (heartbeats). Supports both single and bulk creation. Each heartbeat captures what file/app is being worked on, when, and in what context (project, branch, language).

get_project_commit

Get Project Commit

Read coding time and repository details for a single project commit. Use list_projects for project IDs and get_project_commits for commit hashes. Requires a connected repository.

get_external_durations

Get External Durations

Read meetings, calendar events, and other external activity recorded for a day. Includes the external IDs used to update records with create_external_duration.

Connect Wakatime to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Wakatime in Metorial. In your Metorial portal, enable the Wakatime MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Wakatime tools.

Run Wakatime through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Wakatime and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Wakatime tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Wakatime

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Google Drive

Upload, download, create, copy, move, rename, trash, and permanently delete files and folders in Google Drive. Search for files using complex queries filtering by name, MIME type, owner, modification date, labels, and other metadata. Share files and folders with specific users, groups, or domains with role-based permissions (owner, writer, commenter, reader). Manage shared drives and their members. Export Google Workspace files (Docs, Sheets, Slides) to standard formats like PDF, DOCX, and XLSX. Track file revision history and restore earlier versions. Create, read, update, and delete threaded comments and replies on files. Read label definitions and search files by label. Browse the Drive apps installed for your account. Store app-specific data in a hidden per-user folder.

Technical notes for Wakatime

Read WakaTime coding summaries, statistics, durations, heartbeats, projects, and commit details. Record heartbeats and external activities such as meetings or code reviews, and read the resulting external durations. View goals, organizations, dashboards, machines, insights, and public or private leaderboards. Request coding data exports and download completed results. Use OAuth for activity reads and external durations; API keys only send heartbeats.

Frequently asked questions

Common questions about connecting Wakatime to AI agents with Metorial.

  1. How many tools does the Wakatime MCP server have?
    The Wakatime MCP server exposes 20 tools, including List Projects, Get Project Commits, Delete Heartbeat. Each one is governed and traced through Metorial.
  2. Wakatime exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Wakatime MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Wakatime and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Wakatime MCP server yourself or use the hosted gateway.

Connect Wakatime to production AI agents

See how Metorial gives your team governed access to Wakatime, with tracing and security controls built in.