Timewarp logo

Timewarp

Community
vinistoisr

Windows focus tracker with MCP server for AI-powered timecard generation. Tracks active windows, stitches sessions, extracts project numbers, and exposes data to Claude. Also exports Prometheus metrics.

Publishervinistoisr
Repositorytimewarp
LanguageGo
Forks
2
Stars
7
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Timewarp exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    7 stars and 2 forks from the linked repository.

Timewarp

TL;DR

Timewarp helps you fill out your timesheets without having to keep track yourself.

It runs quietly on your Windows PC and watches which window is in front — that's it. It notes the app name and window title (like 25-125_SLD-E101.dwg - AutoCAD) and saves it to a local SQLite database on your computer. Nothing is uploaded or shared — you control the data, and it never leaves your machine unless you choose to sync it (e.g. via OneDrive). This is not a corporate monitoring tool. It's a personal utility that works for you.

When it's time to fill out your timecard, you open your AI assistant and ask in plain English:

"What did I work on this week?"

It reads your local data and tells you: "You spent 4 hours in AutoCAD on project 25-125, 1 hour in a design review meeting, 30 minutes on emails..." — and you copy that into your timesheet. Done.

How it works under the hood: Every second, Timewarp checks which window is active using the Windows API. It groups those seconds into sessions (ignoring brief alt-tabs), extracts project numbers from file names when possible, and stores everything in a local SQLite database. Your AI assistant accesses this database through a local MCP connection — the same way it accesses files on your computer — and can answer questions about your work history.

Compatible with any MCP-enabled AI app, including Claude Desktop, ChatGPT Desktop, and others that support the Model Context Protocol.


Architecture

Timewarp Architecture

Everything stays on your machine. The MCP server is a local process that communicates with your AI app over stdin/stdout — it does not open any network ports or send data anywhere.


Installation

Step 1: Download and run

Download timewarp.exe from the latest release, put it somewhere permanent (e.g. C:\Tools\Timewarp\timewarp.exe), and double-click it.

Step 2: First-run setup

On the first launch, Timewarp walks you through setup automatically:

  1. Choose a data folder — A dialog explains your options and opens a folder picker. Pick a folder inside OneDrive if you use multiple computers (each PC saves its own file, no sync conflicts), or any local folder if you only use one machine.
  2. Start at login — Timewarp asks if you want it to run automatically when you log in. If you click Yes, a UAC prompt will appear (it needs admin rights to create the scheduled task). You can remove this later with timewarp.exe -uninstall.

Don't have admin rights? Skip the UAC prompt and instead create a shortcut to timewarp.exe in your Startup folder. Press Win+R, type shell:startup, and drag the shortcut there. It works the same way — Timewarp will start every time you log in.

After setup, a small purple clock icon appears in your system tray — Timewarp is now tracking.

Step 3: Connect to your AI app

Right-click the tray icon and click Connect to Claude Desktop. Timewarp automatically finds your Claude Desktop config file and adds itself. Restart Claude Desktop and you're done.

Using ChatGPT Desktop or another MCP-compatible app? Click Copy MCP Config instead — this copies the JSON to your clipboard so you can paste it into your app's config file manually. The MCP server config looks like this:

json
{
  "mcpServers": {
    "timewarp": {
      "command": "C:\\Tools\\Timewarp\\timewarp.exe",
      "args": ["-mcp", "-dbpath", "C:\\Users\\You\\OneDrive\\TimewarpData"]
    }
  }
}

Once connected, you can ask things like:

  • "What did I work on this week?"
  • "How much time did I spend in AutoCAD?"
  • "Break down my week by day for my timecard"
  • "List my top apps this week"

What to Ask

Once Timewarp is running and connected, just ask in plain English. Here are some examples:

What you wantWhat to type
Fill out your weekly timecard"Summarize my work this week for my timecard"
Daily breakdown for QuickBooks Time"Break down my work by day this week, with hours per project"
Check time on a specific project"How much time did I spend on project 25-125 this week?"
See what you did on a specific day"What did I work on last Tuesday?"
Find out where your time went"What were my top apps this week and how long did I use each?"
Generate a timesheet narrative"Write a timesheet entry for this week, grouped by project number"
Check meeting time"How many hours of meetings did I have this week?"
Compare weeks"Compare my project time this week vs last week"
Catch untracked time"I was on site Monday with no laptop — can you show me Tuesday through Friday only?"

Your AI app will call the appropriate Timewarp tools automatically. You don't need to know the tool names or syntax — just describe what you need.


System Tray Menu

Right-click the tray icon to access these options:

