Oleafly is a live collaborative LaTeX, Typst and Markdown editor for research that offers a local MCP server and an oleafly mcp stdio command so outside AI clients can use its project tools.

FocusLog desktop activity MCP server
A background FastMCP server that logs desktop activity and returns an anonymized compressed timeline of your work through the get_activity_log tool.
WHAT IT DOES
- •Periodically records the title of the currently focused window and tracks Actions Per Minute from keyboard and mouse activity.
- •Groups consecutive activities into a compressed timeline and returns it as a string when the get_activity_log tool is called.
- •Applies two-stage anonymization: a hard-coded keyword filter plus LLM anonymization via a local Ollama model to remove PII.
- •Sanitizes and shortens excessively long window titles before saving them with APM values to an SQLite database.
BEST FOR
- •Feeding a personal analytics or AI assistant with a privacy-filtered view of desktop work activity.
- •Linux X11 desktop users who want continuous background activity tracking via a systemd user service.
ABOUT FOCUSLOG
FocusLog desktop activity MCP server is cataloged as an MCP server attributed to dragonswho. A background FastMCP server that logs desktop activity and returns an anonymized compressed timeline of your work through the get_activity_log tool. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability inspector
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
Tools (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Resources (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Prompts (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for FocusLog desktop activity MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
What platforms does FocusLog support?
It is designed specifically for Linux desktop environments running on the X11 display server and will not work on Windows, macOS, or native Wayland sessions.
How does FocusLog prevent sensitive information from appearing in the timeline?
It uses a two-stage anonymization: a hard-coded filter removing user-defined sensitive keywords, followed by a local Ollama LLM that removes other PII from unique window titles.
Upstream README
README.md · b25911af0ef7 · Fetched 2026-11-13 11:30:19 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
FocusLog: Desktop Activity 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.
This server uses FastMCP for communication, Ollama for AI-powered anonymization, and standard Linux tools for activity tracking.
Features
- Activity Logging: Periodically records the title of the currently focused window.
- APM Tracking: Calculates your Actions Per Minute (APM) based on keyboard and mouse activity.
- Timeline Aggregation: Groups consecutive activities into a compressed, easy-to-read timeline.
- Two-Stage Anonymization:
- Hard-coded Filter: Guarantees removal of user-defined sensitive keywords.
- LLM Anonymization: Uses a local Ollama model to intelligently remove any other PII.
- Title Sanitization: Cleans up and shortens excessively long window titles.
- Reliable & Configurable: Features log rotation, graceful shutdown, and all settings are managed in a separate
config.pyfile. - Systemd Service: Can be run as a persistent background service for maximum reliability.
Requirements
System Dependencies
[!IMPORTANT] Compatibility Note: This server is designed specifically for Linux desktop environments running on the X11 display server. It relies on tools that are part of the X11 ecosystem and will not work on Windows, macOS, or native Wayland sessions.
You must have the following command-line tools and libraries installed:
xdotool: For getting the active window title.xprintidle: For checking user idle time.ollama: For running the local LLM.- PyGObject: For D-Bus communication (used to detect screen lock).
On Debian/Ubuntu/Linux Mint, you can install them all with:
sudo apt update
sudo apt install xdotool xprintidle python3-gi python3-gi-cairo gir1.2-gtk-3.0
For Ollama, follow the official installation instructions at ollama.com. After installing, make sure you have pulled a model:
ollama pull gemma3
Python Dependencies
The project requires Python 3.8+ and uses a virtual environment to manage its packages.
Installation & Setup
-
Clone the repository:
git clone https://github.com/your-username/focuslog.git cd focuslog -
Create a virtual environment: We need to create a virtual environment that has access to the system's
PyGObjectlibrary.python3 -m venv venv --system-site-packages -
Activate the environment and install packages:
source venv/bin/activate pip install -r requirements.txt deactivate(You can leave the environment by typing
deactivate). -
Create your configuration file:
cp config.py.example config.py -
Edit your configuration: Open
config.pyin a text editor.- Crucially, fill in the
FORBIDDEN_KEYWORDSlist with any personal data you want to ensure is always removed. - Adjust other settings like
OLLAMA_MODELorMCP_PORTif you wish.
- Crucially, fill in the
Usage
Manual Start (for testing)
To run the server manually for testing, first activate the virtual environment:
source venv/bin/activate
python focuslog.py
The server will start and show logs in the console. Press Ctrl+C to stop it.
Running as a Service (Recommended)
For continuous, reliable background operation, it's best to run FocusLog as a systemd user service. This will automatically start the server when you log in and restart it if it ever crashes.
-
Prepare the service file:
cp focuslog.service.example focuslog.service -
Edit
focuslog.service: Open the file and replace the placeholder paths with your actual ones.WorkingDirectory=/home/your_username/path/to/focuslog-> e.g.,WorkingDirectory=/home/dw/projects/focuslogExecStart=...-> Update the path tovenv/bin/pythonandfocuslog.pyas well.- Important: Do NOT add
User=orGroup=lines.systemd --userhandles this automatically.
-
Install and enable the service:
mkdir -p ~/.config/systemd/user cp focuslog.service ~/.config/systemd/user/ systemctl --user daemon-reload systemctl --user enable --now focuslog.serviceThe
--nowflag both enables it for future logins and starts it immediately. -
Manage the service:
- Check status:
systemctl --user status focuslog.service - View logs:
journalctl --user -u focuslog.service -f(-fto follow live) - Stop:
systemctl --user stop focuslog.service - Start:
systemctl --user start focuslog.service
- Check status:
How It Works
The server runs two main background threads:
- APM Sensor: Checks for user input every half-second to update an activity "tick" counter.
- Logger: Every 10 seconds, it:
- Gets the current active window title.
- Sanitizes the title (shortens it and applies custom rules).
- Calculates the current APM based on ticks in the last minute.
- Saves the sanitized title and APM to an SQLite database.
When the get_activity_log tool is called via an MCP client, it:
- Fetches the raw data from the database.
- Performs two-stage anonymization on all unique window titles, caching the results for performance.
- Aggregates the data into a clean timeline.
- Returns the timeline as a string.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for FocusLog desktop activity MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/focuslog)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Downloads and pulls
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Related productivity work MCP Servers
Alternative and complementary servers in the same category
Buddy is an Android app that offers its phone tools through a local MCP server to Claude Code, Codex, OpenCode, Antigravity, and Grok sessions.

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

