MCP Wsl Exec MCP Server

A secure Model Context Protocol (MCP) server for executing commands in Windows Subsystem for Linux (WSL) with built-in safety features and validation

Local serverstdio

What is the MCP Wsl Exec MCP server?

Most developer tooling work still happens through a UI a human drives. MCP Wsl Exec MCP server moves it into the conversation instead. A secure Model Context Protocol (MCP) server for executing commands in Windows Subsystem for Linux (WSL) with built-in safety features and validation.

The short version

A Model Context Protocol (MCP) server for Windows + Claude Desktop users to interact with Windows Subsystem for Linux (WSL). Provides both read-only information gathering and secure command execution capabilities.

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

The tools it exposes

The server publishes 9 tools. What each one is for:

  • get_system_info — The get_system_info tool exposed by this server
  • get_directory_info — The get_directory_info tool exposed by this server
  • get_disk_usage — The get_disk_usage tool exposed by this server
  • get_environment — The get_environment tool exposed by this server
  • list_processes — The list_processes tool exposed by this server
  • execute_command — The execute_command tool exposed by this server
  • confirm_command — Confirm execution of a dangerous command that was flagged by safety checks
  • Setup — The Setup tool exposed by this server
  • Publishing — The project uses changesets for version management. To publish:

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MCP Wsl Exec.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP Wsl Exec's toolset — get_system_info, get_directory_info, get_disk_usage and 6 more — is a fair guide to whether it matches your workflow. It is maintained by spences10; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP Wsl Exec's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
get_system_infoThe get_system_info tool exposed by this server.
get_directory_infoThe get_directory_info tool exposed by this server.
get_disk_usageThe get_disk_usage tool exposed by this server.
get_environmentThe get_environment tool exposed by this server.
list_processesThe list_processes tool exposed by this server.
execute_commandThe execute_command tool exposed by this server.
confirm_commandConfirm execution of a dangerous command that was flagged by safety checks.
SetupThe Setup tool exposed by this server.
PublishingThe project uses changesets for version management. To publish:

How to install the MCP Wsl Exec MCP server

{
	"mcpServers": {
		"mcp-wsl-exec": {
			"command": "npx",
			"args": ["-y", "mcp-wsl-exec"]
		}
	}
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MCP Wsl Exec to get system info.
  • Use MCP Wsl Exec to get directory info.
  • Use MCP Wsl Exec to get disk usage.

Frequently asked questions

It connects MCP Wsl Exec to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (get_system_info, get_directory_info, get_disk_usage, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Wsl Exec directly.