MladenSU CLI

Developer tools

Command line interface for MCP clients with secure execution and customizable security policies.

Your AI app calls the MladenSU CLI MCP server, which does the developer tools work and sends the result back to the chat.

About MladenSU CLI

MladenSU CLI is a community MCP server from MladenSU, filed in our directory under developer tools. Command line interface for MCP clients with secure execution and customizable security policies.

MladenSU CLI runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

At a glance

Publisher
MladenSU (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
Python
License
MIT
GitHub stars
177

How to set up MladenSU CLI

  1. Install Node.js on the machine that runs your AI app, because MladenSU CLI starts with npx and downloads its package on first run.
  2. Check the MladenSU CLI README for keys or settings; the registry lists none that MladenSU CLI requires.
  3. Add MladenSU CLI to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the MladenSU CLI tools to confirm the connection.
  5. Run one read-only task with MladenSU CLI first, and keep your app asking before each tool call until the results look right.

MladenSU CLI compared with similar servers

  • Obs by royshil has fewer GitHub stars than MladenSU CLI (177 against 177); both are community servers, and both run locally.
  • Hostinger by hostinger has fewer GitHub stars than MladenSU CLI (177 against 177); both are community servers, and Hostinger runs as a remote server and MladenSU CLI runs on your own machine.
  • Slack Skills Plugin by slackapi has fewer GitHub stars than MladenSU CLI (177 against 177); both are community servers, and both run locally.

Before you connect MladenSU CLI

  • Give MladenSU CLI its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each MladenSU CLI tool call until you trust what it does with them.
  • Treat text that MladenSU CLI fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for MladenSU CLI on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for MladenSU CLI

How marketing and sales teams put MladenSU CLI to work, by company size. Pick the size closest to yours and start MladenSU CLI on one use case.

Small business

  • A small business with a developer can use MladenSU CLI to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask MladenSU CLI to explain and fix a marketing site issue without context switching between tools.
  • MladenSU CLI runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use MladenSU CLI to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect MladenSU CLI to keep scripts and automations documented and versioned as they change.
  • Start MladenSU CLI on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out MladenSU CLI with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on MladenSU CLI so web and marketing engineering share one reviewed way of working with AI.
  • MladenSU CLI is a community server, so have security review the code and pin a version before MladenSU CLI touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

MladenSU CLI README

From MladenSU/cli-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

CLI MCP Server

A secure Model Context Protocol (MCP) server implementation for executing controlled command-line operations with comprehensive security features.

Table of Contents

  1. Overview
  2. Features
  3. Configuration
  4. Available Tools
    • run_command
    • show_security_rules
  5. Usage with Claude Desktop
    • Development/Unpublished Servers Configuration
    • Published Servers Configuration
  6. Security Features
  7. Error Handling
  8. Development
    • Prerequisites
    • Building and Publishing
    • Debugging
  9. License

Overview

This MCP server enables secure command-line execution with robust security measures including command whitelisting, path validation, and execution controls. Perfect for providing controlled CLI access to LLM applications while maintaining security.

Features

  • 🔒 Secure command execution with strict validation
  • ⚙️ Configurable command and flag whitelisting with 'all' option
  • 🛡️ Path traversal prevention and validation
  • 🚫 Shell operator injection protection
  • ⏱️ Execution timeouts and length limits
  • 📝 Detailed error reporting
  • 🔄 Async operation support
  • 🎯 Working directory restriction and validation

Configuration

Configure the server using environment variables:

Variable Description Default
ALLOWED_DIR Base directory for command execution (Required) None (Required)
ALLOWED_COMMANDS Comma-separated list of allowed commands or 'all' ls,cat,pwd
ALLOWED_FLAGS Comma-separated list of allowed flags or 'all' -l,-a,--help
MAX_COMMAND_LENGTH Maximum command string length 1024
COMMAND_TIMEOUT Command execution timeout (seconds) 30
ALLOW_SHELL_OPERATORS Allow shell operators (&&, ||, |, >, etc.) false

Note: Setting ALLOWED_COMMANDS or ALLOWED_FLAGS to 'all' will allow any command or flag respectively.

Installation

To install CLI MCP Server for Claude Desktop automatically via Smithery:

npx @smithery/cli install cli-mcp-server --client claude

Available Tools

run_command

Executes whitelisted CLI commands within allowed directories.

Input Schema:

{
  "command": {
    "type": "string",
    "description": "Single command to execute (e.g., 'ls -l' or 'cat file.txt')"
  }
}

Security Notes:

  • Shell operators (&&, |, >, >>) are not supported by default, but can be enabled with ALLOW_SHELL_OPERATORS=true
  • Commands must be whitelisted unless ALLOWED_COMMANDS='all'
  • Flags must be whitelisted unless ALLOWED_FLAGS='all'
  • All paths are validated to be within ALLOWED_DIR
show_security_rules

Displays current security configuration and restrictions, including:

  • Working directory
  • Allowed commands
  • Allowed flags
  • Security limits (max command length and timeout)

Usage with Claude Desktop

Add to your ~/Library/Application\ Support/Claude/claude_desktop_config.json:

Development/Unpublished Servers Configuration

{
  "mcpServers": {
    "cli-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "<path/to/the/repo>/cli-mcp-server",
        "run",
        "cli-mcp-server"
      ],
      "env": {
        "ALLOWED_DIR": "</your/desired/dir>",
        "ALLOWED_COMMANDS": "ls,cat,pwd,echo",
        "ALLOWED_FLAGS": "-l,-a,--help,--version",
        "MAX_COMMAND_LENGTH": "1024",
        "COMMAND_TIMEOUT": "30",
        "ALLOW_SHELL_OPERATORS": "false"
      }
    }
  }
}

