Lansweeper MCP Server (Experimental)
LocalAbout Lansweeper MCP Server (Experimental)
Lansweeper MCP Server (Experimental) is an experimental server for querying the Lansweeper API. It is intended for teams with Lansweeper API access who want MCP clients to retrieve asset and site information.
Key features
- 01Retrieve details for a specific asset
- 02View authorized sites
- 03List asset resources for a site
- 04Authenticate with a Lansweeper Personal Access Token
Use cases
- 01Inspect details for a Lansweeper asset
- 02Check which Lansweeper sites are authorized
- 03Retrieve asset information for a site
MCP support
Exposes tools for querying asset details, authorized sites, and site asset resources to MCP clients. It uses a Lansweeper Personal Access Token for API access.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @lansweeper-public/mcp-server-lansweeperLANSWEEPER_PERSONAL_ACCESS_TOKENSecretLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
3Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| siteId | string | Yes | UUID of the site containing the asset. Use the 'get-authorized-sites' tool to discover available site identifiers and their corresponding UUIDs. |
| assetKey | string | Yes | Key of the asset to retrieve details for |
| fields | array | No | Optional list of specific fields to request. If not provided, a default set of fields will be used. |
Details
From the project READMELansweeper MCP Server (Experimental)
An experimental MCP (Model Context Protocol) server for querying the Lansweeper API.
Prerequisites
- Node.js (v16 or later)
- Lansweeper account with API access
- Lansweeper Personal Access Token - follow the instructions in the Lansweeper Data API documentation to generate your token
Installation
Cursor
Add the following to your Cursor MCP config:
{
"mcpServers": {
"lansweeper-mcp-server": {
"command": "npx",
"args": ["-y", "@lansweeper-public/mcp-server-lansweeper"],
"env": {
"LANSWEEPER_PERSONAL_ACCESS_TOKEN": "your-lansweeper-token"
}
}
}
}
VS Code
To install Lansweeper MCP Server for VS Code, add the following to your .vscode/mcp.json file:
{
"inputs": [
{
"type": "promptString",
"id": "lansweeper-token",
"description": "Lansweeper Personal Access Token",
"password": true
}
],
"servers": {
"lansweeper-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@lansweeper-public/mcp-server-lansweeper"],
"env": {
"LANSWEEPER_PERSONAL_ACCESS_TOKEN": "${input:lansweeper-token}"
}
}
}
}
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"lansweeper-mcp-server": {
"command": "npx",
"args": ["-y", "@lansweeper-public/mcp-server-lansweeper"],
"env": {
"LANSWEEPER_PERSONAL_ACCESS_TOKEN": "your-lansweeper-token"
}
}
}
}
This file is located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Claude Code
After installing Claude Code, run the following command:
claude mcp add lansweeper-mcp-server -e LANSWEEPER_PERSONAL_ACCESS_TOKEN=your-lansweeper-token -- npx -y @lansweeper-public/mcp-server-lansweeper
Direct Usage
You can also run the server directly using npx:
LANSWEEPER_PERSONAL_ACCESS_TOKEN=your-lansweeper-token npx -y @lansweeper-public/mcp-server-lansweeper
Available Tools
The MCP server provides the following tools:
get-asset-details: Get detailed information about a specific assetget-authorized-sites: Get information about authorized sitesget-assets-resources: Get information about all assets in a site
Development
For development of this package:
- Clone this repository
- Install dependencies:
yarn install
- Build the project:
yarn build
- Run in development mode:
yarn dev
License
Server Side Public License v1 (SSPL v1)
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.