MCP Server Commands logo

MCP Server Commands

by g0t4

Run host commands through MCP using shell strings or direct argv arrays, with stdout, stderr, and optional stdin support.

Install MCP Server Commands

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "g0t4-mcp-server-commands": {
      "command": "npx",
      "args": [
        "mcp-server-commands"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 1 tools correctly (24d ago).

Overview

g0t4/mcp-server-commands MCP server lets an MCP client run processes on the host machine through its `run_process` tool. Commands can be supplied as a shell string with pipes, redirects, and expansion, or as an argument array that bypasses shell interpretation. Results include standard output and standard error, while optional stdin supports scripts and file-generation commands. Use it when an agent needs user-requested access to local command-line programs and you can review each invocation.

Use cases

  • Run shell commands from an MCP-compatible coding client
  • Inspect files and system information on the host
  • Pass scripts to local interpreters through stdin
  • Generate prompts from command output in Zed

Key features

  • Shell command execution
  • Direct argv-based process execution
  • STDOUT and STDERR text results
  • Optional stdin for scripts
  • STDIO transport
  • MCP Inspector debugging script

Tools1

What MCP Server Commands lets your agent do. Expand a tool for its parameters.

Verified live~214 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

21/21 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · mcp-server-commands (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars237Stargazers on the source repository.
npm downloads1.6kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed1Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Commands works

What g0t4/mcp-server-commands MCP server does

g0t4/mcp-server-commands MCP server exposes one MCP tool, run_process, for starting processes on the machine where the server runs. It is intended for command-line tasks requested through an MCP-compatible client, such as checking the hostname, listing files, printing text, or invoking an installed interpreter.

The tool returns the process's STDOUT and STDERR as text. An optional stdin value lets the model provide input to programs such as bash, fish, zsh, or python. It can also support commands that write incoming text to a file, provided the command itself performs that operation.

How it works

The tool accepts one of two mutually exclusive command formats:

  • command_line: a single string executed by the system's default shell. Shell behavior such as pipes, redirects, and variable expansion is available.
  • argv: a string array where the first item is the executable and later items are its arguments. This invokes the executable directly without shell parsing.

The selected parameter determines whether the server uses shell execution or direct execution. If a particular shell should be used, the README recommends specifying that preference in the model's system prompt or tool instructions. The server uses the MCP STDIO transport.

Setup and configuration

The published npm package can be launched through npx in an MCP client configuration:

config.json
{
  "mcpServers": {
    "mcp-server-commands": {
      "command": "npx",
      "args": ["mcp-server-commands"]
    }
  }
}

For a repository checkout, build the project with npm install followed by npm run build, then point the client at build/index.js. npm run watch is available for automatic rebuilds during development. Claude Desktop stores its configuration under the application support directory on macOS or the application data directory on Windows. Groq Desktop's documented configuration path is also provided for macOS.

The package supports a --verbose argument in the client configuration for more detailed logging. The server writes logs to standard error; Claude Desktop routes them to its MCP log file. npm run inspector starts the MCP Inspector workflow for debugging.

Tools and capabilities

g0t4/mcp-server-commands MCP server currently provides:

  • run_process for shell-based or direct process execution.
  • Text results containing standard output and standard error.
  • Optional standard input for scripts and other commands.
  • Prompt support that can generate a prompt message containing command output, including use from Zed's AI Chat slash commands.

The example connects that bridge to Open WebUI.

Limitations and notes

g0t4/mcp-server-commands MCP server runs with the permissions of the user account that starts it. It can therefore expose the host to risky or destructive commands. Review every requested command, use per-invocation approval where the client provides it, and do not run the server with sudo.

Direct argv execution avoids shell interpretation, while command_line intentionally permits shell features. Local models may also need system-prompt guidance before they will call the tool. When using the mcpo bridge or Open WebUI, review the security implications before exposing the interface.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server Commands

g0t4/mcp-server-commands is an MCP server that connects an MCP client to command-line processes on the host machine. Its main tool, `run_process`, accepts either a shell command string or a direct `argv` array, returns STDOUT and STDERR as text, and can pass optional input through stdin.

Install it by configuring an MCP client to run `npx mcp-server-commands`. For a local checkout, run `npm install` and `npm run build`, then configure the client to launch the resulting `build/index.js` file.

Use the `command_line` parameter to execute a string through the system's default shell. This supports shell features such as pipes, redirects, and variable expansion. Use `argv` instead when you want direct executable invocation without shell interpretation.

No; the README explicitly says not to run it with `sudo`. Processes inherit the permissions of the user running the server, so review each command and use client approval controls when available.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server Commands AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/g0t4-mcp-server-commands?style=directory)](https://allmcps.com/mcp/g0t4-mcp-server-commands)
HTML Embed
<a href="https://allmcps.com/mcp/g0t4-mcp-server-commands"><img src="https://allmcps.com/api/badge/g0t4-mcp-server-commands?style=directory" alt="MCP Server Commands on AllMCPs" /></a>