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.
- Profiles - Settings Catalog policies, one per mSCP section, DDM included. Custom profiles are only used where the catalog genuinely can't express a rule.
- Compliance - one policy per section. On macOS, every rule gets a custom compliance check built from mSCP's own check logic, so you're not stuck with the handful of settings native compliance offers. Yes, all of them, no hand-written scripts and JSON required. On iOS/iPadOS it uses the built-in compliance settings.
- Remediation (macOS) - shell scripts for the rules no policy can enforce.
- Inventory (macOS) - custom attributes that report each rule's raw value per Mac. Handy when you want data for a CMDB without a compliance verdict attached.
On top of that:
- Tenant coverage check - before generating, it looks at what's already configured in your tenant so you don't create duplicates.
- Results reporting - per-device results are read back into an interactive dashboard, plus PDF and CSV exports. Because "we deployed the baseline" and "the baseline is actually applied" are two very different statements.
- Tailoring - make your own copy of a baseline: exclude rules, add rules, change organization-defined values.
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:
- Generating only writes local files. You can review everything before anything leaves your Mac.
- Pushing shows a plan first and only creates objects after you confirm.
- Policies are created unassigned. You decide who gets what, and when.
- Nothing is ever deleted.
- Read-only by default. Write access is an explicit opt-in.
- Risky settings are flagged - anything affecting sign-in, or payloads that need extra setup. Test on a recoverable device. Seriously.
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:
readOnly(default) - read scopes for configuration, groups, scripts and managed devices. Enough for exploring and generating.full- adds write scopes for configuration and scripts. Needed to push.
The tools
- Explore:
workspace_status,list_baselines,list_rules,explain_rule,baseline_overview,name_prefixes - Tenants and sign-in:
setup_app_registration,add_tenant,use_tenant,list_tenants,sign_in,sign_out,check_connection,check_tenant_coverage - Tailor, generate and push:
tailor_baseline,generate_policies/push_policies,generate_compliance/push_compliance,generate_remediation/push_remediation,generate_inventory/push_inventory - Results:
device_results,inventory_results
There are also mscp://baseline/... and mscp://rule/... resources, and a review_baseline prompt.
Getting started
You'll need:
- A Mac (Keychain is used for tokens)
- uv -
brew install uv. It pulls Python 3.12+, the server and the pinned mSCP release. First start takes about a minute. - An Intune tenant. A read-only connection to any tenant - a Microsoft 365 developer tenant works fine - is enough to generate.
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:
- "Set up and connect my tenant."
- "List the available baselines."
- "Check what CIS Level 1 for macOS 26 already covers in my tenant."
- "Generate the profiles and compliance for it."
- "Push the policies." - review the plan, confirm.
- 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:
- Generating requires a tenant connection.
- A
confirm=truecall runs the current plan - it doesn't verify it's identical to the plan you reviewed. Don't change things between reviewing and confirming. - The server runs on macOS only.
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!