Skip to main content
Glama
miradore-mcp
by ajthom90

miradore-mcp

An MCP server that connects Claude (or any MCP client) to Miradore Online mobile device management.

Ask things like:

  • "Which devices haven't checked in this week?"

  • "Give me a health summary of the fleet."

  • "What apps and profiles are on Jim's iPad?"

  • "I just added serial C02XXXXXXXX to Apple Business Manager for jim@example.com. Sync it, pre-assign it to Jim, and tell me when it enrolls and whether it got its apps."

It uses both of Miradore's APIs: API v1 for rich device inventory and queries, and API v2 for actions like syncing from Apple, deploying apps and remote commands.

Not affiliated with or endorsed by Miradore Ltd.

Requirements

  • Node.js 20 or newer

  • A Miradore Online plan that includes API access (the Free plan does not)

  • A Miradore API key: in the Miradore console go to System > Infrastructure diagram, hover the API icon and choose Create key. Create a dedicated key for this server so you can revoke it independently.

Related MCP server: fortigate-mcp

Setup

You need two values:

Variable

What it is

MIRADORE_SITE

Your site name: the your-site part of https://online.miradore.com/your-site/

MIRADORE_API_KEY

The API key you created

Claude Code

claude mcp add miradore \
  -e MIRADORE_SITE=your-site \
  -e MIRADORE_API_KEY=your-key \
  -- npx -y github:ajthom90/miradore-mcp

Claude Desktop

Add this to claude_desktop_config.json (Settings > Developer > Edit Config):

{
  "mcpServers": {
    "miradore": {
      "command": "npx",
      "args": ["-y", "github:ajthom90/miradore-mcp"],
      "env": {
        "MIRADORE_SITE": "your-site",
        "MIRADORE_API_KEY": "your-key"
      }
    }
  }
}

From a local clone

git clone https://github.com/ajthom90/miradore-mcp.git
cd miradore-mcp
npm install        # also builds dist/

Then point your client at node /path/to/miradore-mcp/dist/index.js with the same environment variables.

Safety modes

Variable

Default

Effect

MIRADORE_READ_ONLY

false

true exposes only read-only tools. Recommended for monitoring-only use.

MIRADORE_ALLOW_DESTRUCTIVE

false

true adds lock, reboot, Lost Mode, wipe, retire and delete-user tools. Each one also requires confirm: true on every call.

Every tool carries MCP annotations (readOnlyHint / destructiveHint), so clients like Claude Code can ask before running anything that changes Miradore.

Tools

Monitoring (read-only)

Tool

Purpose

list_devices

Filter devices by platform, status, tag, user, name, model, serial, or days since last check-in

get_device

Full details for one device, plus optional apps, installed profiles, deployed config profiles, security, storage, pending OS updates, hardware, management, and custom attributes

device_health_summary

Fleet overview: counts, OS versions, and devices that are stale, unassigned, without a passcode, or unencrypted

list_enrollments

Recent enrollments, including Apple Automated Device Enrollment (DEP)

list_users, get_user_device_identifiers

Users, and serials pre-assigned to them

list_tags, list_config_profiles, list_custom_attributes

Lookups for IDs used by the setup tools

get_application

An app and its deployment methods

get_device_locations, list_suspended_devices

Location history and suspended devices

query_miradore

Advanced: any API v1 read with your own select / filters / orderby

Setup and changes (hidden when MIRADORE_READ_ONLY=true)

sync_apple_dep_devices, assign_device_identifiers_to_user, remove_device_identifier_from_user, add_device_tag, remove_device_tag, deploy_config_profile, remove_config_profile, deploy_application, update_device, set_device_custom_attribute, create_user, update_user, add_user_tags, remove_user_tag, activate_device

Destructive (only when MIRADORE_ALLOW_DESTRUCTIVE=true)

lock_device, reboot_device, enable_lost_mode, disable_lost_mode, wipe_device, retire_device, delete_user

What the Miradore API can't do

The API cannot list Apple Business Manager devices that haven't enrolled yet, assign an Automated Device Enrollment profile, or manage business policies. Do those in the Miradore console. A typical new-Apple-device flow:

  1. Add the device to Apple Business Manager (e.g. with Apple Configurator) and assign the enrollment profile in Miradore.

  2. Ask Claude to sync_apple_dep_devices and assign_device_identifiers_to_user with the serial.

  3. Power the device on. Claude can watch list_enrollments / list_devices and then check its apps and profiles with get_device.

