Skip to main content
Glama
TechGOELogy

Windows Server MCP

by TechGOELogy

Windows Server MCP

Windows Server MCP 是一个用于只读 Windows 可观测性的本地 Model Context Protocol 服务器。它通过 FastMCP 公开 CPU、内存、存储、服务和健康工具。

当前版本:1.0.0。

工具

工具

用途

health_check

服务器健康、Python 运行时和平台详细信息。

hello_world

标准化兼容性连接检查。

cpu_info

CPU 数量、利用率、频率、负载、统计信息和时间。

memory_info

虚拟内存和交换空间详细信息,使用基于字节的值。

storage_info

磁盘分区、字节使用总量和磁盘 I/O 计数器。

services

具有可选过滤器和紧凑默认值的 Windows 服务。

service

单个 Windows 服务的详细信息。

所有工具都返回一致的结构:

{
  "data": {},
  "errors": [],
  "meta": {
    "timestamp": "2026-08-17T00:00:00+00:00",
    "source": "psutil",
    "tool": "tool_name"
  }
}

Related MCP server: Windows MCP Server

要求

  • Windows

  • Python 3.10+

安装

python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt

运行

.\.venv\Scripts\activate
python main.py

服务器运行在:

http://127.0.0.1:8080/mcp

使用 MCP Inspector 测试

启动服务器,然后运行:

npx @modelcontextprotocol/inspector --server-url http://127.0.0.1:8080/mcp --transport http

您也可以使用 CLI 模式:

npx @modelcontextprotocol/inspector --cli http://127.0.0.1:8080/mcp --transport http --method tools/list

运行测试

.\.venv\Scripts\python.exe -m unittest discover -s tests -v

示例工具参数

使用更短的采样间隔调用 cpu_info:

{
  "interval_seconds": 0.5
}

仅列出正在运行的服务:

{
  "status": "running"
}

列出包含详细字段的服务:

{
  "include_details": true,
  "limit": 25
}

包含所有磁盘分区:

{
  "all_partitions": true
}

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server that enables AI assistants to interact with and manage Windows systems, providing capabilities for file system operations, process management, system information retrieval, registry operations, service management, network diagnostics, and performance monitoring.
    7
    25 npm
    5
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    Exposes Windows system information and control tools including hardware stats, network details, and process monitoring. It enables AI applications to retrieve real-time data about CPU, memory, drives, and active system processes.
    12
    GPL 3.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to retrieve structured information about the local Windows machine, including system specifications, resource health, developer tools, and AI environment, all through a secure, read-only interface.
    MIT