windows-admin-mcp

windows-admin-mcp

An MCP server that enables AI assistants to manage, monitor, and diagnose Windows systems through 42 tools across 8 modules, including services, event viewer, task scheduler, processes, network, diagnostics, observability, and safety features.

Category
访问服务器

README

windows-admin-mcp

<p align="center"> <img src="assets/hero-en.jpg" alt="42 Tools for Windows Administration" width="700"> </p>

AI SRE Agent for Windows. An MCP server that gives AI assistants (Claude Desktop, Cursor, Windsurf, Claude Code) the ability to manage, monitor, and diagnose Windows systems.

Not just a PowerShell wrapper: includes multi-step diagnostics, trend analysis, safety controls, and audit logging.

42 tools across 8 modules + 3 MCP resources.

Quick Start

Interactive setup — detects your MCP clients and configures them automatically:

npx windows-admin-mcp --setup

Or configure manually — add to your client's config:

Claude Desktop

Add to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "windows-admin": {
      "command": "npx",
      "args": ["-y", "windows-admin-mcp"]
    }
  }
}

Cursor / VS Code / Windsurf

Add to your MCP config (.cursor/mcp.json, .vscode/mcp.json, etc.):

{
  "servers": {
    "windows-admin": {
      "command": "npx",
      "args": ["-y", "windows-admin-mcp"]
    }
  }
}

Claude Code

claude mcp add windows-admin -- npx -y windows-admin-mcp

Modules

Services (6 tools)

Tool Description
services_list List services with optional status/name filter
services_get Get detailed info including dependencies
services_start Start a service
services_stop Stop a service (confirmation required)
services_restart Restart a service (confirmation required)
services_set_startup Change startup type (Automatic, Manual, Disabled)

Event Viewer (5 tools)

Tool Description
events_query Query events by log, level, source, time range, keyword
events_logs_list List available event logs with record counts
events_sources_list List event sources for a specific log
events_explain Explain Event ID: description, causes, fixes (built-in KB)
events_summary Summary of recent events grouped by level

Task Scheduler (8 tools)

Tool Description
scheduler_list List tasks with optional path/state filter
scheduler_get Get task details: triggers, actions, last run info
scheduler_enable Enable a task
scheduler_disable Disable a task
scheduler_run Run a task immediately
scheduler_create Create a new scheduled task
scheduler_delete Delete a task (confirmation required)
scheduler_history Get task execution history

Processes (4 tools)

Tool Description
processes_list List processes sorted by CPU/Memory/Name
processes_get Detailed process info (CPU, memory, path, threads)
processes_kill Kill a process by name or PID (confirmation + blocklist)
processes_ports Which process holds which TCP port

Network (4 tools)

Tool Description
network_ping ICMP ping to a host
network_check_port Check if a TCP port is open on a remote host
network_dns DNS lookup (A, AAAA, MX, CNAME, NS, TXT, etc.)
network_connections List active TCP connections with process info

Diagnostics (4 tools)

Tool Description
diagnose_service Multi-step diagnosis: status, port, errors, deps, hypothesis
system_health Full health overview: CPU, RAM, disk, top processes, errors
services_bulk Bulk start/stop/restart services by pattern (with limits)
scheduler_bulk Bulk enable/disable tasks by pattern (with limits)

Observability (5 tools)

Tool Description
events_watch Poll for new Critical/Error events (delta only, watermark)
services_watch Detect auto-start services that are stopped
system_changes What changed in last N hours (new services, tasks, state)
error_trends Error rate trend analysis (growing/shrinking/stable)
service_restarts Service restart frequency, crash detection

Safety & Audit (6 tools)

Tool Description
config_get View current safety/audit configuration
config_reload Reload config from file
confirm_action Confirm a pending destructive action
pending_actions List pending confirmations
cancel_action Cancel a pending action
audit_query Query the audit log

MCP Resources

Resource URI Description
System Info system://info OS, CPU, RAM, uptime, hostname
System Health system://health Live health status with overall rating
Services Summary system://services Service counts by status and startup type

