Back to Browse

Imali Commander MCP Server

FinanceModerate5.4MCP RegistryLocal
Free

Server data from the Official MCP Registry

Safe, scoped folder access for AI assistants: one folder, no shell, audit log, read-only mode.

About

Safe, scoped folder access for AI assistants: one folder, no shell, audit log, read-only mode.

Security Report

5.4
Moderate5.4Moderate Risk

IMALI Commander is a self-hosted MCP server that confines AI assistant access to a single workspace folder, with path guards against symlink and traversal escapes, hashed bearer tokens with brute-force lockout, and no shell access beyond a fixed command whitelist. The only network traffic is optional license validation for Pro, which is documented; the audited code shows no data exfiltration, and the Finance category permissions (network_http, env_vars) match expected usage. Minor items remain: the tools.js source is truncated so the remaining tool handlers (including run_workspace_command) could not be fully verified, and the token is accepted as a plaintext env var. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.

8 files analyzed · 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

system_info

Check that this permission is expected for this type of plugin.

filesystem_workspace_scoped

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

workspaceOptional

Environment variable: IMALI_WORKSPACE

IMALI_TRANSPORTOptional
IMALI_MCP_TOKENOptional
tokenSha256Optional

Environment variable: IMALI_MCP_TOKEN_SHA256

readOnlyOptional

Environment variable: IMALI_READ_ONLY

allowRemoteOptional

Environment variable: IMALI_ALLOW_REMOTE

trustProxyOptional

Environment variable: IMALI_TRUST_PROXY

maxSessionsOptional

Environment variable: IMALI_MAX_SESSIONS

auditLogOptional

Environment variable: IMALI_AUDIT_LOG

licenseOptional

