AcademyMCP serversOperations

cli-mcp-server

Operations and IT teams that want an assistant to run limited shell commands without open access to the machine.

  • Listedour rating
  • 177gitHub stars
  • MITlicence
  • 15 months agolast update
claude mcp add cli-mcp-server -e ALLOWED_DIR=</your/desired/dir> -e ALLOWED_COMMANDS=ls,cat,pwd,echo -e ALLOWED_FLAGS=-l,-a,--help,--version -e MAX_COMMAND_LENGTH=1024 -e COMMAND_TIMEOUT=30 -e ALLOW_SHELL_OPERATORS=false -- uv --directory <path/to/the/repo>/cli-mcp-server run cli-mcp-server
README.md

Loading the file...

What it does

An MCP server that lets an AI assistant run command-line operations under security rules you define. It offers a run_command tool and a tool to show the active security rules, and it works with Claude Desktop.

Use cases

  1. 01Run approved commands from an assistant
  2. 02Limit which commands and paths are allowed
  3. 03Review the active security rules before use

Questions about
cli-mcp-server.

What is cli-mcp-server used for?

Operations and IT teams that want an assistant to run limited shell commands without open access to the machine. An MCP server that lets an AI assistant run command-line operations under security rules you define. It offers a run_command tool and a tool to show the active security rules, and it works with Claude Desktop.

How do I install cli-mcp-server?

Run this in your terminal: claude mcp add cli-mcp-server -e ALLOWED_DIR=</your/desired/dir> -e ALLOWED_COMMANDS=ls,cat,pwd,echo -e ALLOWED_FLAGS=-l,-a,--help,--version -e MAX_COMMAND_LENGTH=1024 -e COMMAND_TIMEOUT=30 -e ALLOW_SHELL_OPERATORS=false -- uv --directory <path/to/the/repo>/cli-mcp-server run cli-mcp-server

Is cli-mcp-server open source?

Yes. The code is on GitHub (MladenSU/cli-mcp-server) under the MIT licence.

Is cli-mcp-server safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.