drio
Open app

cmd-line-executor MCP server

Source

Experimental MCP server to execute command line commands

Catalog onlyCatalog onlySTDIO

Overview

cmd-line-executor MCP is an experimental server designed to execute command line commands efficiently.

To use the cmd-line-executor, you need to install it according to your operating system, configure the server settings in your Claude desktop configuration, and utilize the run_command tool to execute commands.

  • Execute any command line commands using the run_command tool. - Return outputs like stdout, stderr, and status codes efficiently. - Configuration support for different server settings, including development and published servers.
  1. Automating command line operations in development environments.
  2. Executing batch files or scripts directly from a server.
  3. Debugging command outputs in a controlled setting using the MCP Inspector.

Add to your AI client

Use these steps to connect cmd-line-executor 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": {
    "cmd-line-executor-mcp-markuspfundstein": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cmd-line-executor-mcp-markuspfundstein"
      ]
    }
  }
}

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": {
    "cmd-line-executor-mcp-markuspfundstein": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cmd-line-executor-mcp-markuspfundstein"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "cmd-line-executor-mcp-markuspfundstein": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cmd-line-executor-mcp-markuspfundstein"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "cmd-line-executor-mcp-markuspfundstein": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cmd-line-executor-mcp-markuspfundstein"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "cmd-line-executor-mcp-markuspfundstein": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cmd-line-executor-mcp-markuspfundstein"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "cmd-line-executor-mcp-markuspfundstein": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-cmd-line-executor-mcp-markuspfundstein"
      ]
    }
  }
}

FAQ

Can cmd-line-executor MCP run any command line tool?

Yes! It can run any command line application as long as it's properly configured.

How do I configure the cmd-line-executor?

You need to edit the `claude_desktop_config.json` file based on your system and define the relevant commands and arguments.

Is there support for debugging?

Yes! The MCP Inspector can be used for a better debugging experience.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":336,"uuid":"9486f8c9-c0f4-4c01-8c57-1aa0431a3b0b","name":"cmd-line-executor-MCP","title":"cmd-line-executor MCP server","description":"Experimental MCP server to execute command line commands","avatar_url":"https://avatars.githubusercontent.com/u/1137867?v=4","created_at":"2024-12-13T13:20:27.848Z","updated_at":"2024-12-13T15:09:09.079Z","status":"created","author_name":"MarkusPfundstein","author_avatar_url":"https://avatars.githubusercontent.com/u/1137867?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MarkusPfundstein/cmd-line-executor-MCP","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"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"}]]}]