Clash Control MCP Server

clash-control-mcp npm v1.0.0-rc.1

Published by huaqing0 — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.

Adapter-backed, transaction-safe MCP control for Clash Verge Rev / Mihomo | Adapter 强绑定的安全事务化控制服务

Trust grade
B
83/100
Last scanned get badge →
Trust
B · 83/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
Critical
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
B Why this grade threat 94 − adoption risk = 83/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 6.3 = 94. What the published surface and source actually contain:

PointsWhat was foundCategory
−6.3 Untrusted input concatenated into a command sink MTC-SRC-009 injection

2. Client adoption risk — 94 − 11 = 83. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−10 capability blast radius (critical) — client exposure if the model is manipulated
−1 publisher verification (public source) — no provenance, but the source is public and inspectable

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 11

high Shell/command execution in server code (dist/health-check.js)MTC-SRC-002

In the server's implementation (`dist/health-check.js:29`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { execFile } from 'node:child_process'; import { connect } from 'node:net'; import { platform } from 'node:os'; import *

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/health-check.js

high Shell/command execution in server code (dist/optimizer/baseline.js)MTC-SRC-002

In the server's implementation (`dist/optimizer/baseline.js:10`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ecFileSync } from 'node:child_process'; import { platform } from 'node:os'; import { createHash } from 'node:crypto'; im

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/optimizer/baseline.js

high Shell/command execution in server code (dist/system-verifiers.js)MTC-SRC-002

In the server's implementation (`dist/system-verifiers.js:14`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { execFile } from 'node:child_process'; import { platform } from 'node:os'; import { createConnection } from 'node:net';

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/system-verifiers.js

high Shell/command execution in server code (dist/tools/doctor.js)MTC-SRC-002

In the server's implementation (`dist/tools/doctor.js:6`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { execSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import { redactValue } from '../redaction.

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/tools/doctor.js

high Shell/command execution in server code (dist/verge-detector.js)MTC-SRC-002

In the server's implementation (`dist/verge-detector.js:16`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { execSync } from 'node:child_process'; import { dirname, isAbsolute, join, relative, resolve } from 'node:path'; import

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/verge-detector.js

medium Untrusted input concatenated into a command sink (dist/verge-detector.js)MTC-SRC-009

In the server's implementation (`dist/verge-detector.js:76`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { appVersion = execSync(`defaults read "${join(macAppPath, 'Contents/Info.plist')}" CFBundleShortVersionString`

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/verge-detector.js

