Defender-MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Defender-MCP scan C:\Downloads\setup.exe for malware"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Defender-MCP
A lightweight Model Context Protocol (MCP) server that uses PowerShell only to scan files and report Windows Defender antivirus state.
Tools
Tool | Description |
| Scan a single file path using Windows Defender |
| Trigger a system-wide quick scan |
| Report current antivirus state |
Related MCP server: Windows Admin MCP
Setup
npm install
npm run buildUsage
{
"mcpServers": {
"defender": {
"command": "node",
"args": ["C:/Temp/GitHub/Defender-MCP/dist/index.js"]
}
}
}Environment Variables
Variable | Default | Description |
|
| File scan timeout in ms (clamped to |
|
| Quick scan timeout in ms (clamped to |
|
| Status query timeout in ms (clamped to |
| current working directory | Comma-separated absolute allowlist for |
|
| PowerShell execution policy ( |
|
| PowerShell executable |
Requirements
Windows with Windows Defender
Node.js >= 18
Elevated privileges are not required for basic status queries; scan behavior can vary by local policy.
Testing
npm testAvailable Tools
3 toolsget_statusB
Get Windows Defender antivirus status
Inputs: no named parameters.
quick_scanB
Run a Windows Defender quick scan
Inputs: no named parameters.
scan_fileC
Scan a single file using Windows Defender
Inputs: file_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
quick_scan and scan_file both trigger scans but are distinguished by scope (whole-system quick scan vs single file), and get_status is clearly a read-only operation. Boundaries are understandable, though the two scan tools could momentarily be confused without reading descriptions.
All three names are snake_case with a verb-first reading (quick_scan, get_status, scan_file). quick_scan is a slight deviation in that it leads with an adjective rather than a clean verb_noun form, but overall the pattern is predictable.
Three tools is a minimal but focused surface for antivirus management, and each earns its place. However, the set feels thin for a domain with obvious adjacent operations (updates, history, remediation), so it sits on the low edge of well-scoped.
The surface covers scanning and status only; there is no way to update signatures, view scan/threat history, quarantine or restore items, or toggle real-time protection. These are significant gaps that would force an agent to dead-end on common Defender workflows.
Maintenance
Related MCP Connectors
Execute PowerShell commands securely with controlled timeouts and input validation. Retrieve syste…
Scan PDFs, Office docs, and RAG files for malware exploits, macros, CVEs, and AI prompt injection.
*Updated June 17th 2025** Manage your Microsoft 365 services effortlessly. Create and manage distr…
Security scanning for code, containers and IaC: request scans, read findings, report fixes.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables secure PowerShell command execution with specialized script generation for Microsoft Intune and IBM BigFix management platforms, including detection/remediation scripts, system monitoring, and enterprise automation.141MIT
- FlicenseNot gradedqualityDmaintenanceEnables remote Windows server administration and troubleshooting via WinRM and SSH PowerShell protocols.8-
- AlicenseNot gradedqualityBmaintenanceEnables supervised PowerShell execution on Windows, allowing the DeepSeek agent to run local commands and manage files safely through a single tool.GPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables diagnosing Windows service and process faults through read-only, least-privilege PowerShell JEA endpoints, with mutating actions gated behind human approval.MIT