@assetlab/mcp-server

中文文档
3.3.0发布于 2026/10/22MITTypeScriptES Module近 30 天下载 2783

MCP server for AssetLab — connect Claude or ChatGPT to your asset management data

原始使用文档
文档目录12 节
  1. Quick start
  2. Claude.ai (hosted - easiest)
  3. ChatGPT
  4. Microsoft Copilot (via Copilot Studio)
  5. Claude Desktop / Claude Code (local, stdio)
  6. What can you ask?
  7. What's new in 2.7
  8. What's new in 2.5
  9. Tool catalog
  10. Scopes
  11. Security
  12. Support

AssetLab MCP Server

npm version weekly downloads types license

Talk to your assets. Connect Claude, ChatGPT, Microsoft Copilot, or any MCP-compatible client to your AssetLab account through the Model Context Protocol - ask about work orders, PM schedules, capital plans, and infrastructure networks in plain language, and create or update records hands-free.

480+ tools across 100+ resources · scoped, tenant-bound, audited · read and write · hosted or local


Quick start

Claude.ai (hosted - easiest)

  1. Create an API key in AssetLab → Settings → API Keys
  2. In Claude.ai: Settings → Connectors → Add connector
  3. Paste the connector URL: https://mcp.assetlab.ca
  4. When prompted for auth, paste your API key (al_live_...)

ChatGPT

  1. Create an API key in AssetLab → Settings → API Keys
  2. In ChatGPT: Settings → Apps & Connectors → Add new connector
  3. Name it (e.g. AssetLab) and enter the server URL: https://mcp.assetlab.ca
  4. Set authentication to OAuth and click Create - the OAuth endpoints are auto-discovered
  5. On the AssetLab authorization page, paste your API key (al_live_...)

Microsoft Copilot (via Copilot Studio)

Copilot chat has no "add a server" field, so one person builds an agent once and publishes it; staff then use that agent inside ordinary Microsoft 365 Copilot.

  1. Create an API key in AssetLab → Settings → API Keys
  2. In Copilot Studio, open an agent with generative orchestration and choose Tools → Add a tool → New tool → Model Context Protocol
  3. Server URL: https://mcp.assetlab.ca/mcp?profile=core
  4. Authentication API key, type Header, header name Authorization; the connection value is Bearer al_live_...
  5. Publish the agent to the Microsoft 365 Copilot channel and have an admin approve it

Use the ?profile=core address here. Copilot Studio caps an agent at 128 tools and recommends 25-30; this server publishes 480+, and the core profile answers with 28 covering sites, buildings, assets, work orders, work requests, PM schedules and vendors. Claude and ChatGPT have no such cap and should use the plain URL.

Claude Desktop / Claude Code (local, stdio)

This package runs as a local MCP server over stdio - nothing is exposed on the network.

{
  "mcpServers": {
    "assetlab": {
      "command": "npx",
      "args": ["-y", "@assetlab/mcp-server"],
      "env": {
        "ASSETLAB_API_KEY": "al_live_...",
        "ASSETLAB_API_URL": "https://<your-project>.supabase.co/functions/v1/api-gateway"
      }
    }
  }
}

Your AssetLab administrator can provide the API URL for your organization.


What can you ask?

You sayIt does
"Show me all overdue work orders"Lists them, sorted, with links back to AssetLab
"Create a work order for the broken pump in Building 3"Looks up the building and asset, then creates it
"Which projects are at risk or delayed?"Scans project status and risks
"What's the total cost history for Asset X?"Aggregates every cost record
"List watermains over 500 mm in poor condition"Filters infrastructure features by diameter and condition
"Add a crack-sealing event to the sidewalk strategy at $4 per square metre"Maintains your lifecycle strategies
"What PM schedules are due this month?"Checks every schedule's next due date
"Update the priority on WO-1234 to urgent"Edits the record (with your write scope)

What's new in 2.7

A curated tool profile for Microsoft Copilot. Adding ?profile=core to the hosted server URL publishes 28 tools instead of 480+, which is what makes the server usable in clients that cap how many tools one agent may host - Microsoft Copilot Studio allows 128 and recommends 25-30. An unrecognized profile name is rejected rather than quietly serving the full catalog. Claude and ChatGPT are unaffected and keep the full tool set.


What's new in 2.5

Facility lifecycle strategies. The lifecycle strategy tools now cover buildings and equipment, not just linear infrastructure. Five new tools under the asset_lifecycle_events scope read and maintain condition-triggered interventions ("roof recoat at condition 70-85 adds five years"). Events attach to an asset type or an asset type group rather than to individual assets, so one event maintains a whole class of equipment.

Events say what work they become. Lifecycle events on both sides now carry a work_generation setting - plan only, work order, or project - so a due intervention records what it should turn into. Nothing is created on a schedule; the interventions lists remain where that decision is made.


Tool catalog

