Linux MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LINUX_MCP_LOG_DIR | No | Custom log directory | ~/.local/share/linux-mcp-server/logs/ |
| LINUX_MCP_LOG_LEVEL | No | Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL) | INFO |
| LINUX_MCP_SSH_KEY_PATH | No | Specify SSH private key path (defaults to ~/.ssh/id_ed25519, ~/.ssh/id_rsa, etc.) | |
| LINUX_MCP_ALLOWED_LOG_PATHS | No | Comma-separated list of allowed log file paths | |
| LINUX_MCP_LOG_RETENTION_DAYS | No | Log retention in days | 10 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_system_info | Get basic system information including OS version, kernel, hostname, and uptime. |
| get_cpu_info | Get CPU information and load averages. |
| get_memory_info | Get memory usage including RAM and swap details. |
| get_disk_usage | Get filesystem usage and mount points. |
| get_hardware_info | Get hardware information including CPU architecture, PCI devices, USB devices, and memory hardware. |
| list_services | List all systemd services with their current status. |
| get_service_status | Get detailed status of a specific systemd service. |
| get_service_logs | Get recent logs for a specific systemd service. |
| list_processes | List running processes with CPU and memory usage. |
| get_process_info | Get detailed information about a specific process. |
| get_journal_logs | Query systemd journal logs with optional filters. |
| get_audit_logs | Get audit logs if available. |
| read_log_file | Read a specific log file (whitelist-controlled via LINUX_MCP_ALLOWED_LOG_PATHS). |
| get_network_interfaces | Get network interface information including IP addresses. |
| get_network_connections | Get active network connections. |
| get_listening_ports | Get ports that are listening on the system. |
| list_block_devices | List block devices and partitions. |
| list_directories_by_size | List directories sorted by size (largest first). Uses efficient Linux du command. |
| list_directories_by_name | List directories sorted alphabetically by name. Uses efficient Linux find command. |
| list_directories_by_modified_date | List directories sorted by modification date. Uses efficient Linux find command. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/narmaku/linux-mcp-server-archived'
If you have feedback or need assistance with the MCP directory API, please join our Discord server