MCP server for read-only Linux system administration, diagnostics, and troubleshooting
To add linux-mcp-server to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It needs 11 environment variables, listed below.
Install
uvx linux-mcp-server@1.4.0Environment variables
LINUX_MCP_USERSet in your MCP configLINUX_MCP_SSH_KEY_PATHSet in your MCP configLINUX_MCP_KEY_PASSPHRASESet in your MCP configLINUX_MCP_SEARCH_FOR_SSH_KEYSet in your MCP configLINUX_MCP_COMMAND_TIMEOUTSet in your MCP configLINUX_MCP_VERIFY_HOST_KEYSSet in your MCP configLINUX_MCP_KNOWN_HOSTS_PATHSet in your MCP configLINUX_MCP_ALLOWED_LOG_PATHSSet in your MCP configLINUX_MCP_LOG_DIRSet in your MCP configLINUX_MCP_LOG_LEVELSet in your MCP configLINUX_MCP_LOG_RETENTION_DAYSSet in your MCP configInstall with your client
claude mcp add linux --env LINUX_MCP_USER=<YOUR_LINUX_MCP_USER> --env LINUX_MCP_SSH_KEY_PATH=<YOUR_LINUX_MCP_SSH_KEY_PATH> --env LINUX_MCP_KEY_PASSPHRASE=<YOUR_LINUX_MCP_KEY_PASSPHRASE> --env LINUX_MCP_SEARCH_FOR_SSH_KEY=<YOUR_LINUX_MCP_SEARCH_FOR_SSH_KEY> --env LINUX_MCP_COMMAND_TIMEOUT=<YOUR_LINUX_MCP_COMMAND_TIMEOUT> --env LINUX_MCP_VERIFY_HOST_KEYS=<YOUR_LINUX_MCP_VERIFY_HOST_KEYS> --env LINUX_MCP_KNOWN_HOSTS_PATH=<YOUR_LINUX_MCP_KNOWN_HOSTS_PATH> --env LINUX_MCP_ALLOWED_LOG_PATHS=<YOUR_LINUX_MCP_ALLOWED_LOG_PATHS> --env LINUX_MCP_LOG_DIR=<YOUR_LINUX_MCP_LOG_DIR> --env LINUX_MCP_LOG_LEVEL=<YOUR_LINUX_MCP_LOG_LEVEL> --env LINUX_MCP_LOG_RETENTION_DAYS=<YOUR_LINUX_MCP_LOG_RETENTION_DAYS> -- uvx linux-mcp-server@1.4.0
Run this in a terminal to add the server to Claude Code.
What this does
linux-mcp-server exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.
Requirements
This server needs the following environment variables to be set before it can run:
LINUX_MCP_USER LINUX_MCP_SSH_KEY_PATH LINUX_MCP_KEY_PASSPHRASE LINUX_MCP_SEARCH_FOR_SSH_KEY LINUX_MCP_COMMAND_TIMEOUT LINUX_MCP_VERIFY_HOST_KEYS LINUX_MCP_KNOWN_HOSTS_PATH LINUX_MCP_ALLOWED_LOG_PATHS LINUX_MCP_LOG_DIR LINUX_MCP_LOG_LEVEL LINUX_MCP_LOG_RETENTION_DAYS
Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).
Frequently asked questions
How do I install linux-mcp-server?
Run the Claude Code command in the install section to add linux-mcp-server to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.
Which clients work with linux-mcp-server?
This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to linux-mcp-server as well.
Does linux-mcp-server need an API key?
Yes. Before it can run, set these environment variables: LINUX_MCP_USER, LINUX_MCP_SSH_KEY_PATH, LINUX_MCP_KEY_PASSPHRASE, LINUX_MCP_SEARCH_FOR_SSH_KEY, LINUX_MCP_COMMAND_TIMEOUT, LINUX_MCP_VERIFY_HOST_KEYS, LINUX_MCP_KNOWN_HOSTS_PATH, LINUX_MCP_ALLOWED_LOG_PATHS, LINUX_MCP_LOG_DIR, LINUX_MCP_LOG_LEVEL, LINUX_MCP_LOG_RETENTION_DAYS. They go in the env block of your MCP config.
Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.
Is this your MCP server?
Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.
Add this badge to your README
Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.
[](https://clauderules.net/mcp/io-github-rhel-lightspeed-linux-mcp-server)<a href="https://clauderules.net/mcp/io-github-rhel-lightspeed-linux-mcp-server" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-rhel-lightspeed-linux-mcp-server" alt="Listed on clauderules.net" /></a>More DevTools MCP servers
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
Figma-Context-MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
Inbox Zero
Search Gmail and Outlook, save drafts, manage email rules, and view email stats.
