Skip to content
MCP server

Linux MCP Server

MCP server for read-only Linux system administration, diagnostics, and troubleshooting

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.4.0
Listing updated
5 days ago

About Linux MCP Server

Linux MCP Server is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add linux-mcp-server --env LINUX_MCP_KEY_PASSPHRASE='<LINUX_MCP_KEY_PASSPHRASE>' -- uvx linux-mcp-server

Add to claude_desktop_config.json

{
  "mcpServers": {
    "linux-mcp-server": {
      "command": "uvx",
      "args": [
        "linux-mcp-server"
      ],
      "env": {
        "LINUX_MCP_KEY_PASSPHRASE": "<LINUX_MCP_KEY_PASSPHRASE>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "linux-mcp-server": {
      "command": "uvx",
      "args": [
        "linux-mcp-server"
      ],
      "env": {
        "LINUX_MCP_KEY_PASSPHRASE": "<LINUX_MCP_KEY_PASSPHRASE>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "linux-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "linux-mcp-server"
      ],
      "env": {
        "LINUX_MCP_KEY_PASSPHRASE": "<LINUX_MCP_KEY_PASSPHRASE>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "linux-mcp-server": {
      "command": "uvx",
      "args": [
        "linux-mcp-server"
      ],
      "env": {
        "LINUX_MCP_KEY_PASSPHRASE": "<LINUX_MCP_KEY_PASSPHRASE>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "linux-mcp-server": {
      "command": "uvx",
      "args": [
        "linux-mcp-server"
      ],
      "env": {
        "LINUX_MCP_KEY_PASSPHRASE": "<LINUX_MCP_KEY_PASSPHRASE>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • LINUX_MCP_USERDefault username for SSH connections
  • LINUX_MCP_SSH_KEY_PATHPath to SSH private key
  • LINUX_MCP_KEY_PASSPHRASEPassphrase for encrypted SSH key
  • LINUX_MCP_SEARCH_FOR_SSH_KEYAuto-discover keys in `~/.ssh`
  • LINUX_MCP_COMMAND_TIMEOUTSSH command timeout in seconds (default: 30)
  • LINUX_MCP_VERIFY_HOST_KEYSVerify remote host identity via known_hosts
  • LINUX_MCP_KNOWN_HOSTS_PATHCustom path to known_hosts file
  • LINUX_MCP_ALLOWED_LOG_PATHSComma-separated allowlist of log files
  • LINUX_MCP_LOG_DIRServer log directory
  • LINUX_MCP_LOG_LEVELLog verbosity (DEBUG, INFO, WARNING)
  • LINUX_MCP_LOG_RETENTION_DAYSDays to keep log files

Pricing

Open source

Linux MCP Server FAQ

Is Linux MCP Server free?

Yes. Linux MCP Server is open source, so you can use and self-host it for free.

How do I add Linux MCP Server to Claude Code?

Run this command in your terminal: claude mcp add linux-mcp-server --env LINUX_MCP_KEY_PASSPHRASE='<LINUX_MCP_KEY_PASSPHRASE>' -- uvx linux-mcp-server

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers