Remote Command MCP Server
A Model Context Protocol (MCP) server that enables remote command execution across different operating systems.
Overview
Remote Command MCP is a Model Context Protocol (MCP) server that enables remote command execution across different operating systems, providing a unified interface to execute shell commands while handling platform-specific differences.
To use Remote Command MCP, clone the repository, install dependencies, build the server, and configure it in your settings file. You can then use the execute_remote_command tool to run any valid shell command on the host machine.
- Cross-platform command execution - Automatic command normalization between Windows and Unix - Built-in error handling and output streaming - Working directory specification support - Platform-specific shell selection
- Executing system commands remotely
- Managing packages across different OS environments
- Performing network operations and monitoring
- Running development tools and scripts remotely
- Managing services and processes on remote machines
Add to your AI client
Use these steps to connect Remote Command MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"remote-command-mcp-deepsuthar496": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-command-mcp-deepsuthar496"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"remote-command-mcp-deepsuthar496": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-command-mcp-deepsuthar496"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"remote-command-mcp-deepsuthar496": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-command-mcp-deepsuthar496"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"remote-command-mcp-deepsuthar496": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-command-mcp-deepsuthar496"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"remote-command-mcp-deepsuthar496": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-command-mcp-deepsuthar496"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"remote-command-mcp-deepsuthar496": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-command-mcp-deepsuthar496"
]
}
}
}FAQ
Is Remote Command MCP secure?
Yes, but it is important to implement access control and command validation to ensure security.
Can I run any command with Remote Command MCP?
Yes, you can execute any valid shell command available on the host OS.
How does Remote Command MCP handle platform differences?
The server automatically translates commands and selects the appropriate shell based on the operating system.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3460,"uuid":"f7f10bbb-2c94-4af3-ad72-4e68256d0617","name":"Remote-Command-MCP","title":"Remote Command MCP Server","description":"A Model Context Protocol (MCP) server that enables remote command execution across different operating systems.","avatar_url":"https://avatars.githubusercontent.com/u/151819823?v=4","created_at":"2025-03-19T16:44:48.929Z","updated_at":"2025-03-19T16:45:35.976Z","status":"created","author_name":"deepsuthar496","author_avatar_url":"https://avatars.githubusercontent.com/u/151819823?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/deepsuthar496/Remote-Command-MCP","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-24 23:42:55\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]