loading…
Search for a command to run...
loading…
Provides AI assistants with the ability to control Linux desktop environments through tools for file management, application launching, and system operations li
Provides AI assistants with the ability to control Linux desktop environments through tools for file management, application launching, and system operations like clipboard access. It includes a multi-level security model to manage permissions for safe, elevated, and restricted actions.
AI-driven Linux desktop control via Model Context Protocol.
Linux MCP Server exposes Linux desktop operations (file management, app control, clipboard, notifications) as MCP tools. AI assistants can use these tools to perform actions on behalf of the user.
AI Assistant (Claude, Ollama, etc.)
│
│ MCP (HTTP+SSE)
▼
Linux MCP Server (Python)
│
├── Safety Layer (Safe/Elevated/Blocked permissions)
│
└── Tools: file_read, app_launch, clipboard, notifications
| Level | Description | Example |
|---|---|---|
| SAFE | No confirmation needed | Read files, launch apps, clipboard |
| ELEVATED | Requires user confirmation | Write files, run shell commands |
| BLOCKED | Never allowed | sudo, kernel access |
All AI-initiated actions are logged to an audit trail.
pip install linux-mcp
# Set compositor auth key (optional but recommended)
export LINUX_MCP_COMPOSITOR_KEY="your-secret-key"
# Start the MCP server
linux-mcp
Add to ~/.claude-desktop-config.json:
{
"mcpServers": {
"linux-desktop": {
"command": "uvx",
"args": ["linux-mcp"],
"env": {
"LINUX_MCP_COMPOSITOR_KEY": "your-secret-key"
}
}
}
}
file_read - Read file contentsfile_list - List directoryfile_write (ELEVATED) - Write filesapp_launch - Launch applicationsclipboard_read - Read clipboardnotification_send - Send notificationssettings_get / settings_set - System settings# Clone and install
git clone https://github.com/YOUR_USER/linux-mcp.git
cd linux-mcp
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Run in dev mode
python -m linux_mcp
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"linux-mcp-server": {
"command": "npx",
"args": []
}
}
}