Track-It Process Monitor
Uses SQLite database for persistent storage of process metadata and history, enabling queryable tracking of all monitored processes across restarts
Click on "Deploy 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., "@Track-It Process Monitorshow me the logs for my webserver process"
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.
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
Related MCP server: Console MCP Server
Quick Start
Installation
Clone the repository:
git clone https://github.com/scottmsilver/mcp-track-it.git
cd mcp-track-itInstall MCP dependency:
pip install mcpRun the installer:
./install-and-test.shThis will:
Check Python installation
Test the track-it wrapper
Configure Claude's MCP settings
Run a test process to verify everything works
Basic Usage
# Simple command
./track-it echo "Hello World"
# With custom ID
./track-it --id myapp python server.py
# With environment variables
./track-it PORT=8080 DEBUG=true -- python app.py
# Multiple env vars and options
./track-it --id webserver PORT=3000 HOST=0.0.0.0 -- npm startEnvironment Variable Support
The new syntax supports passing environment variables to tracked processes:
# Format: track-it [options] [ENV=value ...] [--] command [args]
# Examples:
./track-it DATABASE_URL=postgres://localhost/mydb -- python manage.py runserver
./track-it --id worker REDIS_HOST=localhost WORKERS=4 -- python worker.pyUse -- 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:
./track-it --id myserver PORT=8080 -- python server.pyClaude will see:
Process ID:
myserverStatus:
runningorcompletedFull command with arguments
Environment variables that were set
Complete stdout/stderr logs
Exit code when completed
File Structure
mcp-track-it/
āāā track-it # Main CLI wrapper
āāā mcp_server.py # MCP server for Claude
āāā process_registry.py # SQLite database interface
āāā install-and-test.sh # Main installer
āāā process_logs/ # Log files (auto-created)
ā āāā [process-id].log # Combined stdout+stderr
ā āāā [process-id].stdout.log
ā āāā [process-id].stderr.log
āāā process_registry.db # SQLite database (auto-created)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
User runs: track-it python app.py
ā
Creates 3 log files + DB entry
ā
Process runs with real-time output
ā
Claude can query via MCP serverAdvanced Configuration
Custom Log Directory
Set the environment variable:
export MCP_PROCESS_WRAPPER_LOG_DIR=/path/to/logs
./track-it python app.pyManual MCP Configuration
If you need to manually configure Claude's MCP settings, add to ~/.claude/mcp.json:
{
"mcpServers": {
"process-wrapper": {
"command": "python3",
"args": ["/path/to/mcp-track-it/mcp_server.py"],
"env": {
"MCP_PROCESS_WRAPPER_LOG_DIR": "/path/to/logs",
"MCP_PROCESS_REGISTRY_DB": "/path/to/process_registry.db"
}
}
}
}Troubleshooting
Permission denied when running track-it:
chmod +x track-itClaude 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 deployed
Maintenance
Related MCP Connectors
Monitoring + status pages set up by talking to Claude. Auto-detects 30+ SDKs and your URLs.
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
- sentinelOAuthio.rootstuff
Uptime, SSL, DNS and domain monitoring you can talk to from Claude or any MCP client.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides system monitoring and management capabilities for Claude CLI, allowing users to view system information, track resource usage, and manage processes through natural language commands.-
- FlicenseNot gradedqualityNot gradedmaintenanceCaptures and stores console output from any process in SQLite with full-text search, enabling AI assistants to search logs, monitor errors, and analyze multi-process activity through natural language queries.-
- AlicenseNot gradedqualityDmaintenanceMonitors development commands and exposes terminal output to Claude in real-time, allowing AI assistants to see errors, logs, and stack traces without copy-pasting.8 npm3MIT
- AlicenseBqualityDmaintenanceEnables AI agents to launch, monitor, and manage long-running terminal processes with real-time log capture and search functionality. It features automatic log rotation and graceful process termination to ensure system stability.57 npm5MIT