Install
$ agentstack add mcp-simplyminimal-fleet-mcp Open-source listing — not yet scanned by AgentStack. Follow the source repository for install instructions.
Security review
⚠ Flagged1 finding(s); flagged for manual review. · v1.1.3 How review works →
- • Prompt-injection patterns
- • Secret / credential exfiltration
- • Dangerous shell & filesystem operations
- • Untrusted network calls
- • Known-malicious package signatures
- high Pipes remote content directly into a shell (remote code execution).
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v1.1.3. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
[](https://deepwiki.com/SimplyMinimal/fleet-mcp)
Fleet MCP
A Model Context Protocol (MCP) server that enables AI assistants to interact with Fleet Device Management for device management, security monitoring, and compliance enforcement.
Demo
📸 Show/Hide Demo Screenshots
Features
- 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
- Read-Only Mode: Safe exploration with optional SELECT-only query execution
- Activity Monitoring: Track Fleet activities and audit logs
Quick Start
Just want to dive right in? This will set up fleet-mcp with read-only access and SELECT query execution enabled. Just replace the FLEET_SERVER_URL and FLEET_API_TOKEN with your own.
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
See the [Available Tools](#available-tools) section below for a complete list of tools.
MCP Client Configuration
Fleet MCP can be integrated with various MCP-compatible clients. Below are configuration examples for popular clients.
Prerequisites
Before configuring any MCP client, ensure you have:
- Install
uv(recommended) orpip:
```bash # Install uv (recommended) curl -LsSf https://astral.sh/uv/install.sh | sh
# Or use pip pip install fleet-mcp ```
- 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
``bash # Generate an API-Only User and get the token fleetctl user create --name Fleet-MCP --email --password --role admin --api-only ``
> Note: This API token and your fleet instance URL (https://your-fleet-instance.com) will be used in the client configuration.
- Pick Your Client: Choose your preferred AI assistant client and follow the corresponding setup instructions below.
Install in Claude Desktop
Configuration File Location
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Configuration
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
> Note: Replace uvx with fleet-mcp if you've installed the package globally. For enhanced security, use --config flag to reference a TOML file instead of embedding tokens (see [Security Best Practices](#security-best-practices)).
Install in Cursor
Go to: Settings → Cursor Settings → MCP → Add new global MCP server
Install globally in ~/.cursor/mcp.json or per-project in .cursor/mcp.json. See Cursor MCP docs for more info.
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
Install in Cline (VS Code Extension)
Config Location: ~/.cline/mcp_settings.json (macOS/Linux) or %USERPROFILE%\.cline\mcp_settings.json (Windows)
Alternatively: VS Code Settings → Search "Cline: MCP Settings" → Edit JSON
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
Install in Continue (VS Code Extension)
Config Location: ~/.continue/config.json
{
"mcpServers": [
{
"name": "fleet",
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
]
}
Install in Zed Editor
Config Location: ~/.config/zed/settings.json (macOS/Linux) or %APPDATA%\Zed\settings.json (Windows)
{
"context_servers": {
"fleet": {
"command": {
"path": "uvx",
"args": ["fleet-mcp", "run"]
},
"settings": {
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
}
Install in Windsurf
See Windsurf MCP docs for more info.
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
Install in VS Code
See VS Code MCP docs for more info.
"mcp": {
"servers": {
"fleet": {
"type": "stdio",
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
Install in Sourcegraph Cody
Config Location: ~/Library/Application Support/Cody/mcp_settings.json (macOS), %APPDATA%\Cody\mcp_settings.json (Windows), or ~/.config/Cody/mcp_settings.json (Linux)
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
Install in Augment Code
Via UI: Hamburger menu → Settings → Tools → + Add MCP → Enter uvx fleet-mcp run → Name: "Fleet" → Add
Manual Config: Settings → Advanced → Edit settings.json
"augment.advanced": {
"mcpServers": [
{
"name": "fleet",
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
]
}
Install in LM Studio
Navigate to Program → Install → Edit mcp.json. See LM Studio MCP Support.
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
Generic MCP Client Configuration
For other MCP-compatible clients, use this general pattern:
{
"mcpServers": {
"fleet": {
"command": "uvx",
"args": ["fleet-mcp", "run"],
"env": {
"FLEET_SERVER_URL": "https://your-fleet-instance.com",
"FLEET_API_TOKEN": "your-api-token",
"FLEET_READONLY": "true",
"FLEET_ALLOW_SELECT_QUERIES": "true"
}
}
}
}
Configuration Options Reference
| Environment Variable | Description | Default | Required | |---------------------|-------------|---------|----------| | FLEET_SERVER_URL | Fleet server URL | - | ✅ | | FLEET_API_TOKEN | Fleet API token | - | ✅ | | FLEET_READONLY | Enable read-only mode | true | ❌ | | FLEET_ALLOW_SELECT_QUERIES | Allow SELECT queries in read-only mode | false | ❌ | | FLEET_VERIFY_SSL | Verify SSL certificates | true | ❌ | | FLEET_TIMEOUT | Request timeout (seconds) | 30 | ❌ | | FLEET_MAX_RETRIES | Maximum request retries | 3 | ❌ |
> Note: All clients above use the same environment variables. Replace uvx with fleet-mcp if installed globally.
Security Best Practices
- Use Config Files: Store tokens in TOML files:
"args": ["fleet-mcp", "--config", "~/.config/fleet-mcp.toml", "run"] - File Permissions:
chmod 600 ~/.config/fleet-mcp.toml - Read-Only Mode: Start with
FLEET_READONLY=true(default) - Token Rotation: Regularly rotate Fleet API tokens
- Environment-Specific Configs: Use separate configs for dev/prod
Available Tools
Fleet MCP provides tools organized into two main groups based on operational mode. Click to expand each group.
Read-Only Tools (Always Available)
These tools are available in all modes (readonly=true or readonly=false). They only read data and never modify Fleet state.
Host Management
fleet_list_hosts- List hosts with filtering, pagination, and searchfleet_get_host- Get detailed information about a specific host by IDfleet_get_host_by_identifier- Get host by hostname, UUID, or hardware serialfleet_search_hosts- Search hosts by hostname, UUID, serial number, or IPfleet_list_host_upcoming_activities- List upcoming activities for a specific hostfleet_list_host_past_activities- List past activities for a specific hostfleet_get_host_mdm- Get MDM information for a specific hostfleet_list_host_certificates- List certificates for a specific hostfleet_get_host_macadmins- Get macadmins data (Munki, MDM profiles) for a hostfleet_get_host_device_mapping- Get device mapping information for a hostfleet_get_host_encryption_key- Get disk encryption recovery key for a host
Query Management
fleet_list_queries- List all saved queries with paginationfleet_get_query- Get details of a specific saved queryfleet_get_query_report- Get the latest results from a scheduled query
Policy Management
fleet_list_policies- List all compliance policiesfleet_get_policy_results- Get compliance results for a specific policy
Software & Vulnerabilities
fleet_list_software- List software inventory across the fleetfleet_get_software- Get detailed information about a specific software itemfleet_get_host_software- Get software installed on a specific hostfleet_get_vulnerabilities- List known vulnerabilities with filteringfleet_get_cve- Get detailed information about a specific CVEfleet_search_software- Search for software by namefleet_find_software_on_host- Find specific software on a host by hostnamefleet_get_software_install_result- Get the result of a software installation requestfleet_list_software_titles- List software titles across the fleetfleet_get_software_title- Get detailed information about a specific software title
Team Management
fleet_list_teams- List all teamsfleet_get_team- Get details of a specific teamfleet_list_team_users- List all users that are members of a specific teamfleet_get_team_secrets- List team-specific enroll secrets
User Management
fleet_list_users- List all users with filteringfleet_get_user- Get details of a specific userfleet_list_user_sessions- List active sessions for a userfleet_get_session- Get session details by ID
Label Management
fleet_list_labels- List all labelsfleet_get_label- Get detailed information about a specific label
Pack Management
fleet_list_packs- List all query packsfleet_get_pack- Get detailed information about a specific packfleet_list_scheduled_queries- List scheduled queries in a specific pack
Script Management
fleet_list_scripts- List all scripts available in Fleetfleet_get_script- Get details of a specific scriptfleet_get_script_result- Get the result of a script executionfleet_list_batch_scripts- List batch script executionsfleet_get_batch_script- Get details of a batch script executionfleet_list_batch_script_hosts- List hosts in a batch script executionfleet_list_host_scripts- List scripts available for a specific host
MDM Management
fleet_list_mdm_commands- List MDM commands that have been executedfleet_get_mdm_command_results- Get results of MDM commandsfleet_list_mdm_profiles- List MDM configuration profilesfleet_get_host_mdm_profiles- Get MDM profiles installed on a specific hostfleet_get_mdm_profiles_summary- Get summary of MDM profile deployment statusfleet_get_filevault_summary- Get FileVault encryption summaryfleet_list_mdm_devices- List all MDM-enrolled Apple devicesfleet_get_bootstrap_metadata- Get metadata about a bootstrap package for a teamfleet_get_bootstrap_summary- Get aggregated summary about bootstrap package deploymentfleet_get_setup_assistant- Get the MDM Apple Setup Assistant configurationfleet_list_mdm_apple_installers- List all Apple MDM installers
VPP/App Store Management
fleet_list_app_store_apps- List App Store apps available for installationfleet_list_vpp_tokens- List VPP tokens configured in Fleet
Configuration Management
fleet_get_config- Get the current Fleet application configurationfleet_get_enroll_secrets- Get the enrollment secrets configurationfleet_get_certificate- Get the Fleet server certificate chainfleet_get_version- Get the Fleet server version information
Secret Management
fleet_list_secrets- List secret variables in Fleet
Invite Management
fleet_list_invites- List pending user invitesfleet_verify_invite- Verify an invite token and get invite details
Carve Management
fleet_list_carves- List file carve sessionsfleet_get_carve- Get detailed information about a specific carve sessionfleet_get_carve_block- Get a specific block of data from a carve session
Device Management
fleet_get_device_info- Get device information using a device token
Activity Monitoring
fleet_list_activities- List Fleet activities and audit logs
Osquery Table Discovery & Reference
fleet_list_osquery_tables- List available osquery tables with dynamic discoveryfleet_get_osquery_table_schema- Get detailed schema for a specific tablefleet_suggest_tables_for_query- Get AI-powered table suggestions based on intent
System
fleet_health_check- Check Fleet server connectivity and authentication
Write/Modify Tools (Requires readonly=false)
These tools can modify Fleet state and are only available when readonly=false is set in the configuration. This will allow you to make changes to your Fleet environment such as creating scripts, policies, managing teams, etc. in addition to the read-only tools. Setting to `reado
…
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: SimplyMinimal
- Source: SimplyMinimal/fleet-mcp
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v1.1.3 Imported from the upstream source.