Uses SQLite database for persistent storage of process metadata and history, enabling queryable tracking of all monitored processes across restarts
track-it: MCP Process Wrapper
A lightweight process tracker that enables Claude to monitor and inspect running processes through the Model Context Protocol (MCP).
Features
π Simple CLI wrapper - Just prepend
track-itto any commandπ Environment variable support - Pass env vars to tracked processes
π Separate stdout/stderr logs - Independent capture of output streams
πΎ Persistent SQLite storage - Survives restarts, queryable history
π Read-only MCP interface - Claude can observe but not execute
π Real-time monitoring - Tail logs of running processes
π‘οΈ Signal handling - Clean shutdown with Ctrl+C
Quick Start
Installation
Clone the repository:
Install MCP dependency:
Run the installer:
This will:
Check Python installation
Test the track-it wrapper
Configure Claude's MCP settings
Run a test process to verify everything works
Basic Usage
Environment Variable Support
The new syntax supports passing environment variables to tracked processes:
Use -- to separate environment variables from the command when needed.
Claude Integration
Once installed, Claude can monitor your processes using these phrases:
"List all my tracked processes"
"Show me the logs for [process-id]"
"Check if my server is still running"
"Find any errors in the process logs"
What Claude Sees
When you run:
Claude will see:
Process ID:
myserverStatus:
runningorcompletedFull command with arguments
Environment variables that were set
Complete stdout/stderr logs
Exit code when completed
File Structure
How It Works
track-it wrapper captures your process output
SQLite database stores process metadata
Log files preserve stdout/stderr streams
MCP server provides read-only access to Claude
Advanced Configuration
Custom Log Directory
Set the environment variable:
Manual MCP Configuration
If you need to manually configure Claude's MCP settings, add to ~/.claude/mcp.json:
Troubleshooting
Permission denied when running track-it:
Claude can't see processes:
Restart Claude Code after installation
Verify MCP server is listed: Ask Claude to run
/mcpcommand
Process gets stuck when hitting Ctrl+C:
Update to the latest version (this bug was fixed)
Logs not appearing:
Check write permissions in the log directory
Verify disk space is available
Recent Improvements
β Environment variable support - Pass env vars to tracked processes
β Absolute path storage - Reliable log file access across directories
β Fixed signal handling - Clean shutdown without infinite loops
β Better path resolution - MCP server correctly finds logs from any working directory
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
License
MIT License - See LICENSE file for details.
Author
Created as a lightweight alternative to complex process managers, specifically designed for Claude MCP integration.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables Claude to monitor and inspect running processes through a lightweight wrapper that captures stdout/stderr logs and stores process metadata in SQLite. Users can track any command execution and query process status, logs, and history through natural language.