low Shell/command execution in packaging/dev tooling (scripts/adapter-app-transaction.mjs)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/adapter-app-transaction.mjs:9`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { execFile } from 'node:child_process'; import { constants as fsConstants } from 'node:fs'; import { isIP } from 'node:n

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server scripts/adapter-app-transaction.mjs

low Shell/command execution in packaging/dev tooling (scripts/adapter-cli.mjs)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/adapter-cli.mjs:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: spawnSync } from 'node:child_process'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:u

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server scripts/adapter-cli.mjs

low Shell/command execution in packaging/dev tooling (scripts/adapter-install-lib.mjs)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/adapter-install-lib.mjs:26`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ile, spawn } from 'node:child_process'; import { fileURLToPath } from 'node:url'; import { inspectAdapterApp, stageA

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server scripts/adapter-install-lib.mjs

low Shell/command execution in packaging/dev tooling (scripts/adapter-patch-lib.mjs)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/adapter-patch-lib.mjs:12`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { execFile } from 'node:child_process'; import { dirname, join, relative, resolve, sep } from 'node:path'; import { ha

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server scripts/adapter-patch-lib.mjs

low Shell/command execution in packaging/dev tooling (scripts/install-adapter-patch.mjs)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/install-adapter-patch.mjs:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: rt { spawn } from 'node:child_process'; import { rm } from 'node:fs/promises'; import { dirname, join } from 'node:path'

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server scripts/install-adapter-patch.mjs

Tools 66

Each tool and what it can reach — statically extracted from the published source.

  • clash.optimize.githubingests untrusted inputreads sensitive data
  • clash.capabilitiesreads sensitive data
  • clash.config.apply_transactionno sensitive capability
  • clash.config.auditno sensitive capability
  • clash.config.create_workspaceno sensitive capability
  • clash.config.get_effectiveno sensitive capability
  • clash.config.get_generatedno sensitive capability
  • clash.config.get_persistentno sensitive capability
  • clash.config.preview_changeno sensitive capability
  • clash.config.rollbackno sensitive capability
Show 56 more tools ↓
  • clash.config.validate_changeno sensitive capability
  • clash.doctorno sensitive capability
  • clash.merge.inspectno sensitive capability
  • clash.merge.updateno sensitive capability
  • clash.optimize.compare_probesno sensitive capability
  • clash.optimize.diagnose_networkno sensitive capability
  • clash.optimize.dnsno sensitive capability
  • clash.optimize.execution_planno sensitive capability
  • clash.optimize.health_checksno sensitive capability
  • clash.optimize.openaino sensitive capability
  • clash.optimize.proxy_groupsno sensitive capability
  • clash.optimize.rulesno sensitive capability
  • clash.optimize.streamingno sensitive capability
  • clash.optimize.verify_baselineno sensitive capability
  • clash.optimize.youtubeno sensitive capability
  • clash.override.inspectno sensitive capability
  • clash.override.updateno sensitive capability
  • clash.profiles.activateno sensitive capability
  • clash.profiles.inspectno sensitive capability
  • clash.profiles.inspect_chainno sensitive capability
  • clash.profiles.listno sensitive capability
  • clash.profiles.refreshno sensitive capability
  • clash.profiles.update_metadatano sensitive capability
  • clash.recovery.statusno sensitive capability
  • clash.rules.addno sensitive capability
  • clash.rules.inspectno sensitive capability
  • clash.rules.removeno sensitive capability
  • clash.runtime.close_connectionno sensitive capability
  • clash.runtime.get_proxy_groupno sensitive capability
  • clash.runtime.get_statusno sensitive capability
  • clash.runtime.list_connectionsno sensitive capability
  • clash.runtime.list_proxy_groupsno sensitive capability
  • clash.runtime.list_proxy_providersno sensitive capability
  • clash.runtime.list_rule_providersno sensitive capability
  • clash.runtime.refresh_proxy_providerno sensitive capability
  • clash.runtime.refresh_rule_providerno sensitive capability
  • clash.runtime.select_proxyno sensitive capability
  • clash.runtime.test_proxy_delayno sensitive capability
  • clash.transaction.resumeno sensitive capability
  • clash.verge.configure_dns_overrideno sensitive capability
  • clash.verge.configure_lan_accessno sensitive capability
  • clash.verge.configure_portsno sensitive capability
  • clash.verge.configure_tunno sensitive capability
  • clash.verge.detectno sensitive capability
  • clash.verge.get_active_profileno sensitive capability
  • clash.verge.get_directoriesno sensitive capability
  • clash.verge.get_settingsno sensitive capability
  • clash.verge.preferences.configure_hotkeysno sensitive capability
  • clash.verge.preferences.configure_layoutno sensitive capability
  • clash.verge.preferences.configure_themeno sensitive capability
  • clash.verge.preferences.inspectno sensitive capability
  • clash.verge.preferences.set_basicno sensitive capability
  • clash.verge.set_auto_close_connectionno sensitive capability
  • clash.verge.set_ipv6no sensitive capability
  • clash.verge.set_log_levelno sensitive capability
  • clash.verge.set_unified_delayno sensitive capability

What this scan could not see

Versions 1

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v1.0.0-rc.1 latest B 83/100 11 1.13.0 2026-09-05

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: B · 83/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/clash-control-mcp/badge.svg)](https://mcptrustchecker.com/registry/clash-control-mcp)
HTML
<a href="https://mcptrustchecker.com/registry/clash-control-mcp"><img src="https://mcptrustchecker.com/registry/clash-control-mcp/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/clash-control-mcp/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan clash-control-mcp --online

Use the free API → How scoring works

More in Security & Testing