by jrame
An MCP server (Model-Client-Protocol) allowing Claude to access a shell. This integration enables Claude to execute commands and interact with your file system via the command line.
⚠️ CAUTION ⚠️
This project has only been tested with WSL (Windows Subsystem for Linux) and has not been validated for production use. Using this MCP gives Claude direct access to your file system and shell, which presents significant security risks:
This is truly a Pandora's box - use it at your own risk. The author assumes no responsibility for damages, data loss, or security issues resulting from the use of this software.
It is strongly recommended to use it only in an isolated or controlled environment.
pywinpty
package is requiredptyprocess
package is requiredgit clone https://github.com/jrame/mcp-process.git cd mcp-process
pip install .
Or for development installation:
pip install -e ".[dev]"
To use this MCP server with Claude, you need to add the following configuration to Claude's configuration file. Depending on your installation, this file is usually located at:
%AppData%/Claude/claude_desktop_config.json
Add the following section:
*Configuration content*
Option | Description | Default Value |
---|---|---|
--process-path-args | Path to shell process including initial arguments (e.g., wsl.exe --cd [dir] ) | wsl.exe --cd [current_dir] |
--forbidden-words | List of words not allowed in commands | [several_default_items] |
--filter-patterns | Regex patterns to filter | ["\x07", "\x1b\[25l"] |
--exec-name | Custom name for the exec tool | exec |
--exec-description | Custom description for the exec tool | (see default in args) |
--exec-timeout | Command timeout (in sec.) | 60 |
To filter ANSI color sequences:
--filter-patterns "\x1b\[[0-9;]*m"
To filter terminal titles:
--filter-patterns "\x1b\]0;.*?\x07"
Once installed and configured, you can ask Claude to execute WSL commands as follows:
Can you run the command "ls -la" in WSL?
To contribute to development:
pip install -e ".[dev]"
pytest
MIT
For any questions, bug reports, or suggestions, please create an issue on the project's GitHub repository.
GitHub repository: https://github.com/Metherlance/mcp-process
Here is a list of similar projects that also provide MCP servers for shell access:
No version information available