Lansweeper MCP Server (Experimental)

by Lansweeper-public

313 downloads
Not rated
GitHub

About

An experimental MCP (Model Context Protocol) server that allows querying the Lansweeper API to retrieve information about assets and authorized sites. It is intended for users with a Lansweeper account and API access who want to interact with their IT asset data through AI…

Details

Author
Lansweeper-public
Downloads
313
Categories
Other

- Query Lansweeper API to get asset and site details.
- Three tools: get-asset-details, get-authorized-sites, get-assets-resources.
- Installs via npx with no manual download.
- Supports multiple MCP clients (Cursor, VS Code, Claude Desktop/Code).
- Requires only a Personal Access Token for authentication.
- Built with Node.js and Model Context Protocol.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Lansweeper MCP Server (Experimental)
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npx with a Personal Access Token set as the LANSWEEPER_PERSONAL_ACCESS_TOKEN environment variable. Configuration examples are provided for Cursor, VS Code, Claude Desktop, and Claude Code. The server can also be run directly using npx -y @lansweeper-public/mcp-server-lansweeper. Requires Node.js v16 or later.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "lansweeper mcp server (experimental)": {
            "MCP-server-lansweeper": {
                "command": "npx",
                "args": [
                    "-y",
                    "@lansweeper-public/mcp-server-lansweeper"
                ],
                "env": {
                    "LANSWEEPER_PERSONAL_ACCESS_TOKEN": "your-lansweeper-token"
                }
            }
        }
    }
}

McpServers

{
    "MCP-server-lansweeper": {
        "command": "npx",
        "args": [
            "-y",
            "@lansweeper-public/mcp-server-lansweeper"
        ],
        "env": {
            "LANSWEEPER_PERSONAL_ACCESS_TOKEN": "your-lansweeper-token"
        }
    }
}

Lansweeper 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:

1. get-asset-details: Get detailed information about a specific asset
2. get-authorized-sites: Get information about authorized sites
3. get-assets-resources: Get information about all assets in a site

Development

For development of this package:

1. Clone this repository
2. Install dependencies:

yarn install

3. Build the project:

yarn build

4. Run in development mode:

yarn dev

License

Server Side Public License v1 (SSPL v1)

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.