apple-intune-baseline: From mSCP Baseline to Intune Policy - Just Ask

· SS Mac Admin

TL;DR

apple-intune-baseline is an open-source MCP server that turns mSCP baselines - CIS, NIST 800-53, NIST 800-171, CMMC, DISA STIG and the rest - into Microsoft Intune configuration for macOS and iOS/iPadOS. Profiles, compliance, remediation scripts and inventory, generated locally, reviewed by you, pushed when you say so. v0.1.0 is out now on GitHub, MIT licensed.

Why I built this

If you've ever tried to land a CIS or NIST baseline for Macs in Intune, you know the drill. mSCP gives you an excellent, authoritative source of truth - rules, checks, fixes, ODVs - but getting from that YAML to something Intune actually understands is a lot of manual translation. Which rules map to the Settings Catalog? Which ones need a custom profile? Which ones can't be enforced by a profile at all? And what's already configured in the tenant so you don't end up with three policies fighting over the same setting? And I've read guides thick as the IKEA catalog only to get zoned out after the first paragraph.

I've done that translation by hand more times than I'd like to admit - for customers, for my lab, for talks. So I wanted a tool that does the boring mapping work, stays honest to mSCP, and lets me talk to it: "what does this rule do?", "what's already covered in this tenant?", "build me CIS Level 1 without the Bluetooth rules".

That's what an MCP server is great at. You get the conversational layer from your assistant of choice, and the server does the deterministic, auditable work underneath.

What it does

Every baseline is split into four parts. Each part is generated as local files first and pushed separately - nothing goes to the tenant in one big bang.

On top of that:

Supported baselines and platforms

Everything mSCP ships, for macOS 26.0 and 27.0 and iOS/iPadOS 26.0 and 27.0. I deliberately kept it to current versions - if you're still baselining older OS versions, that's a different conversation.

Staying close to mSCP

This was a hard rule for me. Rules, baselines and ODVs come from mSCP's own Python code, pinned to a specific mSCP release. The server doesn't reinvent the rule logic - it translates it. When mSCP updates, the server follows.

Safety first - because it touches your tenant

A tool that can write security configuration to production deserves some guardrails. Here's how it behaves:

Under the hood

It's a local stdio MCP server that runs on your Mac. No hosted service, no dependency on other MCP servers at runtime.

For Graph access, setup signs in once with Microsoft Graph PowerShell's public client, then creates a single-tenant app registration with delegated permissions and admin consent. Those setup tokens live in memory only. After that, sign-in tokens are stored in the macOS Keychain, and tenants.json only holds the tenant ID, client ID, default domain and permission set - no secrets.

There are two permission sets:

The tools

There are also mscp://baseline/... and mscp://rule/... resources, and a review_baseline prompt.

Getting started

You'll need:

Claude Code:

claude mcp add apple-intune-baseline -- uvx --from git+https://github.com/SSMacAdmin/[email protected] apple-intune-baseline

Claude Desktop: add this to ~/Library/Application Support/Claude/claude_desktop_config.json, then restart Claude Desktop. Use the full path from which uvx, since Claude Desktop doesn't see your shell's PATH.

{
"mcpServers": {
"apple-intune-baseline": {
"command": "/opt/homebrew/bin/uvx",
"args": ["--from", "git+https://github.com/SSMacAdmin/[email protected]", "apple-intune-baseline"]
}
}
}

Other MCP clients: run the same uvx command as a stdio server.

Updating is just changing the release tag and restarting - your workspace in ~/.apple-intune-baseline stays put.

A first session

Once it's connected, try something like:

  1. "Set up and connect my tenant."
  2. "List the available baselines."
  3. "Check what CIS Level 1 for macOS 26 already covers in my tenant."
  4. "Generate the profiles and compliance for it."
  5. "Push the policies." - review the plan, confirm.
  6. A few check-ins later: "Show me the device results."

Known limitations (v0.1.0)

It's a first release, there's things I want to add and some things to iron out:

What's next

If you try it, I'd love to hear how it goes. And a big thank you to the mSCP team; none of this works without the work they put in.

apple-intune-baseline is not affiliated with or endorsed by NIST, Apple or Microsoft. mSCP is a NIST project and is installed under its own terms.

Happy labbin' and take care!