Safety Features

Destructive operations (kill, stop, restart, delete, bulk) are protected:

  • Confirmation flow: Returns a preview + confirmationId. Call confirm_action to proceed.
  • Blocklist: Critical processes (lsass, csrss, svchost, winlogon, etc.) are blocked by default.
  • Bulk limits: Maximum 20 operations per bulk call (configurable).
  • Audit log: All operations logged to JSONL file with timestamps.

Disable confirmation for trusted environments:

{
  "safety": {
    "requireConfirmation": false
  }
}

Configuration

Create a config.json next to the installed package, or set WINDOWS_ADMIN_MCP_CONFIG env var:

{
  "modules": {
    "services": true,
    "events": true,
    "scheduler": true,
    "processes": true,
    "network": true,
    "diagnostics": true,
    "safety": true,
    "observability": true
  },
  "safety": {
    "requireConfirmation": true,
    "confirmationTimeoutMs": 300000,
    "blocklist": ["lsass", "csrss", "svchost", "winlogon", "smss"],
    "allowlist": []
  },
  "limits": {
    "maxProcessesToKill": 5,
    "maxEventsToReturn": 500,
    "maxBulkOperations": 20
  },
  "audit": {
    "enabled": true,
    "path": "./windows-admin-mcp-audit.jsonl",
    "maxSizeMB": 50
  }
}

Usage Examples

"Why is SQL Server not working?"

diagnose_service(name: "MSSQLSERVER", port: 1433)

Runs 4-step chain: service status, port check, recent errors, dependencies. Returns hypothesis.

"Is the system healthy?"

system_health()

Single call: CPU, RAM, disk, top processes, recent errors, stopped auto-start services.

"Are errors increasing?"

error_trends(logName: "System", hours: 24)

Hourly breakdown with trend (growing/shrinking/stable), top sources, top event IDs.

"What changed in the last hour?"

system_changes(hours: 1)

New services installed, service state changes, new scheduled tasks.

"Kill the process on port 3000"

processes_ports(port: 3000)     # Find the process
processes_kill(pid: 12345)      # Returns confirmationId
confirm_action(confirmationId: "...")  # Execute

Requirements

  • Windows 10/11 or Windows Server 2016+
  • Node.js 18+
  • PowerShell 5.1+ (included with Windows)
  • Administrator privileges (for service control and some event logs)

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT


windows-admin-mcp (RU)

<p align="center"> <img src="assets/hero-ru.jpg" alt="42 инструмента для Windows-администрирования" width="700"> </p>

AI SRE агент для Windows. MCP-сервер, позволяющий AI-ассистентам управлять, мониторить и диагностировать Windows.

Не просто обертка над PowerShell: многошаговая диагностика, анализ трендов, система безопасности, аудит.

42 инструмента, 8 модулей, 3 MCP-ресурса.

Быстрый старт

Автоматическая настройка — определяет установленные MCP-клиенты и конфигурирует их:

npx windows-admin-mcp --setup

Или вручную — добавьте в конфиг Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "windows-admin": {
      "command": "npx",
      "args": ["-y", "windows-admin-mcp"]
    }
  }
}

Модули

  • Services (6): управление службами Windows
  • Event Viewer (5): запросы, объяснение Event ID, сводки
  • Task Scheduler (8): полное управление планировщиком
  • Processes (4): список, детали, kill, порты
  • Network (4): ping, порты, DNS, соединения
  • Diagnostics (4): diagnose_service, system_health, bulk-операции
  • Observability (5): watch mode, обнаружение изменений, тренды ошибок
  • Safety & Audit (6): конфигурация, подтверждение, аудит

Безопасность

  • Деструктивные операции требуют подтверждения через confirm_action
  • Критические процессы (lsass, csrss, svchost) в блок-листе
  • Лимит на массовые операции (20 по умолчанию)
  • Все действия логируются в JSONL-файл

Лицензия

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选