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?

Connect Fleet to Claude, Cursor or any other MCP client and it stops being a tab you switch to. An MCP server that provides tools for managing and monitoring your Fleet Device Management instance. The fleet mcp server is what makes that connection.

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

Installation

fleet-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Prerequisites — 1. Install uv (recommended) or pip: bash # Install uv (recommended) curl -LsSf https://astral.sh/uv/install.sh | sh
  • Configuration — Go to: Settings → Cursor Settings → MCP → Add new global MCP server
  • System — Write/Modify Tools (Requires readonly=false)

Credentials and setup notes

Configuration is passed through the environment: FLEET_SERVER_URL, FLEET_API_TOKEN, FLEET_READONLY, FLEET_ALLOW_SELECT_QUERIES, YOUR_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

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

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the monitoring and observability options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Fleet's toolset — Prerequisites, Configuration, System — is a fair guide to whether it matches your workflow. It is maintained by SimplyMinimal; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
Prerequisites1. **Install uv** (recommended) or pip: bash # Install uv (recommended) curl -LsSf https://astral.sh/uv/install.sh | sh
ConfigurationGo to: Settings → Cursor Settings → MCP → Add new global MCP server
System<details> <summary><b>Write/Modify Tools (Requires <code>readonly=false</code>)</b></summary>

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-api-token",
        "FLEET_READONLY": "true",
        "FLEET_ALLOW_SELECT_QUERIES": "true"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

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_URLEndpoint or connection string the server talks to.Yes
FLEET_API_TOKENCredential the server authenticates with.Yes
FLEET_READONLYConfiguration value read at startup.Optional
FLEET_ALLOW_SELECT_QUERIESConfiguration value read at startup.Optional
YOUR_TOKENCredential the server authenticates with.Yes

Example prompts to try

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

Frequently asked questions

It connects Fleet to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Prerequisites, Configuration, System) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Fleet directly.