Skip to main content
Glama

mcp-lansweeper

A Model Context Protocol (MCP) server for Lansweeper, providing AI assistants with access to IT asset management, software inventory, user discovery, and scanning reports through the Lansweeper GraphQL API.

Features

12 tools across four categories:

Asset Management

Tool

Description

list_assets

List assets with pagination, optional name/type filters

get_asset

Get detailed information for a specific asset by ID

search_assets

Search assets by name, IP address, MAC address, or OS

Software Inventory

Tool

Description

list_software

List installed software across all assets, filterable by name or publisher

get_asset_software

Get all software packages installed on a specific asset

User Discovery

Tool

Description

list_users

List user accounts discovered by Lansweeper scans

get_user

Get details of a specific user including their associated assets

Reports & Overview

Tool

Description

list_asset_types

List all asset type categories with counts

get_scan_summary

Get scanning status overview with asset counts and scanner info

list_sites

List all Lansweeper sites accessible with the configured application ID

get_recently_scanned_assets

Get assets most recently scanned or updated

Related MCP server: mcp-graphql-tools

Installation

git clone git@github.com:fredriksknese/mcp-lansweeper.git
cd mcp-lansweeper
npm install
npm run build

Configuration

The server is configured via environment variables:

Variable

Required

Default

Description

LANSWEEPER_APPLICATION_ID

Yes

—

Application ID / API token from Lansweeper developer settings

LANSWEEPER_SITE_ID

No

—

Default site ID for site-specific queries

Generating an Application ID

  1. Log in to your Lansweeper Cloud account

  2. Go to My Lansweeper > Integrations > Developer Tools

  3. Create a new application and copy the Application ID

  4. Use this value as LANSWEEPER_APPLICATION_ID

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "lansweeper": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-lansweeper/dist/index.js"],
      "env": {
        "LANSWEEPER_APPLICATION_ID": "your-application-id",
        "LANSWEEPER_SITE_ID": "your-site-id"
      }
    }
  }
}

Usage with Claude Code

Add to your Claude Code MCP settings:

claude mcp add lansweeper -- node /absolute/path/to/mcp-lansweeper/dist/index.js

Set the required environment variables before running, or configure them in your MCP settings.

Example Prompts

Once connected, you can ask your AI assistant things like:

  • "List all Windows workstations in Lansweeper"

  • "Search for assets with IP address 192.168.1.x"

  • "What software is installed on asset ID abc123?"

  • "Find all assets running Windows Server 2019"

  • "List all users discovered in the CORP domain"

  • "Show me the asset inventory summary with counts by type"

  • "Which assets were scanned most recently?"

  • "Find all devices that have Chrome installed"

  • "List all Lansweeper sites and their asset counts"

Development

npm run dev      # Run with tsx (auto-reloads)
npm run build    # Compile TypeScript to dist/
npm start        # Run compiled output

Architecture

src/
├── index.ts                # Entry point — creates MCP server + STDIO transport
├── lansweeper-client.ts    # GraphQL client for Lansweeper API
└── tools/
    ├── assets.ts           # Asset list, get, search (3 tools)
    ├── software.ts         # Software inventory (2 tools)
    ├── users.ts            # User discovery (2 tools)
    └── reports.ts          # Reports, summaries, sites (4 tools)

API Details

The server communicates with the Lansweeper GraphQL API at https://api.lansweeper.com/api/v2/graphql using Bearer token authentication. All tools support optional site-specific queries via the site_id parameter or the LANSWEEPER_SITE_ID environment variable.

Requirements

  • Node.js 18+

  • Lansweeper Cloud account with API access

  • Application ID from Lansweeper developer settings

License

SEE LICENSE IN LICENSE

Available Tools

11 tools
get_assetB

Get detailed information about a specific asset by its ID.

Inputs: asset_id (required), site_id.

get_asset_softwareB

Get all software installed on a specific asset identified by its asset ID.

Inputs: asset_id (required), page, limit, site_id, +1 more.

get_recently_scanned_assetsC

Get assets that were most recently scanned or updated by Lansweeper.

Inputs: limit, site_id.

get_scan_summaryA

Get an overview of the Lansweeper scanning status including total asset counts, recently scanned assets, and asset breakdown by type.

Inputs: site_id.

get_userB

Get details of a specific user account discovered by Lansweeper, including associated assets.

Inputs: user_id (required), site_id.

list_assetsA

List IT assets from Lansweeper with pagination. Optionally filter by asset name or type.

Inputs: name, page, limit, site_id, +1 more.

list_asset_typesA

List all asset type categories with their asset counts in Lansweeper. Provides an overview of the types of devices in the environment.

Inputs: site_id.

list_sitesA

List all Lansweeper sites accessible with the configured application ID. Use the site IDs with other tools to query site-specific data.

Inputs: no named parameters.

list_softwareA

List installed software discovered across all assets in Lansweeper. Filter by software name to find specific applications.

Inputs: page, limit, site_id, publisher, +1 more.

list_usersB

List user accounts discovered by Lansweeper across scanned assets. Returns user names, domains, and associated assets.

Inputs: page, limit, domain, site_id, +1 more.

search_assetsC

Search for assets across Lansweeper by name, IP address, MAC address, or operating system.

Inputs: mac, name, limit, os_name, +3 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools target clearly distinct resources (assets, software, users, sites, scan summary). However, list_assets (with optional name/type filters) and search_assets (by name/IP/MAC/OS) have overlapping intent, and get_recently_scanned_assets could be seen as a variant of list_assets, so an agent may occasionally hesitate between them.

    Naming Consistency5/5

    Every tool follows a consistent verb_noun snake_case pattern (list_*, get_*, search_*), with resource names that are predictable and readable. No mixing of conventions or vague standalone verbs.

    Tool Count5/5

    Eleven tools is a well-scoped surface for an IT asset inventory server, with each tool covering a distinct resource or view (asset, software, user, type, site, scan status). Nothing feels padded or missing.

    Completeness4/5

    The read-only discovery surface is solid: assets, per-asset software, users, asset type breakdown, sites, scan summary, and recency. Minor gaps exist, such as no direct site-detail retrieval by ID, no combined asset-detail-plus-software call, and no filtering of users by site/domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage Snipe-IT inventory systems through comprehensive asset and consumable operations. Supports creating, updating, tracking, and managing IT assets, consumables, maintenance records, file attachments, and generating labels.
      1
      -
    • A
      license
      A
      quality
      A
      maintenance
      Enables AI assistants to perform full CRUD operations on Snipe-IT inventory systems, managing assets, users, licenses, and more via 39 tools.
      40
      41
      MIT