Sysinternals MCP Server
Exposes Sysinternals and NirSoft Windows diagnostic binaries as MCP tools with safe subprocess execution. Dynamically registers tools from a binaries directory with built-in security filters for destructive operations.
README
systeminternals-mcp (scaffold)
Minimal FastMCP-compatible scaffold that demonstrates dynamic registration and safe subprocess wrapping for exposing Sysinternals and NirSoft binaries.
Quick demo:
python server.py --demo procexp64
Start the MCP stdio server:
python server_mcp.py
Edit config.ini to adjust server settings (log level, timeout, allow_destructive).
The server no longer requires explicit binary paths — it scans the binaries/ directory recursively.
Security notes: This scaffold sanitizes arguments and uses asyncio.create_subprocess_exec without a shell. Extend with explicit safety filters before using in production.
Safety filter: destructive tools (for example sdelete, psexec, pskill) are blocked by default. To run them you must either:
- Add
--confirmto the tool arguments, or - Set
allow_destructive = truein the[server]section ofconfig.ini.
The server also scans a binaries directory recursively if present; place your tool folders (e.g., systeminternals, nirsoft) under binaries.
Setup
Prerequisites:
- Python 3.11+ (recommended) and
venv.
Quick setup:
python -m venv .venv
.\.venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
Running
- Run a single-tool demo (CLI):
python server.py --demo pslist64
- Start the long-running MCP stdio server (for agent integration):
python server_mcp.py
The --demo mode is useful for simple CLI usage and for coding agents that can execute shell commands and parse JSON output. server_mcp.py exposes the full MCP stdio endpoint for clients that implement the MCP protocol.
Using from a CLI or a coding agent
- Simple CLI / scripting approach (recommended for automation and agents that can run subprocesses): the
--democommand prints JSON to stdout which is easy to parse from any language.
Example Python snippet (agent or script):
import subprocess, json
proc = subprocess.run([
'python', 'server.py', '--demo', 'pslist64', '--',
# additional tool args go here as separate items
], capture_output=True, text=True)
if proc.returncode == 0 and proc.stdout:
result = json.loads(proc.stdout)
print(result)
else:
print('error', proc.stderr)
Note: place any tool arguments after --demo <toolname>; the demo command will join remaining argv pieces for the tool.
- Long-running MCP server (for advanced agents):
- Start the server with
python server_mcp.py(it will register tools frombinaries.jsonor thebinaries/directory). - Use an MCP-capable client to connect over stdio (spawn the server as a child process and implement the MCP framing). Many agent frameworks support providing a long-lived process that the agent can call into; in that case the MCP stdio server gives a stable RPC surface.
If your agent framework doesn't implement MCP natively, use the simple subprocess approach above to execute server.py --demo per-request.
Security and best practices
- Never allow untrusted agents or users to run destructive tools. Destructive tools are blocked by default; confirmations are required (interactive prompt,
--confirmorallow_destructive=trueinconfig.ini). - When generating per-tool schemas or probing help text, run the probe in an isolated environment (VM or disposable container) to avoid accidental execution of unsafe binaries.
- For production use, add authentication around the MCP stdio process and run under restricted privileges.
CI
A GitHub Actions workflow is included at .github/workflows/ci.yml that runs the test suite on push and pull requests.
mcpServers (IDE / agent integration)
If your editor/agent supports a mcpServers config (for example the Gemini client settings), add entries that either start the stdio MCP server or point to a running HTTP MCP endpoint.
Example — start the long-lived stdio MCP server from this repo (preferred for full MCP integration):
"systeminternals-mcp": {
"command": "python",
"args": [
"C:\\path\\to\\the\\server_mcp.py"
]
}
Example — demo/one-shot entry that runs --demo and prints JSON (useful for simple agents that call subprocesses):
"systeminternals-mcp-demo": {
"command": "python",
"args": [
"C:\\path\\to\\the\\server.py",
"--demo"
]
}
Example — point to an existing HTTP MCP endpoint:
"systeminternals-mcp-http": {
"url": "http://127.0.0.1:12345/mcp"
}
Notes:
- Use absolute Windows paths (escape backslashes in JSON) or a plain
pythoncommand if the environment activates the virtualenv automatically. - If your client supports
cwdandenv, set them so the server runs in the repo root and uses the.venvPython. - Prefer the stdio MCP server (
server_mcp.py) for integrated agents; use--demofor simple per-request subprocess calls that return JSON.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。