Linux CommandSAFE
MCP server and client for running Linux commands
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Overview
Linux Command MCP is a remote command execution system built using the Model Context Protocol (MCP), allowing secure and standardized execution of Linux commands.
Configuration for Claude Desktop MCP Servers
Understanding the Configuration
The MCP servers are configured in the claude_desktop_config.json file, typically located at ~/.config/Claude/claude_desktop_config.json.
Configuration Structure
"mcpServers": {
"server-name": {
"command": "node|npx|uvx",
"args": ["server-specific-arguments"],
"env": {
"OPTIONAL_ENVIRONMENT_VARIABLES": "value"
}
}
}Linux Command MCP Server Configuration
"linux-command": {
"command": "node",
"args": [
"/full/path/to/linux-command-mcp/server/dist/index.js"
]
}Configuration Explained
"command": Specifies the executor (node,npx,uvx)"args": Full path to the server's executable- Ensure the path is an absolute path to your
index.js
Important Configuration Tips
- Always use full, absolute paths
- Verify file permissions
- Ensure the specified file is executable
Prerequisites
- Node.js (v18.x or later)
- npm
- PM2 (for process management)
Installation
- Clone the repository
git clone cd linux-command-mcp
- Install server dependencies
cd server npm install npm run build
- Install client dependencies
cd ../client npm install npm run build
Usage
Starting the Server
- Navigate to the server directory
cd server
- Start with PM2
npm run pm2:start
Using the Client
Available Commands:
- exec - Execute a Linux command
- list [directory] - List directory contents
- help - Show this help
- exit - Exit the client
Execute commands directly:
# In the client directory npm start exec "ls -l" exec "list /home" exec "uname -
50500110806eOBSERVED · 2026-10-09Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add linux-command-mcp-server -- npx -y [email protected]
{
"mcpServers": {
"linux-command-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (1)
0 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
execute-command | write |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@modelcontextprotocol/sdk, zod, @types/node, typescript
@modelcontextprotocol/sdk, zod, @types/node, typescript
Gates applied: no_behavioural_pass.
50500110806efull audit observations/trust-audit/mcp-server/xkiranj__linux-command.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 50500110806e | SAFE | B | 89 | first audit |
Questions
What is the Linux Command MCP server?
MCP server and client for running Linux commands
What tools does Linux Command expose?
1 in total: 0 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Linux Command safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Linux Command need?
No credential environment variables were found in its source, so it appears to need none.
How does Linux Command run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as linux-command-mcp-server at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (50500110806e), read on 2026-10-09. The repository is watched and re-audited when it changes.