# mcp-server-commands

> mcp-server-commands is an open-source MCP server for developer tools. MCP server that lets AI clients run shell commands and processes on the host machine. It is available on CLI, macOS, Windows, Linux and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux, Self-hosted
- **Repository:** https://github.com/g0t4/mcp-server-commands
- **GitHub stars:** 238
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This server gives an AI client a single tool, run_process, for executing commands on the machine where it runs. Callers can either pass a full command line, which goes through the system's default shell so pipes and redirects work, or pass an argument array that launches an executable directly without shell interpretation. Output comes back as text from standard output and standard error, and an optional stdin field lets a model feed scripts to interpreters such as bash or python.

It is built for people who want a local model or a desktop assistant to inspect a system or carry out small tasks on it. The README stresses caution: the server runs with the permissions of the user who launches it, and the author advises approving each command individually rather than allowing it for a whole chat. It is distributed through npm and installs by adding a short config block to clients such as Claude Desktop or Groq Desktop.

## Features

- **Single run_process tool:** Exposes one tool that executes commands and returns their stdout and stderr as text.
- **Shell or direct execution:** Accepts either a shell command line or an argv array that runs an executable without a shell.
- **Stdin piping:** An optional stdin parameter lets a model pass scripts to shells or interpreters.
- **Prompt template:** Includes a prompt that runs a command and places its output into the chat history.
- **STDIO and HTTP access:** Runs over STDIO, with the README pointing to mcpo for an OpenAPI-compatible HTTP bridge.
- **Inspector support:** Includes a package script to launch the MCP Inspector for debugging.

## Good for

- Letting a local assistant check hostname, disk usage or running processes
- Asking a model to run scripts or create files from generated text
- Testing how a local model behaves when it is given command-line tools
- Bridging a command-line tool to a web chat interface through mcpo

## Tools

From the tool list in its README, going by the names, 1 of 1 tool changes data. From the server's own tool labels and tool names; not verified by us.

- `run_process` (name suggests: changes): Runs a command line through the default shell or an argv array directly, returning stdout and stderr.

## FAQ

### Can I restrict which shell is used?

The README suggests listing the preferred shells in a system prompt or tool instructions so the model uses them.

### How are commands and logs handled?

Only errors are logged by default; a verbose flag adds more messages, and logs go to stderr for Claude Desktop.

### Should this be run with elevated privileges?

No. The README says not to run it with sudo, since it runs with the permissions of the user who starts it.

### Is mcp-server-commands free?

Yes. mcp-server-commands is open source, so you can use and self-host it for free.

### What are the best alternatives to mcp-server-commands?

The closest alternatives to mcp-server-commands are MCP Process, Ssh Client MCP Server, mcp-shell-server, MCP Console Automation and MCP Sidecar.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [MCP Process](https://ai-powered.com/mcp/mcp-process): MCP Process is an open-source MCP server for developer tools.
- [Ssh Client MCP Server](https://ai-powered.com/mcp/ssh-client-mcp-server-2): Ssh Client MCP Server is an open-source MCP server for developer tools.
- [mcp-shell-server](https://ai-powered.com/mcp/mcp-shell-server): mcp-shell-server is an open-source MCP server for developer tools.
- [MCP Console Automation](https://ai-powered.com/mcp/mcp-console-automation): MCP Console Automation is an open-source MCP server for browser automation.
- [MCP Sidecar](https://ai-powered.com/mcp/mcp-sidecar): MCP Sidecar is an open-source MCP server for developer tools.
- [cli2mcp](https://ai-powered.com/mcp/cli2mcp): cli2mcp is an open-source MCP server for developer tools.
- [Bash Command MCP](https://ai-powered.com/mcp/bash-command-mcp): Bash Command MCP is an open-source MCP server for developer tools.
- [mcp-shell](https://ai-powered.com/mcp/mcp-shell): mcp-shell is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-server-commands-2
