MCP.so
登录

Linux Command MCP (MCP)

@xkiranj

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

xkiranj

关于 Linux Command MCP

MCP server and client for running Linux commands

Linux Command MCP 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "linux-command": {
      "command": "node",
      "args": [
        "/full/path/to/linux-command-mcp/server/dist/index.js"
      ]
    }
  }
}

Linux Command MCP 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Linux Command MCP?

Linux Command MCP is a remote command execution system built using the Model Context Protocol (MCP), allowing secure and standardized execution of Linux commands. It is designed for users who want to issue Linux commands through an MCP-compatible client such as Claude Desktop.

How to use Linux Command MCP?

Install Node.js v18+, npm, and PM2. Clone the repository, then install and build both server and client. Configure the server in claude_desktop_config.json with an absolute path to the built index.js. Start the server with PM2 via npm run pm2:start. Use the client by running npm start and then issuing commands like exec "ls -l" or list /home. The server also supports an optional stdin parameter for interactive scripts.

Key features of Linux Command MCP

  • Execute Linux commands via MCP client
  • Supports interactive scripts with stdin input
  • No sudo execution requiring password prompts
  • PM2 process management for server reliability
  • Client commands: exec, list, help, exit
  • Uses absolute paths in configuration

Use cases of Linux Command MCP

  • Check system information (kernel version, uptime)
  • List directory contents and navigate files
  • View disk usage and memory information
  • Run automated interactive scripts (e.g., Python games or setup wizards)
  • Inspect network interfaces without sensitive data

常见问题

1

Can Linux Command MCP run sudo commands?

No. The server still cannot execute sudo commands that require password prompts. For sudo commands, either execute them manually with proper permissions or configure passwordless sudo for specific commands.

2

What are the prerequisites for Linux Command MCP?

Node.js v18.x or later, npm, and PM2 for process management are required.

3

How do I configure Linux Command MCP for Claude Desktop?

Add a server entry to `claude_desktop_config.json` with `"command": "node"` and `"args": ["/full/path/to/linux-command-mcp/server/dist/index.js"]`. Always use absolute paths.

4

How do I use the stdin parameter for interactive scripts?

Pass a `stdin` string in the call tool arguments, using `\n` for newlines. The input is sent line-by-line before script execution, and all output is captured.

5

What security considerations are there?

Run the server only on trusted networks, limit access to the server, and be cautious with command execution. Avoid commands that reveal sensitive information, modify system settings, or require sudo/root permissions.

评论

其他 分类下的更多 MCP 服务器