drio
Open app

CLI MCP Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

CLI MCP Server is a secure Model Context Protocol (MCP) server implementation designed for executing controlled command-line operations with comprehensive security features.

To use the CLI MCP Server, configure it using environment variables and execute whitelisted commands within allowed directories. Installation can be done via Smithery for Claude Desktop.

  • Secure command execution with strict validation - Configurable command and flag whitelisting - 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
  1. Providing controlled CLI access to LLM applications.
  2. Executing commands in a secure environment.
  3. Enforcing command and flag restrictions for security.

Add to your AI client

Use these steps to connect CLI MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "plurigrid-juvix-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-plurigrid-juvix-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "plurigrid-juvix-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-plurigrid-juvix-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "plurigrid-juvix-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-plurigrid-juvix-mcp-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "plurigrid-juvix-mcp-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-plurigrid-juvix-mcp-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "plurigrid-juvix-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-plurigrid-juvix-mcp-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "plurigrid-juvix-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-plurigrid-juvix-mcp-server-mcp-mirror"
      ]
    }
  }
}

FAQ

Can I execute any command?

No, only whitelisted commands can be executed unless 'all' is specified in the configuration.

What happens if I try to execute a disallowed command?

The server will return a security violation error.

Is there a limit on command execution time?

Yes, you can set a command execution timeout in the configuration.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1146,"uuid":"17fc2687-abf9-4e82-ba5c-8b6f7ae40252","name":"plurigrid_juvix-mcp-server","title":"CLI MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:35:03.667Z","updated_at":"2025-02-23T07:20:07.852Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"cli,mcp,server,command-line,security","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/plurigrid_juvix-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/6581c31c16c1b13ddc2efb92e2ad69a93ddc4a92fd871ff15d401c4c6c9155a4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]