
pazuzu1w/ubuntu_mcp_server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
pazuzu1w/ubuntu mcp server は [https://github.com/pazuzu1w/ubuntu_mcp_server.] からインポートされた MCP サーバーの候補です
概要
pazuzu1w/ubuntu mcp server は [https://github.com/pazuzu1w/ubuntu_mcp_server.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
安全なUbuntuシステム操作のためのSecurity-Firstモデルコンテキストプロトコルサーバー
堅く、生産準備が整ったモデルコンテキストプロトコル(MCP)サーバーは、AIアシスタントに安全で管理されたアクセスをUbuntuシステム操作に提供します。 包括的なセキュリティ制御、監査ロギング、および防衛詳細な原則で構築。
✨ 主な特長
️️セキュリティファーストアーキテクチャ
- Path の横断保護 - allowlist/denylist 制御を用いるシムリンクの決断 -Command sanitization - 安全な引数解析によるシェル注射防止
- リソース制限 - ファイルサイズ、実行タイムアウト、出力サイズのコントロール
- 包括的な監査ロギング - ユーザーアトリビューションで記録されたすべての操作
- 深さで防衛 - フェイルセーフデフォルトで複数のセキュリティレイヤー
確かなコア能力
-File Operations - 許可検証でディレクトリを読み、書き、リストする -Command Execution - ホワイトリスト/ブラックリストフィルタリングによる安全なシェルコマンド実行
- システム情報 - OSの詳細、メモリ、ディスク使用状況監視
- パッケージ管理 - APTパッケージ検索とリスト(インストールは明示的な設定が必要です)
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Secure Ubuntu MCP Server
🔒 Security-First Model Context Protocol server for safe Ubuntu system operations
A hardened, production-ready Model Context Protocol (MCP) server that provides AI assistants with secure, controlled access to Ubuntu system operations. Built with comprehensive security controls, audit logging, and defense-in-depth principles.
✨ Key Features
🛡️ Security-First Architecture
- Path traversal protection - Symlink resolution with allowlist/denylist controls
- Command sanitization - Shell injection prevention with safe argument parsing
- Resource limits - File size, execution timeouts, and output size controls
- Comprehensive audit logging - All operations logged with user attribution
- Defense in depth - Multiple security layers with fail-safe defaults
🎯 Core Capabilities
- File Operations - Read, write, and list directories with permission validation
- Command Execution - Safe shell command execution with whitelist/blacklist filtering
- System Information - OS details, memory, and disk usage monitoring
- Package Management - APT package search and listing (installation requires explicit config)
🏗️ Production Ready
- Modular design with clear separation of concerns
- Comprehensive error handling with meaningful error messages
- Extensive test suite including security validation tests
- Configurable policies for different use cases and environments
- Zero-dependency security - Core security doesn’t rely on external packages
🚀 Quick Start
Prerequisites
- Ubuntu 18.04+ (tested on 20.04, 22.04, 24.04)
- Python 3.9 or higher
- Standard Unix utilities (ls, cat, echo, etc.)
Installation
# Clone the repository
git clone https://github.com/yourusername/secure-ubuntu-mcp.git
cd secure-ubuntu-mcp
# Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Verify installation with built-in tests
python main.py --test
Basic Usage
# Start with secure policy (recommended)
python main.py --policy secure
# Start with development policy (more permissive)
python main.py --policy dev
# Test security measures
python main.py --security-test
🔧 Integration
Claude Desktop
Getting Claude Desktop on Linux
Official Support: Claude Desktop doesn’t officially support Linux, but the community has created solutions!
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"secure-ubuntu": {
"command": "/path/to/secure-ubuntu-mcp/.venv/bin/python3",
"args": ["/path/to/secure-ubuntu-mcp/main.py", "--policy", "secure"],
"env": {
"MCP_LOG_LEVEL": "INFO"
}
}
}
}