Linux Command MCP (Model Context Protocol)
@xkiranj
Linux Command MCP (Model Context Protocol) について
MCP server and client for running Linux commands
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"linux-command": {
"command": "node",
"args": [
"/full/path/to/linux-command-mcp/server/dist/index.js"
]
}
}
}ツール
ツールは検出されませんでした
ツールは 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
FAQ from Linux Command MCP
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.
What are the prerequisites for Linux Command MCP?
Node.js v18.x or later, npm, and PM2 for process management are required.
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.
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.
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 Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
コメント