OlympHill
cli-mcp-server logo

cli-mcp-serverThis tool gives AI apps safe access to your terminal by letting you approve specific commands, restrict them to one folder, and block harmful inputs. You set simple limits once, so the AI only perform

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

CLI MCP Server is a secure Model Context Protocol (MCP) server implementation for executing controlled command-line operations. It provides comprehensive security features for safe access to your terminal by letting you approve specific commands, restrict them to one folder, and block harmful inputs. The server enables secure command-line execution with robust security measures including command whitelisting, path validation, and execution controls. It's perfect for providing controlled CLI access to LLM applications while maintaining security.

Key features

  • Secure command execution
  • Configurable command and flag whitelisting
  • Path traversal prevention
  • Shell operator injection protection
  • Execution timeouts and length limits
  • Detailed error reporting

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

Controlled CLI Access for LLM Applications

Provide secure and controlled CLI access to LLM applications while maintaining security.

Restricted Command Execution

Restrict command execution to a specific directory and whitelist specific commands and flags.

Pros & Cons

Pros

  • Secure command execution with strict validation
  • Configurable command and flag whitelisting
  • Path traversal prevention and validation

Cons

  • Requires configuration to set allowed commands and directories
  • Shell operators are not supported by default

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

Are shell operators supported by default?

No, shell operators are not supported by default, but can be enabled by setting ALLOW_SHELL_OPERATORS=true.

Asked by Xander de Vries · Jan 7, 2026

Can I restrict commands to a specific directory?

Yes, you can restrict commands to a specific directory by setting the ALLOWED_DIR environment variable.

Asked by Malik Rasheed · Jan 5, 2026

How do I configure the server?

The server is configured using environment variables such as ALLOWED_DIR, ALLOWED_COMMANDS, and ALLOWED_FLAGS.

Asked by Esther Adeyemi · Dec 27, 2025

What security features does cli-mcp-server offer?

cli-mcp-server offers command whitelisting, path validation, execution controls, shell operator injection protection, and execution timeouts.

Asked by Halime Yalcin · Oct 16, 2025

Ask a question

MCP Servers alternatives