Privacy and security

  • The API key is read from environment variables only. It is never logged, and is scrubbed from every error message. API v1 sends the key in the URL query string, so URLs echoed by network errors are redacted too.

  • Only https:// base URLs are accepted.

  • Device and user data returned by the tools goes to the AI model you're using, the same as anything else you show it. Use MIRADORE_READ_ONLY and a dedicated, revocable key if that's a concern.

  • Your MCP client stores the environment variables in its config file (e.g. ~/.claude.json or claude_desktop_config.json). Keep that file private.

Checking it against your account

To confirm every read tool works with your Miradore site:

cp .env.example .env      # fill in your values; .env is git-ignored
npm run live-check

The script runs only read-only tools. It prints pass/fail, counts and field names, never values, so the output is safe to share in a bug report.

Development

npm install
npm test           # unit tests with mocked Miradore responses
npm run typecheck
npm run build

Test fixtures use only invented data. Please never commit real site names, keys, serial numbers or user details.

API references: API v1 specification and the API v2 Swagger.

License

MIT

Available Tools

28 tools
activate_deviceReactivate retired deviceB
Idempotent

Reactivate a device that was previously retired in Miradore.

Inputs: device_id (required).

add_device_tagAdd tag to deviceA
Idempotent

Add a tag to a device. Tags group devices and can trigger business policies that install apps and profiles.

Inputs: tag (required), device_id (required).

add_user_tagsAdd tags to userC
Idempotent

Assign one or more tags to a user.

Inputs: tags (required), email (required).

assign_device_identifiers_to_userPre-assign devices to a userA
Idempotent

Pre-assign one or more device identifiers (serial numbers, IMEIs, etc.) to a user, so when those devices enroll they are linked to the user automatically. Use this before powering on a new device.

Inputs: email (required), identifiers (required).

create_userCreate userC

Create a Miradore user that devices can be assigned to.

Inputs: email (required), last_name (required), first_name (required), middle_name, +1 more.

deploy_applicationDeploy applicationA

Deploy an application to a device using one of the app's deployment methods. Look the app up with get_application to find its deployment method ID.

Inputs: device_id (required), deployment_method_id (required), managed_configuration_id.

deploy_config_profileDeploy configuration profileB

Deploy a configuration profile (from list_config_profiles) to a device.

Inputs: device_id (required), profile_id (required).

device_health_summaryDevice fleet health summaryA
Read-only

Summarise the whole fleet in one call: device counts by platform, online status and lifecycle status; OS versions in use; and lists of devices needing attention (not checked in for stale_days or more, no assigned user, passcode not set, encryption not enabled). Good for a daily check-in or 'is anything wrong?'.

Inputs: max_listed, stale_days.

get_applicationGet applicationA
Read-only

Get an application from the Miradore application catalog by its ID, including its deployment methods (needed for deploy_application). App IDs are visible in the Miradore console URL on the application's page.

Inputs: id (required).

get_deviceGet device detailsA
Read-only

Get one device by its Miradore device ID, with optional detail sections: apps (installed apps), installed_profiles (profiles on an Apple device), deployed_config_profiles (profiles Miradore deployed and their status), security, storage, os_updates (pending Apple updates), hardware, management (client/enrollment info), custom_attributes.

Inputs: id (required), include.

get_device_locationsGet device location historyB
Read-only

Get reported locations for a device (only if location tracking is enabled for it). Dates are optional.

Inputs: id (required), end_date, time_zone, start_date.

get_user_device_identifiersGet a user's pre-assigned device identifiersA
Read-only

List device identifiers (serial numbers, IMEIs, etc.) pre-assigned to a user, so devices are linked to them automatically when they enroll.

Inputs: email (required).

list_config_profilesList configuration profilesA
Read-only

List configuration profiles defined in Miradore (Wi-Fi, restrictions, email, etc.) with their IDs, for use with deploy_config_profile.

Inputs: os, include_deleted.

list_custom_attributesList custom attribute definitionsA
Read-only

List custom attributes configured in Miradore (IDs and names), for use with set_device_custom_attribute.

Inputs: no named parameters.

list_devicesList devicesA
Read-only

List managed devices in Miradore with optional filters. Returns a compact summary per device (id, name, model, serial, platform, OS version, online status, last check-in, user, tags, enrollment type). Retired devices are excluded unless include_retired or status is given. Use get_device for full details on one device.

Inputs: tag, page, rows, filter, +9 more.

list_enrollmentsList enrollmentsB
Read-only

List recent device enrollments, newest first. Use type 'DEP' for Apple Automated Device Enrollment. Helpful for confirming that a newly set-up device enrolled.

Inputs: page, rows, type, user_email.

list_suspended_devicesList suspended devicesB
Read-only

