# WSL Exec
> Provides secure command execution in WSL with built-in safety features like path validation, timeouts, and error handling.
Canonical: https://www.mcpfolio.com/servers/wsl-exec
Last updated: 2026-10-28
## Catalog record

- Publisher: spences10
- Categories: development

## Repository

https://github.com/spences10/mcp-wsl-exec

## Transports

stdio

## Authentication

No credentials were configured; the tested read-only tool “get_system_info” succeeded in an isolated environment. Other tools may have additional requirements.

## Tools

- **get_system_info**: Get WSL system information
- **get_environment**: Get WSL environment variables
- **list_processes**: List running processes in WSL
- **get_disk_usage**: Get disk space information
- **get_directory_info**: Get directory contents and info
- **execute_command**: Execute a command in WSL (use read-only tools when possible)
- **confirm_command**: Confirm dangerous command execution

## Sources

- [MCP.Directory public profile](https://mcp.directory/servers/wsl-exec)
- [Linked publisher repository](https://github.com/spences10/mcp-wsl-exec)
- [npm registry metadata](https://registry.npmjs.org/mcp-wsl-exec)
- [maintainer_repository_documentation](https://github.com/spences10/mcp-wsl-exec)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/wsl-exec) to view instructions for each supported client.