DevOps Dashboard MCP Server
Enables AI assistants to monitor and manage Linux infrastructure including services, logs, processes, disk, memory, ports, cron, nginx, Docker, and system health checks via the Model Context Protocol.
README
DevOps Dashboard MCP Server
Monitor and manage Linux infrastructure through your AI assistant. Built on the Model Context Protocol (MCP), this server gives Claude (or any MCP-compatible client) full visibility into your systems — services, logs, resources, containers, and more.
Tools
| Tool | Description |
|---|---|
service_status |
Check systemd service status (active, failed, enabled state, PID, memory) |
service_logs |
Fetch journalctl logs with time range, priority, and grep filtering |
process_list |
List processes sorted by CPU/memory with optional name filtering |
disk_usage |
Disk space and inode usage by mount point |
memory_info |
RAM and swap usage, with optional /proc/meminfo details |
port_scan |
List listening TCP/UDP ports with associated processes |
cron_list |
List cron jobs for any/all users plus system cron files |
nginx_config |
Read, validate, and inspect nginx configuration and sites |
docker_status |
Container, image, volume, network, and resource usage overview |
system_health |
Aggregate health check with thresholds and warnings |
Quick Start
Install from npm
npm install -g @devops-dashboard/mcp-server
Or run directly with npx
npx @devops-dashboard/mcp-server
Configure in Claude Code
Add to your Claude Code MCP settings (~/.claude/settings.json or project .mcp.json):
{
"mcpServers": {
"devops-dashboard": {
"command": "npx",
"args": ["@devops-dashboard/mcp-server"]
}
}
}
Configure in Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"devops-dashboard": {
"command": "npx",
"args": ["@devops-dashboard/mcp-server"]
}
}
}
Development
git clone https://github.com/turlockmike/devops-dashboard-mcp.git
cd devops-dashboard-mcp
npm install
npm run dev # Start with tsx (hot reload)
npm run build # Compile TypeScript
npm test # Run test suite
Tool Details
service_status
Check whether a systemd service is running, its enabled/disabled state, PID, and recent status output.
Parameters:
service (string, required) — Service name (e.g. "nginx", "sshd")
user (boolean, optional) — Query user-level services (--user)
service_logs
Fetch recent journal logs with powerful filtering. Supports time ranges, priority levels, and text search.
Parameters:
service (string, required) — Service name
lines (number, 1-1000, default 50) — Number of log lines
since (string, optional) — Time filter ("1h ago", "today", "2024-01-15")
priority (string, optional) — Minimum level (emerg/alert/crit/err/warning/notice/info/debug)
grep (string, optional) — Filter by pattern
user (boolean, optional) — Query user-level service logs
process_list
List running processes with resource usage. Sort by CPU, memory, PID, or elapsed time.
Parameters:
sort (string, default "cpu") — Sort field: cpu, mem, pid, time
limit (number, 1-200, default 20) — Number of processes to show
filter (string, optional) — Filter by process name (case-insensitive)
disk_usage
Show disk space and inode usage. Excludes virtual filesystems for clean output.
Parameters:
path (string, optional) — Specific mount point or path
human (boolean, default true) — Human-readable sizes
memory_info
RAM, swap, and system load. Detailed mode adds buffer/cache breakdown from /proc/meminfo.
Parameters:
detailed (boolean, default false) — Include /proc/meminfo details
port_scan
List all listening network ports with their owning processes. Uses ss with netstat fallback.
Parameters:
port (number, 1-65535, optional) — Check a specific port
protocol (string, default "all") — Filter: tcp, udp, all
cron_list
Enumerate cron jobs across users and system directories.
Parameters:
user (string, optional) — Specific user to query
all (boolean, default false) — List jobs for ALL users
include_system (boolean, default true) — Include /etc/crontab and /etc/cron.d/
nginx_config
Read and validate nginx configuration.
Parameters:
action (string, required) — show, test, list_sites, or full_config
site (string, optional) — Specific site config to read (with "show" action)
docker_status
Docker environment overview. Gracefully handles missing Docker or stopped daemon.
Parameters:
action (string, default "overview") — overview, containers, images, stats, networks, volumes
filter (string, optional) — Filter by container/image name
system_health
Aggregate health check that inspects memory, disk, load, failed services, and network listeners. Returns HEALTHY or ISSUES DETECTED with specific warnings.
Parameters:
verbose (boolean, default false) — Include full details per subsystem
Requirements
- Node.js >= 18
- Linux (uses systemd, journalctl, ss, df, free, ps, etc.)
- Optional: Docker, nginx (tools degrade gracefully if not present)
Architecture
src/
├── index.ts # MCP server entry point, tool registration
├── tools/
│ ├── service.ts # systemd service status + logs
│ ├── system.ts # processes, disk, memory, ports, health
│ ├── cron.ts # cron job listing
│ ├── nginx.ts # nginx config management
│ └── docker.ts # Docker container/image tools
└── utils/
└── exec.ts # Safe command execution (execFile, no shell)
All system commands run through safeExec() which uses execFile (not exec) to prevent shell injection. Commands have configurable timeouts and output size limits.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。