Cmd MCP Server

Experimental MCP server to execute command line commands

Local serverstdio

What is the Cmd MCP server?

Experimental MCP server to execute command line commands. The cmd mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 3 defined tools rather than through you.

What it actually does

The server implements one tool: - run_command: Runs a command line comment - Takes "cmd" and "args" as string arguments - Runs the command and returns stdout, stderr, status_code, etc.

Its toolset

Everything the assistant can do here goes through one of these:

  • run_command — Runs a command line comment
  • Tools — The server implements one tool: - run_command: Runs a command line comment - Takes "cmd" and "args" as string arguments - Runs the command and
  • Debugging — Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP

Configuration

You will need one environment variable: UV_PUBLISH_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Cmd's toolset — run_command, Tools, Debugging — is a fair guide to whether it matches your workflow. It is maintained by MarkusPfundstein; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the cmd mcp server does with a few real requests.

Available tools

ToolWhat it does
run_commandRuns a command line comment
ToolsThe server implements one tool: - run_command: Runs a command line comment - Takes "cmd" and "args" as string arguments - Runs the command and returns stdout, stderr, status_code, etc.
DebuggingSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).

How to install the Cmd MCP server

"mcpServers": {
    "cmd-line-executor": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/$(whoami)/experiments/claude-mvp/cmd-line-executor",
        "run",
        "cmd-line-executor"
      ]
    }
  }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
UV_PUBLISH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Cmd to run command.
  • Use Cmd to Tools.
  • Use Cmd to Debugging.

Frequently asked questions

It returns `stdout`, `stderr`, and `status_code` from the executed command.