System & File Manager MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
🖥️ System & File Manager MCP Server
Yapay zeka modellerine (Claude Desktop, Cursor IDE vb.) yerel sistem kaynaklarını anlık izleme ve güvenli dosya/rapor yönetimi sağlayan Model Context Protocol (MCP) sunucusu.
A Model Context Protocol (MCP) server that empowers AI models (Claude Desktop, Cursor IDE, etc.) with real-time system resource monitoring and secure local file/report management.
🇹🇷 Türkçe | 🇬🇧 English
🇹🇷 Türkçe
📌 Genel Bakış
System & File Manager MCP Server, yerel makineniz ile LLM tabanlı yapay zeka istemcileri (Claude Desktop, Cursor IDE, Windsurf vb.) arasında güvenli bir köprü kurar. Bu sunucu sayesinde yapay zeka asistanları:
Donanım Metriklerini İzleyebilir: CPU, RAM ve Disk doluluk oranlarını gerçek zamanlı kontrol eder.
Canlı Sistem Durumunu Okuyabilir: Son açılış zamanı (boot time) ve aktif süreç sayısını dinamik bir kaynak (Resource) üzerinden takip eder.
Güvenli Dosya Yazabilir: Dizin atlatma (Path Traversal) ataklarına karşı korumalı bir şekilde
reports/dizinine raporlar veya günlükler kaydedebilir.
Related MCP server: DivLens MCP
🚀 Yetenekler ve Özellikler
Sunucu, Model Context Protocol (MCP) spesifikasyonuna uygun 2 adet Araç (Tool) ve 1 adet Canlı Kaynak (Resource) barındırır:
🛠️ Araçlar (Tools)
Araç Adı | Parametreler | Açıklama |
| Yok | Anlık CPU kullanımı (%), çekirdek sayısı, RAM toplam/kullanılan/yüzde ve Disk toplam/boş/yüzde bilgilerini JSON formatında sunar. |
|
| İstenen içerik ve dosya adıyla |
📡 Canlı Kaynaklar (Resources)
Kaynak URI | Tür | Açıklama |
|
| Sistemin son açılış tarihi, o an çalışan aktif işlem/süreç sayısı ve genel sağlık durumunu dinamik metin olarak döndürür. |
📸 Ekran Görüntüleri ve Test Paneli
MCP sunucusu, resmi @modelcontextprotocol/inspector aracı ile kapsamlı bir şekilde doğrulanmıştır:
1. Sunucu Bağlantı Durumu (STDIO Protocol)
Sunucunun başlatıldığı ve MCP Inspector üzerinden başarıyla bağlandığı an:
2. Araç (Tool) Test Paneli — get_system_stats
get_system_statsaracının tetiklenmesi ve dönen canlı JSON sistem metrikleri:
3. Canlı Kaynak (Resource) Testi — system://live-status
Sistem durumu kaynağının canlı içeriği:
⚙️ Kurulum ve Çalıştırma
1. Depoyu Klonlayın
git clone https://github.com/Yavuz0707/self-mcp-server.git
cd self-mcp-server2. Sanal Ortam (Virtual Environment) Oluşturun
Bash / Zsh (Ubuntu, Debian, Fedora, Arch Linux vb.):
python3 -m venv venv
source venv/bin/activateFish Shell (Arch / Diğer dağıtımlar):
python3 -m venv venv
source venv/bin/activate.fish3. Bağımlılıkları Yükleyin
pip install -r requirements.txt(veya manuel olarak: pip install mcp psutil)
4. Geliştirme ve Test (MCP Inspector)
Sunucuyu interaktif test arayüzü ile başlatmak için:
npx @modelcontextprotocol/inspector ./venv/bin/python server.py(veya FastMCP CLI kullanıyorsanız: mcp dev server.py)
🤖 AI İstemcilerine Entegrasyon
1. Cursor IDE Entegrasyonu
Cursor'da MCP sunucusunu eklemek için:
Cursor Settings > Features > MCP Servers bölümüne gidin.
+ Add New MCP Server butonuna tıklayın ve bilgileri girin:
Name:
SystemAndFileManagerType:
commandCommand:
/TAM/YOL/self-mcp-server/venv/bin/pythonArgs:
/TAM/YOL/self-mcp-server/server.py
(Cursor ~/.cursor/mcp.json veya proje bazlı .cursor/mcp.json dosyasına da ekleyebilirsiniz)
{
"mcpServers": {
"system-and-file-manager": {
"command": "/home/kullanici_adiniz/self-mcp-server/venv/bin/python",
"args": ["/home/kullanici_adiniz/self-mcp-server/server.py"]
}
}
}2. Claude Desktop Entegrasyonu
Claude Desktop yapılandırma dosyasını açın:
Linux:
~/.config/Claude/claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Aşağıdaki yapılandırmayı ekleyin:
{
"mcpServers": {
"system-manager": {
"command": "/home/kullanici_adiniz/self-mcp-server/venv/bin/python",
"args": [
"/home/kullanici_adiniz/self-mcp-server/server.py"
]
}
}
}Yukarıdaki yolları kendi sisteminizdeki mutlak (absolute) dosya yolları ile değiştirmeyi unutmayın (which python veya pwd çıktılarını kullanabilirsiniz).
🛡️ Güvenlik
Dizin Atlatma (Path Traversal) Koruması:
write_reportfonksiyonu girilen dosya yolunuos.path.basename()fonksiyonuyla filtreler.../../etc/passwdveya benzeri zararlı parametreler verilse dahi dosya yalnızca proje kökündekireports/klasörü altına yazılır.
📄 Lisans ve Katkıda Bulunma
Bu proje MIT Lisansı altında lisanslanmıştır. Katkıda bulunmak için Pull Request gönderebilir veya geri bildirimleriniz için Issue açabilirsiniz.
🇬🇧 English
📌 Overview
System & File Manager MCP Server is a lightweight, secure Model Context Protocol server that bridges local system diagnostics and file operations with LLM-based applications such as Claude Desktop, Cursor IDE, and other MCP-compliant agents.
Key capabilities provided to the AI:
Hardware Inspection: Real-time metrics for CPU, RAM, and storage utilization.
Live System Awareness: Dynamic access to machine boot time, active processes count, and health status via MCP Resources.
Safe File Generation: Securely generates structured reports or logs within the
reports/folder with built-in Path Traversal protection.
🚀 Features & Specifications
Built on the official Model Context Protocol (MCP) Python SDK:
🛠️ Tools
Tool Name | Parameters | Description |
| None | Returns real-time CPU utilization (%), core count, RAM (total, used, percentage), and Disk metrics in a clean JSON object. |
|
| Writes formatted text/markdown to the |
📡 Resources
Resource URI | MIME Type | Description |
|
| Live text feed exposing the host machine's last boot time, active process count (PID count), and general health status. |
📸 Screenshots & MCP Inspector
Verified and tested using the official @modelcontextprotocol/inspector suite:
1. Connection Established (STDIO Protocol)
Server started and connected through standard I/O:
2. Tool Execution — get_system_stats
Inspecting real-time CPU, RAM, and Disk metrics returned in JSON:
3. Resource Reading — system://live-status
Real-time plain text resource rendering system status:
⚙️ Installation & Setup
1. Clone the Repository
git clone https://github.com/Yavuz0707/self-mcp-server.git
cd self-mcp-server2. Create Virtual Environment
Bash / Zsh (Linux / macOS):
python3 -m venv venv
source venv/bin/activateFish Shell (Arch / Linux):
python3 -m venv venv
source venv/bin/activate.fish3. Install Dependencies
pip install -r requirements.txt(or directly: pip install mcp psutil)
4. Running & Testing (MCP Inspector)
Launch the official interactive MCP Inspector UI:
npx @modelcontextprotocol/inspector ./venv/bin/python server.py(or using FastMCP CLI: mcp dev server.py)
🤖 AI Client Integration
1. Cursor IDE Setup
Open Cursor and navigate to Settings > Features > MCP Servers.
Click + Add New MCP Server:
Name:
SystemAndFileManagerType:
commandCommand:
/ABSOLUTE/PATH/TO/self-mcp-server/venv/bin/pythonArgs:
/ABSOLUTE/PATH/TO/self-mcp-server/server.py
Or add directly to .cursor/mcp.json:
{
"mcpServers": {
"system-and-file-manager": {
"command": "/home/username/self-mcp-server/venv/bin/python",
"args": ["/home/username/self-mcp-server/server.py"]
}
}
}2. Claude Desktop Setup
Edit your claude_desktop_config.json:
Linux:
~/.config/Claude/claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server definition:
{
"mcpServers": {
"system-manager": {
"command": "/home/username/self-mcp-server/venv/bin/python",
"args": [
"/home/username/self-mcp-server/server.py"
]
}
}
}Always provide absolute paths to both the virtualenv Python binary andserver.py.
🛡️ Security
Path Traversal Protection:
write_reportsanitizes the incomingfilenamewithos.path.basename(). Any relative traversal attempts (e.g.../../etc/passwd) are stripped, ensuring all writes strictly reside in the project'sreports/folder.
📄 License & Contributing
Distributed under the MIT License. Contributions, bug reports, and suggestions are welcome! Feel free to open an issue or submit a pull request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
CPU telemetry & benchmarking, SHA-256 hashing, AES-256-GCM storage, AI video/image via Nova.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Monitors TLS/SSL certificate expiry, DNS resolution, and TCP port status for AI agents.
AI agent run monitoring with incident replay and SLA receipts.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides tools to monitor host system health including CPU load, disk usage, and network status while enabling file system management tasks like searching and moving files. It includes built-in safety guards to prevent operations on critical system directories.11-
- AlicenseNot gradedqualityCmaintenanceA real-time system diagnostics MCP server that gives AI agents live access to CPU, RAM, disk, network, processes, and hardware health metrics, with zero cloud dependency.7Apache 2.0
- AlicenseNot gradedqualityFmaintenanceMulti-machine system monitor with a built-in MCP server that enables AI agents to query health metrics, manage processes, schedule cron jobs, and run diagnostics across local and remote machines.133 npmApache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor real-time CPU, RAM, and disk usage on the local machine.-