Runs macOS terminal commands in ZSH with a command whitelist and approval for risky commands.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add mac-shell -- node build/index.js~/.codex/config.toml
[mcp_servers.mac-shell]
command = "node"
args = ["build/index.js"]
# codex mcp add mac-shell -- node build/index.js~/.cursor/mcp.json
{
"mcpServers": {
"mac-shell": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}.vscode/mcp.json
{
"servers": {
"mac-shell": {
"type": "stdio",
"command": "node",
"args": [
"build/index.js"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mac-shell": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"mac-shell": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"mac-shell": {
"command": "node",
"args": [
"build/index.js"
]
}
}
}