Is Yarr MCP safe?
What Yarr MCP does
yarr is an MCP server and CLI that lets an AI agent query and control a self-hosted media stack from one place. It covers Sonarr, Radarr, Prowlarr, Bazarr, Tautulli, Overseerr, SABnzbd, qBittorrent, Plex, Jellyfin and Tracearr, calling each service's API with credentials from environment variables or config files, never from tool arguments. It is a Rust binary, installed by a script into ~/.local/bin or through the @dinglebear/yarr npm launcher, which declares a postinstall script. A Code Mode lets an agent run multi-step automation scripts. Before installing, pin an exact version in your MCP config, as the README advises, and give it API keys only for the services you want an agent to control.
- Node.js shell/command execution
- npm install-time lifecycle hook
- Node.js filesystem read
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
Yarr MCP is an MCP server analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem read, filesystem write, install time execution, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
@dinglebear/ yarr 2.2.2
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of Yarr MCP's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (6)
package.json runs scripts automatically when the package is installed.
"postinstall": "node scripts/install.js",
Why it matters: Install scripts are a favorite supply-chain foothold — they execute on every machine that installs the package.
Fix: Inspect the hook command. Install-time scripts are a common supply chain execution vector; ensure they do nothing beyond a documented build step.
The component can run operating-system commands or spawn processes.
const { spawn } = require("node:child_process");const child = spawn(process.execPath, [installer], { stdio: "inherit" });const child = spawn(binary, process.argv.slice(2), { stdio: "inherit", windowsHide: false });const { spawnSync } = require("node:child_process");const result = spawnSync(command, args, {const result = spawnSync(process.execPath, [binPath, "--package-smoke"], {const { spawnSync } = require("node:child_process");const result = spawnSync("tar", args, { encoding: "utf8" });const result = spawnSync(destination, ["--version"], { encoding: "utf8", timeout: 10_000 });Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.
The component reads files from disk.
return JSON.parse(fs.readFileSync(file, "utf8"));
return fs.readFileSync(left).equals(fs.readFileSync(right));
const text = fs.readFileSync(path.join(packageRoot, relative), "utf8");
const text = fs.readFileSync(installer, "utf8");
Buffer.from(tarExtract(tarball, "package/README.md")).equals(fs.readFileSync(path.join(repoRoot, "README.md"))),
Buffer.from(tarExtract(tarball, `package/${license}`)).equals(fs.readFileSync(path.join(repoRoot, license))),hash.update(Buffer.isBuffer(input) ? input : fs.readFileSync(input));
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component writes or deletes files on disk.
fs.rmSync(partial, { force: true });fs.writeFileSync(partial, body, { mode: 0o600 });fs.rmSync(partial, { force: true });fs.rmSync(destination, { force: true });fs.writeFileSync(
fs.rmSync(tempDir, { recursive: true, force: true });fs.rmSync(destination, { force: true });fs.rmSync(staging, { recursive: true, force: true });fs.rmSync(destination, { force: true });fs.writeFileSync(path.join(root, ".yarr-install.json"), `${JSON.stringify({fs.rmSync(tempDir, { recursive: true, force: true });fs.unlinkSync(packageReadme);
fs.unlinkSync(destination);
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
package.json has a 'prepare' script (runs on git/local installs and before publishing).
"prepack": "node scripts/sync-readme.js && node scripts/sync-targets.js",
Why it matters: Usually a build step, but confirm it doesn't fetch or run remote code.
Fix: Usually a legitimate build step; confirm it only builds and does not fetch or execute remote code.
The component makes outbound network requests.
const http = require("node:http");const https = require("node:https");const https = require("node:https");const request = https.request(url, { method: "HEAD" }, (response) => {const request = https.request(
Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in Yarr MCP.
Maintain Yarr MCP?
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →