Fleet MCP Server

An MCP server that provides tools for managing and monitoring your Fleet Device Management instance.

Local serverstdioGo

What is the Fleet MCP Server?

An MCP server that provides tools for managing and monitoring your Fleet Device Management instance.

What the server does

A Model Context Protocol (MCP) server that enables AI assistants to interact with Fleet Device Management for device management, security monitoring, and compliance enforcement.

  • Host Management — List, search, query, and manage hosts across your fleet
  • Live Query Execution — Run osquery queries in real-time against hosts
  • Policy Management — Create, update, and monitor compliance policies
  • Software Inventory — Track software installations and vulnerabilities across devices
  • Team & User Management — Organize hosts and users into teams
  • Osquery Table Discovery — Dynamic discovery and documentation of osquery tables

Credentials and setup notes

Before configuring any MCP client, ensure you have: 1. Install uv (recommended) or pip: 2. Fleet API Token: Generate an API token from your Fleet instance: Option 1) - Log into Fleet UI - Navigate to: My account → Get API token - Copy the token for use in configuration Option 2) - Create an API-Only user with fleetctl > Note: This API token and your fleet instance URL

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
fleet_list_hostsList hosts with filtering, pagination, and search
fleet_get_hostGet detailed information about a specific host by ID
fleet_get_host_by_identifierGet host by hostname, UUID, or hardware serial
fleet_search_hostsSearch hosts by hostname, UUID, serial number, or IP
fleet_list_host_upcoming_activitiesList upcoming activities for a specific host
fleet_list_host_past_activitiesList past activities for a specific host
fleet_get_host_mdmGet MDM information for a specific host
fleet_list_host_certificatesList certificates for a specific host
fleet_get_host_macadminsGet macadmins data (Munki, MDM profiles) for a host
fleet_get_host_device_mappingGet device mapping information for a host
fleet_get_host_encryption_keyGet disk encryption recovery key for a host
fleet_list_queriesList all saved queries with pagination
fleet_get_queryGet details of a specific saved query
fleet_get_query_reportGet the latest results from a scheduled query
fleet_list_policiesList all compliance policies
fleet_get_policy_resultsGet compliance results for a specific policy
fleet_list_softwareList software inventory across the fleet
fleet_get_softwareGet detailed information about a specific software item
fleet_get_host_softwareGet software installed on a specific host
fleet_get_vulnerabilitiesList known vulnerabilities with filtering
fleet_get_cveGet detailed information about a specific CVE
fleet_search_softwareSearch for software by name
fleet_find_software_on_hostFind specific software on a host by hostname
fleet_get_software_install_resultGet the result of a software installation request
fleet_list_software_titlesList software titles across the fleet
fleet_get_software_titleGet detailed information about a specific software title
fleet_list_teamsList all teams
fleet_get_teamGet details of a specific team
fleet_list_team_usersList all users that are members of a specific team
fleet_get_team_secretsList team-specific enroll secrets
fleet_list_usersList all users with filtering
fleet_get_userGet details of a specific user
fleet_list_user_sessionsList active sessions for a user
fleet_get_sessionGet session details by ID
fleet_list_labelsList all labels
fleet_get_labelGet detailed information about a specific label
fleet_list_packsList all query packs
fleet_get_packGet detailed information about a specific pack
fleet_list_scheduled_queriesList scheduled queries in a specific pack
fleet_list_scriptsList all scripts available in Fleet
fleet_get_scriptGet details of a specific script
fleet_get_script_resultGet the result of a script execution
fleet_list_batch_scriptsList batch script executions
fleet_get_batch_scriptGet details of a batch script execution
fleet_list_batch_script_hostsList hosts in a batch script execution
fleet_list_host_scriptsList scripts available for a specific host
fleet_list_mdm_commandsList MDM commands that have been executed
fleet_get_mdm_command_resultsGet results of MDM commands
fleet_list_mdm_profilesList MDM configuration profiles
fleet_get_host_mdm_profilesGet MDM profiles installed on a specific host
fleet_get_mdm_profiles_summaryGet summary of MDM profile deployment status
fleet_get_filevault_summaryGet FileVault encryption summary
fleet_list_mdm_devicesList all MDM-enrolled Apple devices
fleet_get_bootstrap_metadataGet metadata about a bootstrap package for a team
fleet_get_bootstrap_summaryGet aggregated summary about bootstrap package deployment
fleet_get_setup_assistantGet the MDM Apple Setup Assistant configuration
fleet_list_mdm_apple_installersList all Apple MDM installers
fleet_list_app_store_appsList App Store apps available for installation
fleet_list_vpp_tokensList VPP tokens configured in Fleet
fleet_get_configGet the current Fleet application configuration
fleet_get_enroll_secretsGet the enrollment secrets configuration
fleet_get_certificateGet the Fleet server certificate chain
fleet_get_versionGet the Fleet server version information
fleet_list_secretsList secret variables in Fleet
fleet_list_invitesList pending user invites
fleet_verify_inviteVerify an invite token and get invite details
fleet_list_carvesList file carve sessions
fleet_get_carveGet detailed information about a specific carve session
fleet_get_carve_blockGet a specific block of data from a carve session
fleet_get_device_infoGet device information using a device token
fleet_list_activitiesList Fleet activities and audit logs
fleet_list_osquery_tablesList available osquery tables with dynamic discovery
fleet_get_osquery_table_schemaGet detailed schema for a specific table
fleet_suggest_tables_for_queryGet AI-powered table suggestions based on intent
fleet_health_checkCheck Fleet server connectivity and authentication
fleet_delete_hostRemove a host from Fleet
fleet_transfer_hostsTransfer hosts to a different team
fleet_query_hostRun an ad-hoc live query against a specific host
fleet_query_host_by_identifierRun a live query by hostname/UUID/serial
fleet_cancel_host_activityCancel an upcoming activity for a specific host
fleet_lock_hostLock a host device remotely
fleet_unlock_hostUnlock a host device remotely
fleet_unenroll_host_mdmUnenroll a host from MDM
fleet_add_labels_to_hostAdd labels to a host
fleet_remove_labels_from_hostRemove labels from a host
fleet_refetch_hostForce a host to refetch and update its data immediately
fleet_create_queryCreate a new saved query
fleet_delete_queryDelete a saved query
fleet_run_live_query_with_resultsExecute a live query and collect results
fleet_run_saved_queryRun a saved query against hosts
fleet_create_policyCreate a new compliance policy
fleet_update_policyUpdate an existing policy
fleet_delete_policyDelete a policy
fleet_install_softwareInstall software on a specific host
fleet_batch_set_softwareBatch upload/set software installers for a team
fleet_create_teamCreate a new team
fleet_add_team_usersAdd one or more users to a specific team
fleet_remove_team_userRemove a specific user from a team
fleet_create_userCreate a new user
fleet_update_userUpdate an existing user
fleet_delete_sessionDelete/invalidate a specific session
fleet_delete_user_sessionsDelete all sessions for a specific user
fleet_create_labelCreate a new label
fleet_update_labelUpdate an existing label
fleet_delete_labelDelete a label by name
fleet_create_packCreate a new query pack
fleet_update_packUpdate an existing pack
fleet_delete_packDelete a pack by name
fleet_run_scriptRun a script on a specific host
fleet_run_batch_scriptRun a script on multiple hosts
fleet_cancel_batch_scriptCancel a batch script execution
fleet_create_scriptCreate and upload a new script
fleet_modify_scriptModify an existing script
fleet_delete_scriptDelete a script
fleet_upload_mdm_profileUpload a new MDM configuration profile
fleet_delete_mdm_profileDelete an MDM configuration profile
fleet_lock_deviceLock an MDM-enrolled device remotely
fleet_upload_bootstrap_packageUpload a bootstrap package for MDM enrollment
fleet_delete_bootstrap_packageDelete a bootstrap package for a team
fleet_create_setup_assistantCreate or update an MDM Apple Setup Assistant
fleet_delete_setup_assistantDelete the MDM Apple Setup Assistant
fleet_upload_mdm_apple_installerUpload a new Apple MDM installer package
fleet_add_app_store_appAdd an App Store app for distribution
fleet_update_app_store_appUpdate App Store app settings
fleet_delete_vpp_tokenDelete a VPP token
fleet_update_configUpdate the Fleet application configuration
fleet_update_enroll_secretsUpdate the enrollment secrets configuration
fleet_create_secretCreate a new secret variable
fleet_delete_secretDelete a secret variable by ID
fleet_create_inviteCreate a new user invite
fleet_update_inviteUpdate a pending invite
fleet_delete_inviteDelete a pending invite

How to install the Fleet MCP Server

{
  "mcpServers": {
    "fleet": {
      "command": "uvx",
      "args": [
        "fleet-mcp",
        "run"
      ],
      "env": {
        "FLEET_SERVER_URL": "https://your-fleet-instance.com",
        "FLEET_API_TOKEN": "YOUR_FLEET_API_TOKEN",
        "FLEET_READONLY": "true",
        "FLEET_ALLOW_SELECT_QUERIES": "true"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

Before configuring any MCP client, ensure you have: 1. Install uv (recommended) or pip: 2. Fleet API Token: Generate an API token from your Fleet instance: Option 1) - Log into Fleet UI - Navigate to: My account → Get API token - Copy the token for use in configuration Option 2) - Create an API-Only user with fleetctl > Note: This API token and your fleet instance URL

VariableDescriptionRequired
FLEET_SERVER_URLDeclared in the maintainer’s client configuration.Check documentation
FLEET_API_TOKENDeclared in the maintainer’s client configuration.Check documentation
FLEET_READONLYDeclared in the maintainer’s client configuration.Check documentation
FLEET_ALLOW_SELECT_QUERIESDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Fleet to Prerequisites.”
  • “Use Fleet to Configuration.”
  • “Use Fleet to System.”

Frequently asked questions

An MCP server that provides tools for managing and monitoring your Fleet Device Management instance. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.