Menu ItemWhat it does
Stop Tracking / Start TrackingPause and resume tracking. The icon turns grey when paused.
Inactivity ThresholdHow long you must be idle before time stops counting (30s, 1m, 2m, 5m, 10m). Default: 1 minute.
Enable Prometheus EndpointToggle the Prometheus metrics HTTP server on/off (off by default).
Open DB FolderOpens your database folder in Explorer.
Set DB Folder...Pick a new folder for the database. Takes effect immediately.
Connect to Claude DesktopAutomatically adds Timewarp to Claude Desktop's config. Shows a checkmark when connected.
Copy MCP ConfigCopies MCP server config JSON to your clipboard (for ChatGPT Desktop or other MCP apps).
QuitStops Timewarp.

MCP Tools

These are the tools your AI app can call to query your data:

ToolDescription
get_weekly_summaryAttributed project time, unattributed app time, meetings, and inactivity for a week.
get_daily_breakdownSame data broken down by day — ideal for filling out daily timecards or QuickBooks Time.
get_focus_timeTotal focused minutes for a specific process across a date range.
list_top_appsTop 10 processes by focused time for a week.

Example: Weekly Summary

Ask: "Summarize my work this week for my timecard"

Your AI app calls get_weekly_summary and receives:

json
{
  "week": "2026-03-02/2026-03-08",
  "machines": ["DESKTOP-VINC", "LAPTOP-VINC"],
  "attributed": [
    {
      "project_number": "25-125",
      "total_minutes": 252,
      "processes": ["acad.exe", "OUTLOOK.EXE", "Bluebeam Revu"],
      "sample_titles": ["25-125_SLD-E101.dwg - AutoCAD"]
    }
  ],
  "unattributed": [
    { "process": "chrome.exe", "total_minutes": 48, "sample_titles": ["..."] }
  ],
  "meetings": [
    { "subject": "25-019 Design Review", "total_minutes": 62, "sessions": 2 }
  ],
  "inactivity_minutes": 94
}

How Sessions Work

Timewarp doesn't just record every second individually. It stitches activity into sessions:

  • Gaps under 30 seconds in the same app are bridged (you alt-tabbed to copy something and came back)
  • Sessions under 10 seconds are discarded (you accidentally clicked the wrong window)
  • Project numbers are extracted from window titles using the pattern YY-NNN (e.g. 25-125 from 25-125_SLD-E101.dwg)
  • Meetings are detected from Teams/Zoom/Webex window titles
  • Suppressed processes like mstsc.exe (Remote Desktop), LockApp.exe, and ShellExperienceHost.exe are never recorded

Command-line Flags

FlagDescriptionDefault
-dbpathDirectory for database filesSame directory as executable
-mcpRun as MCP stdio server (used by AI desktop apps)false
-installCreate a Windows startup scheduled task
-uninstallRemove the startup scheduled task
-silentRun without system tray iconfalse
-inactivityThresholdInactivity threshold in seconds60
-interfaceNetwork interface for PrometheusAll interfaces
-portPrometheus metrics port9183
-privateReplace window titles with process names in metricsfalse
-debugPrint debug output to consolefalse

Prometheus Metrics (Optional)

Timewarp can expose a Prometheus endpoint for real-time dashboarding. It is off by default — enable it from the tray menu or by toggling it on.

Endpoint: http://localhost:9183/metrics

MetricTypeDescription
focused_window_pidGaugePID of the currently focused window
focused_window_duration_secondsCounterTotal seconds focused per process
focused_window_changes_totalCounterNumber of focus changes
focus_inactivity_seconds_totalCounterTotal seconds of inactivity
meeting_duration_secondsCounterSeconds spent in meetings

Building from Source

git clone https://github.com/vinistoisr/timewarp.git
cd timewarp
go build -ldflags "-H=windowsgui" -o timewarp.exe .

Requires Go 1.24+.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "vinistoisr-timewarp": {
      "command": "",
      "args": []
    }
  }
}

Use Timewarp MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Timewarp is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Timewarp as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Timewarp MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "vinistoisr-timewarp": {
      "command": "npx",
      "args": [
        "-y",
        "timewarp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Timewarp MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Timewarp MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Timewarp to help me with this task?
Timewarp
Sure. I read it.
Here is what I found using Timewarp.

Frequently asked questions

What is the Timewarp MCP server used for?

Timewarp is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Timewarp MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Timewarp with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Timewarp MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Timewarp connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Timewarp MCP to TypingMind?

Timewarp runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Timewarp MCP provide in TypingMind?

Timewarp exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Timewarp MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Timewarp requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