用于查询 Lansweeper API 的实验性 MCP(模型上下文协议)服务器。
在您的 Cursor MCP 配置中添加以下内容:
{
"mcpServers": {
"lansweeper-mcp-server": {
"command": "npx",
"args": ["-y", "@lansweeper-public/mcp-server-lansweeper"],
"env": {
"LANSWEEPER_PERSONAL_ACCESS_TOKEN": "your-lansweeper-token"
}
}
}
}
要在 VS Code 中安装 Lansweeper MCP 服务器,请在您的 .vscode/mcp.json 文件中添加以下内容:
{
"inputs": [
{
"type": "promptString",
"id": "lansweeper-token",
"description": "Lansweeper 个人访问令牌",
"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_config.json 中添加以下内容:
{
"mcpServers": {
"lansweeper-mcp-server": {
"command": "npx",
"args": ["-y", "@lansweeper-public/mcp-server-lansweeper"],
"env": {
"LANSWEEPER_PERSONAL_ACCESS_TOKEN": "your-lansweeper-token"
}
}
}
}
此文件位于:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json安装 Claude Code 后,运行以下命令:
claude mcp add lansweeper-mcp-server -e LANSWEEPER_PERSONAL_ACCESS_TOKEN=your-lansweeper-token -- npx -y @lansweeper-public/mcp-server-lansweeper
您也可以直接使用 npx 运行服务器:
LANSWEEPER_PERSONAL_ACCESS_TOKEN=your-lansweeper-token npx -y @lansweeper-public/mcp-server-lansweeper
该 MCP 服务器提供以下工具:
get-asset-details: 获取特定资产的详细信息get-authorized-sites: 获取授权站点的信息get-assets-resources: 获取站点内所有资产的信息对于此包的开发:
yarn install
yarn build
yarn dev
服务器端公共许可证 v1 (SSPL v1)