Environment variable: IMALI_LICENSE_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "imali-commander": {
      "command": "npx",
      "args": [
        "-y",
        "imali-commander@1.2.2"
      ],
      "env": {
        "IMALI_AUDIT_LOG": "your-imali-audit-log-here",
        "IMALI_MCP_TOKEN": "your-imali-mcp-token-here",
        "IMALI_READ_ONLY": "your-imali-read-only-here",
        "IMALI_TRANSPORT": "your-imali-transport-here",
        "IMALI_WORKSPACE": "your-imali-workspace-here",
        "IMALI_LICENSE_KEY": "your-imali-license-key-here",
        "IMALI_TRUST_PROXY": "your-imali-trust-proxy-here",
        "IMALI_ALLOW_REMOTE": "your-imali-allow-remote-here",
        "IMALI_MAX_SESSIONS": "your-imali-max-sessions-here",
        "IMALI_MCP_TOKEN_SHA256": "your-imali-mcp-token-sha256-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

IMALI Commander

IMALI-DEFI/imali-commander MCP server

M8ven Verified

Give AI assistants (Claude Desktop, ChatGPT and any MCP client) safe access to one folder on your computer or server: read, write, upload, download, search, and check git status. Nothing outside that folder, no shell.

  • Scoped to a single workspace folder; symlink and ../ escapes are blocked
  • Works locally over stdio, or remotely over authenticated HTTPS
  • Read-only mode for "look but don't touch"
  • Audit log of every action (never file contents or tokens)
  • Token stored only as a hash; brute-force lockout
  • One command to run as a background service on macOS or Linux

Free and Pro

FreePro
All 10 tools, read-only mode, audit log✔✔
Claude Desktop and other local clients (stdio)✔✔
Local HTTP (127.0.0.1)✔✔
Remote HTTPS access (ChatGPT, web assistants, other machines)✔
Multiple workspaces (imali-commander workspace add)✔
Priority email support✔
Price$0$9/month or $79/year

Activate Pro with imali-commander activate <license-key>, then restart. The license is checked at most once a day; if you're offline, Pro keeps working for 7 days from the last successful check. Free never contacts the internet.

Use it as a plugin or extension

  • Claude Code: /plugin marketplace add IMALI-DEFI/imali-commander, then /plugin install imali-commander@imali-defi. The plugin lives in plugin/.
  • Gemini CLI: gemini extensions install https://github.com/IMALI-DEFI/imali-commander. It asks for the approved folder and read-only mode.

Install

Requires Node.js 20+.

npm install -g imali-commander
imali-commander init --workspace ~/imali-workspace

init prints your access token once plus a ready-to-paste client config.

Connect a desktop client (stdio)

Paste the JSON that init printed into your client's MCP config, e.g. Claude Desktop → Settings → Developer → Edit Config, then restart the client. Without a global install you can also run it through npx:

{
  "mcpServers": {
    "imali-commander": { "command": "npx", "args": ["-y", "imali-commander", "start"] }
  }
}

The config init prints looks like:

{
  "mcpServers": {
    "imali-commander": { "command": "/usr/local/bin/node", "args": ["/…/imali-commander/src/server.js"] }
  }
}

Run over HTTP

imali-commander start --http                 # foreground, http://127.0.0.1:8787/mcp
imali-commander service install --load       # background service that starts at login

Clients send Authorization: Bearer <token>. Commander only listens on localhost; for access from other machines put it behind HTTPS (next section).

Remote access over HTTPS

Remote access is a Pro feature.

Docker (recommended): Commander plus Caddy with automatic Let's Encrypt certificates.

cp deploy/.env.example deploy/.env     # set DOMAIN, IMALI_MCP_TOKEN_SHA256 and IMALI_LICENSE_KEY
docker compose -f deploy/docker-compose.yml --env-file deploy/.env up -d

Endpoint: https://<DOMAIN>/mcp. Only /mcp and /health are exposed.

Without Docker: run Commander as a service, set "trustProxy": true in the config, and use deploy/Caddyfile.host with Caddy on the same machine.

Commands

CommandWhat it does
init [--workspace <dir>] [--port <n>] [--read-only] [--force]Set up, print token and client config
start [--http] [--workspace <dir>] [--port <n>] [--read-only]Run the server (stdio by default)
statusShow settings and whether it's running
doctorCheck Node, permissions, workspace, port, token
rotate-tokenNew token (restart to apply)
activate <key> / deactivateTurn Pro on, or free this machine's seat
license [--check]Show edition; --check re-validates now
workspace list | add <name> <dir> | remove <name>Extra workspaces (Pro); tools then take an optional workspace argument
service install [--load] | restart | uninstallBackground service (launchd / systemd)

Tools

device_info, list_files, read_file, write_file, download_file, upload_file, create_directory, file_info, search_files, run_workspace_command (pwd, ls, git-status, git-diff, git-log only). Read-only mode removes write_file, upload_file and create_directory.

Limits: text files 1 MB, transfers 5 MB, HTTP body 8 MB, commands 5 s / 32 KB output.

Configuration

~/.imali-commander/config.json (created by init, mode 600). Environment variables override it; change the config folder with IMALI_HOME.

Env varConfig keyDefault
IMALI_WORKSPACEworkspace~/imali-workspace
IMALI_TRANSPORT—stdio (http for HTTP)
IMALI_HOST / IMALI_PORThost / port127.0.0.1 / 8787
IMALI_MCP_TOKEN—plaintext token (32+ chars), overrides the hash
IMALI_MCP_TOKEN_SHA256tokenSha256set by init
IMALI_READ_ONLYreadOnlyfalse
IMALI_ALLOW_REMOTEallowRemotefalse; only behind an HTTPS proxy
IMALI_TRUST_PROXYtrustProxyfalse; true behind a reverse proxy
IMALI_MAX_SESSIONSmaxSessions16
IMALI_AUDIT_LOGauditLog~/.imali-commander/logs/audit.log (off disables)
IMALI_LICENSE_KEYlicensePro key; activates on first start (for containers)
—workspacesextra workspaces, set with imali-commander workspace add

Troubleshooting

  • Client shows no tools: run imali-commander doctor, then restart the client.
  • 401 Unauthorized: wrong token. Run imali-commander rotate-token, then service restart.
  • 429 Too many requests: 10 bad tokens within a minute locks that address out for the rest of the minute.
  • Service logs: ~/.imali-commander/logs/service.log.

See SECURITY.md for the security model and CHANGELOG.md for releases.

Reviews

No reviews yet

Be the first to review this server!