Lansweeper MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lansweeper MCP Server list all Windows workstations in Lansweeper"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 with pagination, optional name/type filters |
| Get detailed information for a specific asset by ID |
| Search assets by name, IP address, MAC address, or OS |
Software Inventory
Tool | Description |
| List installed software across all assets, filterable by name or publisher |
| Get all software packages installed on a specific asset |
User Discovery
Tool | Description |
| List user accounts discovered by Lansweeper scans |
| Get details of a specific user including their associated assets |
Reports & Overview
Tool | Description |
| List all asset type categories with counts |
| Get scanning status overview with asset counts and scanner info |
| List all Lansweeper sites accessible with the configured application ID |
| 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 buildConfiguration
The server is configured via environment variables:
Variable | Required | Default | Description |
| Yes | — | Application ID / API token from Lansweeper developer settings |
| No | — | Default site ID for site-specific queries |
Generating an Application ID
Log in to your Lansweeper Cloud account
Go to My Lansweeper > Integrations > Developer Tools
Create a new application and copy the Application ID
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.jsSet 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 outputArchitecture
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 toolsget_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
Scored across 11 tools
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.
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.
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.
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
Related MCP Connectors
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Query your Logspot analytics, companies, and revenue from any AI assistant, and run your actions.
See and manage your company's apps, access, devices and spend from your AI assistant.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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-
- AlicenseBqualityDmaintenanceEnables AI assistants to execute GraphQL queries and retrieve schema information from any GraphQL endpoint.28MIT
- AlicenseAqualityAmaintenanceEnables AI assistants to perform full CRUD operations on Snipe-IT inventory systems, managing assets, users, licenses, and more via 39 tools.4041MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query IP Fabric network inventory and snapshots through natural language, using tools to fetch devices, interfaces, routing tables, and more.1MIT