Is Azure MCP Server safe?
What Azure MCP Server does
Azure MCP Server collects Azure MCP tools in a single server so AI agents can query and manage Azure services. The npm author field lists Microsoft, with source in the microsoft/mcp repository. It signs in through the Azure Identity SDK (for example after az login) and acts with your Azure RBAC permissions; the npm package runs a postinstall script, and telemetry is on by default. Before installing, apply least-privilege RBAC roles as the README advises, since it warns that misconfigured clients may perform destructive actions, and decide whether to turn telemetry off.
- Possible command injection (exec with dynamic command)
- Node.js shell/command execution
- npm install-time lifecycle hook
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
Azure MCP Server is an MCP server analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 1 risky construct is reported for review. It can: filesystem read, filesystem write, install time execution and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 20/100 (low).
@azure/ mcp 4.0.0-beta.7
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 Azure MCP Server'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 (5)
The code builds an OS command out of values that can change at runtime, then runs it through a shell.
execSync(`${installCommand} --prefer-online`, installOptions)Why it matters: If any of those values come from untrusted input, an attacker can run their own commands on the machine.
Fix: Use execFile/spawn with an argument array instead of exec; never build a shell command string from external input.
package.json runs scripts automatically when the package is installed.
"postinstall": "node ./scripts/post-install-script.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 { execSync } = require('child_process')execSync(installCommand, installOptions)
execSync(`${installCommand} --prefer-online`, installOptions)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.
const pid = Number(fs.readFileSync(lockPath, 'utf8'))
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.writeFileSync(lockPath, String(process.pid), { flag: 'wx' })fs.rmSync(lockPath, { force: true })fs.rmSync(lockPath, { force: true })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.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in Azure MCP Server.
Maintain Azure MCP Server?
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 →