Published Servers Configuration

{
  "mcpServers": {
    "cli-mcp-server": {
      "command": "uvx",
      "args": [
        "cli-mcp-server"
      ],
      "env": {
        "ALLOWED_DIR": "</your/desired/dir>",
        "ALLOWED_COMMANDS": "ls,cat,pwd,echo",
        "ALLOWED_FLAGS": "-l,-a,--help,--version",
        "MAX_COMMAND_LENGTH": "1024",
        "COMMAND_TIMEOUT": "30",
        "ALLOW_SHELL_OPERATORS": "false"
      }
    }
  }
}

In case it's not working or showing in the UI, clear your cache via uv clean.

Security Features

  • ✅ Command whitelist enforcement with 'all' option
  • ✅ Flag validation with 'all' option
  • ✅ Path traversal prevention and normalization
  • ✅ Shell operator blocking (with opt-in support via ALLOW_SHELL_OPERATORS=true)
  • ✅ Command length limits
  • ✅ Execution timeouts
  • ✅ Working directory restrictions
  • ✅ Symlink resolution and validation

Error Handling

The server provides detailed error messages for:

  • Security violations (CommandSecurityError)
  • Command timeouts (CommandTimeoutError)
  • Invalid command formats
  • Path security violations
  • Execution failures (CommandExecutionError)
  • General command errors (CommandError)

Development

Prerequisites
  • Python 3.10+
  • MCP protocol library
Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:

    uv sync
    
  2. Build package distributions:

    uv build
    

    This will create source and wheel distributions in the dist/ directory.

  3. Publish to PyPI:

    uv publish --token {{YOUR_PYPI_API_TOKEN}}
    
Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory {{your source code local directory}}/cli-mcp-server run cli-mcp-server

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

License

This project is licensed under the MIT License - see the LICENSE file for details.

For more information or support, please open an issue on the project repository.

Questions about MladenSU CLI

What is the MladenSU CLI MCP server?

Command line interface for MCP clients with secure execution and customizable security policies. MladenSU CLI is maintained by MladenSU on GitHub at MladenSU/cli-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the MladenSU CLI MCP server?

Add MladenSU CLI to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio cli -- npx -y @smithery/cli. To run MladenSU CLI this way you need Node.js installed.

Does MladenSU CLI need an API key?

The registry lists no required keys for MladenSU CLI. Check the MladenSU CLI README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is MladenSU CLI an official MCP server?

No. MladenSU CLI is a community server maintained by MladenSU. Community servers can be excellent; read the code and the open issues before you give MladenSU CLI access to company data.

What license is MladenSU CLI under?

MladenSU CLI is released under the MIT license, according to its GitHub repository. The license covers the code of MladenSU CLI; the service it connects to has its own terms.