MCP Terminal Monitor
Provides tools for listing Docker containers, checking port conflicts, tailing system and container logs, monitoring disk usage, and CPU/RAM usage.
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., "@MCP Terminal Monitor show me disk usage on root"
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.
🔧 MCP Terminal Monitor

Production-ready Model Context Protocol (MCP) Server for system monitoring. Provides AI agents with real-time access to Docker containers, system resources, ports, and logs.
🚀 Quick Start
npx mcp-terminal-monitorOr install globally:
npm install -g mcp-terminal-monitor
mcp-terminal-monitorRelated MCP server: docker-mcp-server
📋 Available Tools
Tool | Description |
| List Docker containers with status, ports, and health |
| Check if a specific port is in use on the system |
| Retrieve recent system or Docker container logs |
| Get disk usage statistics for filesystems |
| Monitor CPU and RAM usage with configurable sampling |
🔧 Features
🐳 Docker Integration - List containers, fetch logs, monitor health
🔌 Port Monitoring - Detect port conflicts before deployment
📊 System Metrics - Real-time CPU, RAM, and disk usage
📝 Log Access - System and container log streaming
🔒 Read-Only Safety - All operations are non-destructive
⚡ Low Latency - Optimized system calls for fast responses
🛡️ Strict Validation - Zod schemas ensure safe argument parsing
🌐 Cross-Platform - Works on Linux, macOS, and Windows
🏗 Architecture
graph TD
A[AI Client] -->|MCP Protocol| B[MCP Terminal Monitor Server]
B -->|Docker API| C[Docker Daemon]
B -->|System Calls| D[OS Kernel]
B -->|Network Stats| E[Netstat/Lsof]
B -->|Process Info| F[SystemInformation]
C --> G[Containers]
D --> H[CPU/RAM/Disk]
E --> I[Port Conflicts]
F --> J[System Metrics]📖 Usage Examples
List Docker Containers
{
"name": "list_docker_containers",
"arguments": {
"all": true,
"limit": 10
}
}Check Port Conflicts
{
"name": "check_port_conflicts",
"arguments": {
"port": 3000,
"host": "0.0.0.0"
}
}Tail System Logs
{
"name": "tail_system_logs",
"arguments": {
"service": "nginx",
"lines": 50,
"follow": false
}
}Get Disk Usage
{
"name": "get_disk_usage",
"arguments": {
"path": "/"
}
}Monitor CPU & RAM
{
"name": "monitor_cpu_ram",
"arguments": {
"interval": 1000,
"samples": 3
}
}🔌 MCP Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"terminal-monitor": {
"command": "npx",
"args": ["mcp-terminal-monitor"]
}
}
}🛠 Development
# Clone repository
git clone https://github.com/yourusername/mcp-terminal-monitor.git
cd mcp-terminal-monitor
# Install dependencies
npm install
# Run in development mode
npm start
# Build for production
npm run build📦 Requirements
Node.js >= 18.0.0
Docker daemon (for Docker-related tools)
Root/sudo access may be required for some system calls
📄 License
MIT © Your Name
Built with @modelcontextprotocol/sdk
Available Tools
5 toolscheck_port_conflictsC
Check if a specific port is in use on the system. Helps identify port conflicts.
Inputs: port (required), host.
get_disk_usageB
Get disk usage statistics for filesystems. Shows size, used, available space.
Inputs: path.
list_docker_containersA
List Docker containers with their status, ports, and health. Read-only operation.
Inputs: all, limit.
monitor_cpu_ramB
Monitor CPU and RAM usage with configurable sampling. Returns current load and memory stats.
Inputs: samples, interval.
tail_system_logsB
Retrieve recent system or Docker container logs. Supports filtering by service name.
Inputs: lines, follow, service.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct system resource or aspect: ports, disk usage, Docker containers, CPU/RAM, and logs. No two tools have overlapping purposes, making it clear which to use for a given monitoring task.
All tool names follow the consistent 'verb_noun' pattern using lowercase with underscores, e.g., 'check_port_conflicts', 'get_disk_usage'. The verbs are appropriate and uniform.
With 5 tools, the server provides a focused yet comprehensive set for system monitoring. It covers essential areas (CPU, RAM, disk, ports, Docker, logs) without being overwhelming or too sparse.
The tool set covers core monitoring tasks, but lacks network usage and process monitoring. These are minor gaps for a general monitoring server; agents can still accomplish many common tasks.
Related MCP Connectors
Monitors TLS/SSL certificate expiry, DNS resolution, and TCP port status for AI agents.
AI agent monitoring: alerts when your agents fail, stall or need you
Agent observability via OpenTelemetry: drift, loop and hijack alerts, e.g. after a prompt injection.
All-in-one monitoring for uptime, servers, incidents & status pages. Manage it all from AI chat.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceGives AI agents real-time access to system metrics, process management, and container orchestration.-
- AlicenseBqualityCmaintenanceEnables AI agents to manage Docker containers, images, Compose stacks, health checks, and logs through a unified MCP interface, ensuring containers stay running with self-healing capabilities.31143 npm4MIT
- AlicenseAqualityDmaintenanceEnables Claude to monitor CPU, memory, disk, processes, network connections, Docker containers, and system logs for system diagnostics and troubleshooting.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage a homelab by providing tools for Docker, Ollama, and system monitoring through the Model Context Protocol.MIT