List devices that are suspended in Miradore.

Inputs: no named parameters.

list_tagsList tagsA
Read-only

List all tags defined in Miradore. Tags group devices and can drive business policies.

Inputs: no named parameters.

list_usersList usersA
Read-only

List Miradore users (people devices can be assigned to), optionally filtered by email or name.

Inputs: page, rows, email, name_contains.

query_miradoreAdvanced Miradore queryA
Read-only

Advanced read-only query against Miradore API v1 for anything the other tools don't cover (e.g. Category, Organization, Location, InvCertificate, ConfigProfileDeployment). 'select' lists attributes using dotted paths (e.g. 'InvDevice.Model', 'User.Email'); 'filters' uses operators eq, ne, gt, ge, lt, le, contains, notcontains, startswith, endswith, isempty, notisempty joined with and/or, quoting values with spaces. 'orderby' fields must also be selected. See the Miradore API v1 specification for attribute names.

Inputs: item (required), id, page, rows, +3 more.

remove_config_profileRemove configuration profileA
Idempotent

Remove a configuration profile that Miradore deployed from a device.

Inputs: device_id (required), profile_id (required).

remove_device_identifier_from_userRemove a pre-assigned device from a userB
Idempotent

Remove a pre-assigned device identifier (e.g. serial number) from a user.

Inputs: email (required), identifier (required).

remove_device_tagRemove tag from deviceC
Idempotent

Remove a tag from a device.

Inputs: tag (required), device_id (required).

remove_user_tagRemove tag from userC
Idempotent

Remove a tag from a user.

Inputs: tag (required), email (required).

set_device_custom_attributeSet device custom attributeA
Idempotent

Set a custom attribute value on a device. Find attribute IDs with list_custom_attributes.

Inputs: value (required), device_id (required), attribute_id (required).

sync_apple_dep_devicesSync devices from Apple Business ManagerA
Idempotent

Ask Miradore to pull the latest device list from Apple Business/School Manager (Automated Device Enrollment / DEP) now instead of waiting for the scheduled sync. Rate limited by Miradore to once per minute. Note: assigning an enrollment profile to the synced devices must still be done in the Miradore console.

Inputs: update_all.

update_deviceUpdate device detailsA
Idempotent

Update a device's assigned user, friendly name, ownership or category. Only the fields you give are changed. Use add_device_tag / remove_device_tag for tags.

Inputs: device_id (required), category, ownership, user_email, +3 more.

update_userUpdate userA
Idempotent

Update an existing Miradore user's name or phone number (looked up by email; email itself can't be changed).

Inputs: email (required), last_name, first_name, middle_name, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools target a distinct resource+action (devices, users, tags, config profiles, apps, enrollments, DEP), and descriptions explicitly cross-reference each other (e.g. list_custom_attributes -> set_device_custom_attribute). A few boundaries blur: list_suspended_devices is largely a filtered list_devices, device_health_summary overlaps with list_devices filters, get_device_locations duplicates a get_device detail area, and query_miradore is a catch-all that could tempt an agent away from the specific read tools. These are minor and the descriptions steer correctly.

    Naming Consistency4/5

    The dominant pattern is consistent snake_case verb_noun (list_devices, get_device, add_device_tag, deploy_application, update_user), which is easy to predict. Deviations are minor but present: device_health_summary is noun-first with no verb, query_miradore uses a domain suffix rather than a resource noun, and tag verbs are inconsistently pluralized (add_user_tags vs remove_user_tag).

    Tool Count3/5

    At 28 tools the surface sits above the comfortable band, though the domain is genuinely broad (devices, users, tags, config profiles, applications, enrollments, DEP sync) and no two tools are redundant. The count is defensible but heavy: several list_* reads could be consolidated as filters on a single listing tool.

    Completeness3/5

    Core MDM workflows are covered, but the lifecycle is asymmetric: activate_device exists to un-retire devices while no retire_device is offered, deploy_application and deploy_config_profile have removal counterparts only for profiles (no app removal), tags can be listed and attached but never created or deleted, and there is no list_applications (get_application requires an ID from the console URL). Users can be created and updated but not deleted or deleted-from-device.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects Claude to Zoho CRM with read-only access, enabling natural language queries to search records, list modules, retrieve field information, and count records using OAuth authentication.
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects Claude to Meta Ads, enabling full management of ad accounts including campaigns, creatives, budgets, and reporting. Handles authentication, token minting, and MCP server registration automatically.
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Connects Claude Desktop to a Qlik Cloud tenant for admin operations, allowing users to manage resources like spaces, apps, and automations via natural language.
      6
      -