ManicTimeMcp 0.2.40

There is a newer version of this package available.
See the version list below for details.
{
  "servers": {
    "ManicTimeMcp": {
      "type": "stdio",
      "command": "dnx",
      "args": ["-y", "ManicTimeMcp@0.2.40", "--yes", "--", "mcp", "serve"]
    }
  }
}
                    
This package contains an MCP Server. The server can be used in VS Code by copying the generated JSON to your VS Code workspace's .vscode/mcp.json settings file.
dotnet tool install --global ManicTimeMcp --version 0.2.40
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local ManicTimeMcp --version 0.2.40
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ManicTimeMcp&version=0.2.40
                    
nuke :add-package ManicTimeMcp --version 0.2.40
                    

ManicTime MCP

NuGet

A .NET MCP server and Repl-based command app that gives AI agents and local operators read-only access to local ManicTime activity data: applications, documents, websites, screenshots, and usage patterns.

Compatibility notice — This project is an independent integration and is not affiliated with or endorsed by ManicTime or Finkit.

Three aligned modes

The same application exposes three aligned surfaces:

Mode Purpose Typical command
MCP Serve stdio tools/resources/prompts to an agent client dnx -y ManicTimeMcp mcp serve
CLI Run one command directly and emit structured output dotnet run --project src/ManicTimeMcp/ManicTimeMcp.csproj -- timeline list --output:json
REPL Explore the command graph interactively with help and discovery dotnet run --project src/ManicTimeMcp/ManicTimeMcp.csproj

When to use which mode

  • Use MCP when Claude, Copilot, Codex, or another MCP-compatible client should call the server over stdio.
  • Use CLI when you want one direct command locally, especially for testing payloads or troubleshooting output.
  • Use REPL when you want interactive discovery, --help, or to explore routes before wiring an MCP client.

Launching the app

Published package

Requires the .NET 10+ SDK. Run directly with dnx:

dnx -y ManicTimeMcp mcp serve

This downloads the latest published package and starts the MCP server over stdio.

Local development

Start the MCP server from source:

dotnet run --project src/ManicTimeMcp/ManicTimeMcp.csproj -- mcp serve

Run one CLI command directly:

dotnet run --project src/ManicTimeMcp/ManicTimeMcp.csproj -- timeline list --output:json

Start the interactive REPL:

dotnet run --project src/ManicTimeMcp/ManicTimeMcp.csproj

dotnet run requires the -- separator because it splits dotnet launcher arguments from the app's own command path. MCP client JSON configs do not use this separator because they already pass arguments as an explicit array.

Agent configuration

Visual Studio / VS Code (Copilot)

The package embeds a .mcp/server.json manifest. Browse ManicTimeMcp on NuGet.org, open the MCP Server tab, and copy the generated configuration into your IDE.

Or add manually to .vscode/mcp.json:

{
  "servers": {
    "manictime-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": ["-y", "ManicTimeMcp", "mcp", "serve"]
    }
  }
}

Claude Code

claude mcp add manictime-mcp -- dnx -y ManicTimeMcp mcp serve

Claude Desktop

Add to claude_desktop_config.json (%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "manictime-mcp": {
      "command": "dnx",
      "args": ["-y", "ManicTimeMcp", "mcp", "serve"]
    }
  }
}

OpenAI Codex CLI

codex mcp add manictime-mcp -- dnx -y ManicTimeMcp mcp serve

Generic MCP JSON configuration

{
  "mcpServers": {
    "manictime-mcp": {
      "command": "dnx",
      "args": ["-y", "ManicTimeMcp", "mcp", "serve"],
      "transportType": "stdio"
    }
  }
}

Repl-first surface

Commands and MCP tools

Repl / CLI command MCP tool Description
timeline list timeline_list List available ManicTime timelines
activity list activity_list Raw activities from a specific timeline
activity computer-usage activity_computer-usage Computer on/off/idle/locked activities
activity tags activity_tags User-defined tags and labels
usage applications usage_applications Application usage for a date range
usage documents usage_documents Document usage for a date range
usage websites usage_websites Website usage with hourly or daily breakdown
summary daily summary_daily Structured summary for a single day
summary narrative summary_narrative Structured "what did I do?" narrative
summary period summary_period Multi-day overview with patterns and breakdowns
screenshot list screenshot_list Discover screenshots with metadata only
screenshot get screenshot_get Retrieve a screenshot payload
screenshot crop screenshot_crop Crop a region of interest from a screenshot
screenshot save screenshot_save Save a screenshot within MCP client roots
workspace init workspace_init Initialize soft roots for clients without native roots

Resources

Resource URI Repl / CLI command Description
manictime://resource/config resource config Active ManicTime configuration and resolved data directory
manictime://resource/timelines resource timelines Available timelines as a resource payload
manictime://resource/health resource health Server health and database status
manictime://resource/guide resource guide Repl-first usage guide for AI models and operators
manictime://resource/environment resource environment Device and OS information
manictime://resource/data-range resource data-range Available data date boundaries

Prompts

Repl / CLI prompt MCP prompt Description
prompt daily-review prompt_daily-review Summarize my activities for a date
prompt weekly-review prompt_weekly-review Summarize a multi-day period
prompt screenshot-investigation prompt_screenshot-investigation Investigate what was happening during a date-time window

Workspace and screenshot save workflow

screenshot save writes only inside MCP client roots.

  • If the MCP client supports native roots, screenshot save uses them directly.
  • If the client does not support native roots, call workspace init {path} first to establish soft roots for the session, then call screenshot save.
  • workspace init is a session-scoped MCP helper. It exists mainly for agent workflows, not as a replacement for local filesystem paths in CLI mode.

See docs/modes-and-workspaces.md for end-to-end examples.

Supported scope

  • Supported: ManicTime Windows desktop with local storage (ManicTimeReports.db).
  • Not supported (v1): ManicTime Server deployments, non-Windows clients, server-centric collectors.
  • Transport: stdio only.

Building from source

dotnet restore src/ManicTimeMcp.slnx
dotnet build src/ManicTimeMcp.slnx -warnaserror
dotnet test --solution src/ManicTimeMcp.slnx
dotnet pack src/ManicTimeMcp.slnx -c Release

See getting-started.md for prerequisites and local usage, and AGENTS.md for engineering rules.

Contributing

  1. Read spec/README.md for workstream specifications.
  2. Pick a workstream and implement only that scope.
  3. See AGENTS.md for build commands, quality rules, and constraints.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.2.49 90 4/13/2026
0.2.47 77 4/13/2026
0.2.44 109 3/27/2026
0.2.40 99 3/25/2026
0.2.39 95 3/25/2026
0.2.34 94 3/24/2026
0.2.15 143 2/17/2026
0.2.14 126 2/17/2026
0.2.6 122 2/17/2026