SecureShell runs as an MCP server for Claude Desktop, Cline, and other MCP clients.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"secureshell": {
"command": "python",
"args": ["-m", "secureshell.integrations.mcp_server"],
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}See mcp_config.json for examples with all providers.
The execute_shell_command tool will be available.
See cookbook/mcp_example.py for using the MCP server with your own OpenAI agent.
Auto-detects from environment:
OPENAI_API_KEY→ OpenAIANTHROPIC_API_KEY→ AnthropicGEMINI_API_KEY→ GeminiGROQ_API_KEY→ GroqDEEPSEEK_API_KEY→ DeepSeek
All commands go through:
- Risk classification
- Sandbox validation
- Gatekeeper LLM evaluation
- Audit logging