MCP.so
登录

Focuslog MCP Server

@DragonsWho

基本信息

分类

数据与分析

传输方式

stdio

作者

DragonsWho

提交者

drags who

关于 Focuslog MCP Server

A background server that logs your desktop activity, calculates your Actions Per Minute (APM), and provides a clean, anonymized timeline of your work on demand. It's designed to be a data source for personal analytics or AI assistants.

#activity-tracking#apm#logging#anonymization#ollama#linux#x11#self-hosted#personal-analytics

Focuslog MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "focuslog": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/DragonsWho/FocusLog"
      ],
      "env": {}
    }
  }
}

Focuslog MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Focuslog?

Focuslog is a background server for Linux (X11) that logs desktop activity, calculates Actions Per Minute (APM), and provides an anonymized timeline of work on demand. It is designed for personal analytics or AI assistants.

How to use Focuslog?

Install system dependencies (xdotool, xprintidle, pygobject, ollama), then clone the repository, create a virtual environment with --system-site-packages, install Python packages from requirements.txt, and copy config.py.example to config.py to set forbidden keywords and other options. Start manually with python focuslog.py in the venv, or deploy as a systemd --user service for continuous background operation.

Key features of Focuslog

  • Periodically records the title of the currently focused window.
  • Tracks keyboard and mouse activity to compute Actions Per Minute.
  • Groups consecutive activities into a compressed timeline.
  • Two‑stage anonymization: hard-coded keyword filter plus local Ollama LLM.
  • Sanitizes excessively long window titles.
  • Configurable settings in a separate config.py file.
  • Can run as a persistent systemd background service.

Use cases of Focuslog

  • Personal productivity analytics by reviewing anonymized desktop activity timelines.
  • Providing a work‑session summary to an AI assistant for time logging or task analysis.
  • Monitoring focus patterns over hours or days without exposing sensitive window titles.

常见问题

1

What operating systems does Focuslog support?

Focuslog is designed specifically for Linux desktop environments using the X11 display server. It does not work on Windows, macOS, or native Wayland sessions.

2

What are the system dependencies?

You must have `xdotool`, `xprintidle`, `ollama` (with a pulled model, e.g., `gemma3`), and PyGObject (`python3-gi` and related packages) installed.

3

How does anonymization work?

Focuslog uses two stages: a hard-coded list of forbidden keywords (set in `config.py`) is removed first, then a local Ollama LLM intelligently removes any other personally identifiable information.

4

Where is the activity data stored?

Data is saved to a local SQLite database (no external service). The raw records are anonymized on demand when the `get_activity_log` tool is called.

5

Can Focuslog run automatically on login?

Yes. It can be installed as a `systemd --user` service that starts on login and restarts if it crashes. Setup instructions are provided in the README.

评论

数据与分析 分类下的更多 MCP 服务器