Tools follow one naming pattern throughout: list_* / get_* to read, create_* / update_* / delete_* to write. Read below means list/get; Write means create/update/delete (availability varies slightly per resource - the tool descriptions are the authority).

Assets & maintenance records (17 resources)
ResourceReadWrite
Assets✓✓
Asset comments · costs · documents · parts✓✓
Asset placements (floorplan pins)✓✓
Asset replacement plans✓✓
Asset condition assessments✓✓
Asset lifecycle events (strategies)✓✓
Asset risk history✓-
Asset statuses · types · type groups✓✓
Attachments (+ upload_file, create_upload_url)✓✓
Manufacturers✓✓
Parts · part categories✓✓
Work management (7 resources)
ResourceReadWrite
Work orders✓✓
Work order comments · schedules✓✓
Work requests✓✓
Work categories✓✓
PM schedules✓✓
PM templates✓✓
Sites, buildings & systems (11 resources)
ResourceReadWrite
Sites✓✓
Site FCI history✓-
Buildings · building types✓✓
Locations · location types✓✓
Systems · system classes · system groups✓✓
Floorplans · floorplan regions✓✓
Infrastructure (linear assets) (11 resources)
ResourceReadWrite
Feature classes✓✓
Networks✓✓
Features (segments & nodes, GeoJSON geometry)✓✓
Feature inspections✓✓
Lifecycle events (strategies)✓✓
Zones✓✓
Feature comments · costs · documents · parts✓✓
Feature risk history✓-
Projects & capital planning (20+ resources)
ResourceReadWrite
Projects✓✓
Tasks · task dependencies · milestones✓✓
Phases · phase categories✓✓
Budget items · time entries · cost snapshots✓✓
Comments · updates · risks · team members✓✓
Documents · document folder templates✓✓
Project links (assets, buildings, sites, locations, systems, infrastructure)✓✓
Service areas (+ site and system-class links)✓✓
Finance & vendors (10 resources)
ResourceReadWrite
Budgets✓✓
Expenses · invoices · purchase orders✓✓
Change orders✓✓
Cost categories✓✓
Contracts · contract sites · contract documents✓✓
Vendors · vendor site assignments✓✓
Compliance, forms & level of service (15 resources)
ResourceReadWrite
Compliance items · records✓✓
Form templates · template items✓✓
Form responses✓✓
Form response answers✓-
LoS measures · measurements✓✓
LoS proposed targets✓✓
LoS targets history✓-
LoS system targets · infrastructure targets✓✓
Criticality modifiers✓✓
LoS consequences✓✓
LoS status snapshots✓-
Admin & analytics (6 resources)
ResourceReadWrite
Users✓-
Custom field definitions · values✓✓
Dashboard summary · snapshots✓-
Bulk operations (bulk_create, bulk_update)-✓

Scopes

API keys use scopes to control exactly what your assistant can touch. Configure per-resource read and write access in Settings → API Keys - scopes are grouped by category (Operations, Facilities, Projects, Finance, Infrastructure, ...) with bulk-toggle controls.

Scope patternAccess
resource:readList and get records (e.g. assets:read, work_orders:read)
resource:writeCreate, update, and delete records (e.g. assets:write)
*:*Full access to all resources

Security

  • OAuth 2.0 + PKCE through mcp.assetlab.ca; your API key is encrypted in transit and never stored by the MCP server
  • Tenant-bound - every key is scoped to your organization only, and the server ignores any attempt to address another tenant
  • Audited - all data access is logged in AssetLab's audit log
  • Revocable - revoke a key any time in Settings → API Keys; it dies instantly
  • Read-only by default - write operations require explicit write scopes

Support

Questions or issues? Email [email protected].

Docs: assetlab.ca → Docs → AI & MCP

版本与发布记录

@assetlab/mcp-server 共发布 77 个版本,首次发布于 2026/03/17;过去 12 个月发布了 77 个版本。

版本发布日期距今
3.3.0latest2026/10/2216 天前
3.2.02026/10/2018 天前
3.1.02026/10/1721 天前
3.0.52026/10/0930 天前
3.0.42026/10/0830 天前
3.0.32026/10/0830 天前

关于 @assetlab/mcp-server 的常见问题

@assetlab/mcp-server 是什么?

MCP server for AssetLab — connect Claude or ChatGPT to your asset management data

如何安装 @assetlab/mcp-server?

在项目目录运行 npm install @assetlab/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 assetlab-mcp,可以用 npx assetlab-mcp 直接运行。

@assetlab/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@assetlab/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@assetlab/mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@assetlab/mcp-server 可以商用吗?

@assetlab/mcp-server 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@assetlab/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@assetlab/mcp-server 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,783 次,日均约 93 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@assetlab/mcp-server 还在维护吗?

最新版本 3.3.0 发布于 2026/10/22(16 天前);至今共发布 77 个版本,其中过去 12 个月发布了 77 个;首次发布于 2026/03/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。