Skip to main content

winrm-mcp-server

基于 WinRM 的 MCP (Model Context Protocol) 服务器,纯 Python 实现,通过 pywinrm 在远程 Windows 主机上执行 PowerShell/CMD 命令。

功能

  • execute-command:远程执行 PowerShell 或 CMD
  • list-connections:列出已配置连接
  • add-connection / remove-connection / rename-connection:管理 config/connections.json
  • history:查看命令执行历史

传输

  • stdio:本地 MCP 客户端直连
  • http:Streamable HTTP,默认端口 8971,路径 /mcp

快速启动

pip3 install -r requirements.txt
python3 -m winrm_mcp --transport http --http-port 8971 --http-host 0.0.0.0

配置文件

config/connections.json(参考 connections.example.json)

Windows 端要求

目标主机需启用 WinRM(5985 HTTP 或 5986 HTTPS):

Enable-PSRemoting -Force -SkipNetworkProfileCheck

认证使用 NTLM(requests-ntlm),与 Windows 默认 WinRM 配置兼容。

设计文档

完整设计文档见 docs/(系统设计、详细设计、接口契约、部署、配置、日志)。

systemd 部署

./deploy/auto_update.sh install

Metadata

Release files for mcp_winrm 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp_winrm 1.1.2
File Size Uploaded Provenance Actions
mcp_winrm-1.1.2.tar.gz 10.5 kB Without provenance Details for mcp_winrm-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp_winrm 1.1.2
File Interpreter ABI Platform Actions
mcp_winrm-1.1.2-py3-none-any.whl Python 3 none any Details for mcp_winrm-1.1.2-py3-none-any.whl

Total release size: 24.3 kB

Release files / mcp_winrm-1.1.2.tar.gz

Download URL mcp_winrm-1.1.2.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
10736aaa76177b0e0883179b4adba0f08c074c1eccee749cff52b8033c3d5f24
BLAKE2b-256 checksum
How to use checksums
102456936f9cdffce580f26479d0d99de85a6a43bea522520a5fc2d2a7950d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mcp_winrm-1.1.2-py3-none-any.whl

Download URL mcp_winrm-1.1.2-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f53dcf160d5377b25dd8dddded6d74a5fd111910f9cac0f94dc1d8cef6fb83e
BLAKE2b-256 checksum
How to use checksums
d883b6a299a0148d8eb7d6225408f47d0a14924eea90055b0e2c2e5af3e2efcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mcp_winrm 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page