WorkTrace MCP
Allows the MCP server to analyze screenshots via vision and OCR, and generate embeddings and summaries using OpenAI's API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WorkTrace MCPWhat was I working on before lunch?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WorkTrace MCP
WorkTrace is a local MCP server that helps an AI agent recover missing historical developer context from captured work evidence.
It records manual or periodic screenshots, queues them locally, derives a work-oriented summary and OCR through OpenAI, embeds the summary, stores everything in SQLite/FTS5, and returns grounded answers with inspectable event citations.
Desktop capture
→ local pending image + sidecar
→ OpenAI vision summary/OCR
→ summary embedding
→ local SQLite + FTS5
→ WorkTrace MCP (`ask_context`, `get_event`)
→ host agentAlpha / proof of concept. WorkTrace helps an agent orient itself to prior work. It does not establish current repository state, command success, causality, or developer intent. Inspect live files, Git, processes, and configuration before acting.
Privacy first
This public repository intentionally contains no screenshots, recordings, database, extracted OCR, embeddings, or developer session data.
Runtime evidence is ignored by Git, including:
data/and SQLite filesdemo_fixture/,captures/, andartifacts/common image, audio, and video formats
.envand private-key formats
Important limitation: ingestion sends source screenshot pixels to OpenAI. Prompt-level output redaction does not redact the image before upload. Pause capture, exclude sensitive windows, or add local image redaction before using WorkTrace with private material.
Related MCP server: local-agent-context
Requirements
Python 3.11+
An OpenAI API key
Windows for the current Tkinter desktop-recorder demo
An MCP host such as Hermes Agent
Install
git clone https://github.com/vblearnstowritecode/worktrace-mcp.git
cd worktrace-mcp
python -m venv .venvActivate the environment:
# Windows PowerShell
.venv\Scripts\Activate.ps1
# Git Bash
source .venv/Scripts/activateInstall:
python -m pip install -e .
copy .env.example .envSet open_ai_key in .env. Never commit that file.
Record evidence
Launch the desktop recorder:
worktrace-recorderOr double-click Run WorkTrace Recorder.cmd on Windows.
The current defaults are:
capture every 5 minutes
ingest every 30 minutes
local capture folder:
~/.worktrace/captures/managed artifacts:
~/.worktrace/artifacts/database:
~/.worktrace/worktrace.db
Use Capture Now for an ad-hoc screenshot, optionally add a note, then use Ingest Pending to analyze and index it immediately. Scheduled capture and scheduled ingestion are independent.
Run the MCP server
worktrace-mcpFor stdio clients, configure:
{
"command": "C:/absolute/path/to/worktrace-mcp/.venv/Scripts/python.exe",
"args": ["-m", "worktrace.mcp_server"],
"cwd": "C:/absolute/path/to/worktrace-mcp"
}With Hermes, run hermes mcp add worktrace and provide the same executable, module arguments, and working directory when prompted. Start a fresh Hermes session after registration so it discovers the tools.
MCP tools
ask_context
Answers one comprehensive historical-context question using hybrid retrieval and grounded synthesis. The server instructs host agents to call it once per user request rather than iterating unnecessarily.
Inputs:
questionsession_id(default:default)max_evidence(1–8)
get_event
Inspects one cited event, including provenance, capture mode, managed artifact path, and SHA-256 integrity status. Host agents are instructed to use it only when provenance or artifact integrity materially matters.
Independent WorkTrace retrieval and live file/Git/process/configuration checks may run in parallel. get_event must wait for citations returned by ask_context.
Architecture boundaries
The MCP host launches WorkTrace as a local stdio subprocess.
SQLite, retrieval code, pending sidecars, and managed artifacts stay local.
Vision, embedding, query-planning, and synthesis requests use OpenAI.
WorkTrace owns its constrained planner and grounded synthesis calls; the host agent invokes tools but does not perform WorkTrace retrieval itself.
Screenshot/OCR text is treated as untrusted data and never as executable instructions.
Test
python -m unittest discover -s tests -p "test_*.py" -vThe tests use temporary files and deterministic doubles where possible. Live OpenAI calls are not required by the unit suite.
Status
The MVP includes:
manual and periodic desktop capture
durable local pending sidecars
serialized vision/embedding ingestion
SQLite storage and synchronized FTS5
semantic + keyword + time-filtered retrieval
grounded synthesis with citation validation
stdio MCP tools
explicit provenance and artifact-integrity checks
Deferred production work includes local image redaction, retention controls, crash recovery, multi-monitor support, automatic session detection, and a measured sqlite-vec evaluation.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that enables AI agents like Claude to capture screen screenshots on demand and maintain a sliding window of recent frames for multimodal Q&A context.61MIT
- Alicense-qualityDmaintenanceA local MCP server that gives AI coding agents persistent memory and context across sessions.7MIT
- AlicenseAqualityBmaintenanceAn MCP server that indexes reference repositories and provides tools for AI coding agents to retrieve lossless code context, enabling reasoning over codebases larger than the agent's context window.82Apache 2.0
- FlicenseAqualityCmaintenanceA local-first, privacy-first MCP server that passively indexes personal digital activity (screenshots, clipboard, notes, downloads, links) into a local database, enabling LLMs like Claude to access your context without cloud storage.4
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Cloud-hosted MCP server for durable AI memory
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vblearnstowritecode/worktrace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server