Provides tools to check and kill Chrome instances with MCP profiles, allowing management of browser instances used by Claude.
Leverages native macOS confirmation dialogs for dangerous commands, providing secure command execution with system-level security verification.
Danger Zone MCP
A Model Context Protocol (MCP) server that allows executing predefined commands with safety checks.
Features
- Execute safe commands from configuration
- Execute dangerous commands with native macOS confirmation dialog
- Support for pre-authorized dangerous commands (skip confirmation)
- JSONC support (JSON with comments)
- Multiple configuration file formats supported (.jsonc and .json)
- Fallback to global config in
~/.claude/
if project config not found - TypeScript implementation
- Works with npx for easy execution
Installation
Or use with npx (no installation required):
Configuration
Create a configuration file in your project root or home directory:
- Project-specific config (highest priority):
<project>/.claude/.danger-zone-exec.local.jsonc
(recommended for comments)<project>/.claude/.danger-zone-exec.local.json
- Global config (fallback):
~/.claude/.danger-zone-exec.jsonc
(recommended for comments)~/.claude/.danger-zone-exec.json
Usage with Claude Desktop / Claude Code
Add to your Claude configuration:
Note: When using Claude Code, the cwd
is automatically set to your current project directory.
Development
Configuration Options
Command Properties
name
: Tool name (used asexec_<name>
)description
: Description shown in Claudecommand
: Shell command to executeargs
: Optional array of default arguments
DangerZone Properties
name
: Tool name (used asdanger_<name>
)description
: Description shown in Claudecommand
: Shell command to executepreAuthorized
: Skip confirmation dialog if true (optional, defaults to false)
Safety Features
- Dangerous commands show native macOS confirmation dialog by default
- Pre-authorized commands can skip confirmation when explicitly configured
- Commands are sandboxed to configured list
- Clear separation between safe and dangerous operations
This server cannot be installed
A Model Context Protocol server that enables safe execution of predefined commands with built-in safety checks, separating regular commands from dangerous operations requiring confirmation.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that allows LLMs to execute shell commands and receive their output in a controlled manner.Last updated -3Python
- AsecurityFlicenseAqualityA Model Context Protocol server that allows secure execution of pre-approved commands, enabling AI assistants to safely interact with the user's system.Last updated -1620JavaScript
- AsecurityFlicenseAqualityA Model Context Protocol server implementation that enables secure remote command execution via SSH, with features for managing and using SSH credentials.Last updated -5138JavaScript
- -securityFlicense-qualityA minimal Model Context Protocol server that provides a safety guardrail tool to check if provided context is free from code injection or harmful content.Last updated -Python