Sensorist MCP by usefulapi
Read gateways, sensor measurements and alarm history in Sensorist.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"sensorist": {
"url": "https://sensorist.usefulapi.io/mcp"
}
}
}遠端端點
https://sensorist.usefulapi.io/mcpstreamable-http它能做什麼
工具清單
工具(5)
🟢sensorist_get_user(list)
Get the user and account details of the signed-in Sensorist login. With list=true, return every user in the account hierarchy. Sensorist API: GET /v1/users.
輸入結構描述
{
"type": "object",
"properties": {
"list": {
"description": "true = return an array of all users in your hierarchy instead of only your own user.",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sensorist_list_gateways(serials, from, include_slaves)
List the gateways (device inventory) of the account. Each gateway lists its sensors, and each sensor its data sources (the ids the measurement tool needs). By default only master gateways are returned. Sensorist API: GET /v1/gateways.
輸入結構描述
{
"type": "object",
"properties": {
"serials": {
"description": "Only gateways with these serial numbers.",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$"
}
},
"from": {
"description": "Only gateways added to the account after this date.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?Z)?$"
},
"include_slaves": {
"description": "true = also return slave gateways.",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sensorist_get_measurements(data_sources, type, from, to, indices, ...)
Get sensor measurements for data sources of ONE gateway. type: latest (most recent values), min_max (minimum and maximum with dates), climate (ETCCDI climate days), range (grouped average, minimum and maximum) or raw (unfiltered, up to 5,000 per page; pass the reply's next value as offset to read on). The default period is the past week. Sensorist API: GET /v1/measurements.
輸入結構描述
{
"type": "object",
"properties": {
"data_sources": {
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$"
},
"description": "Data source ids, all from the same gateway (from sensorist_list_gateways)."
},
"type": {
"type": "string",
"enum": [
"latest",
"min_max",
"climate",
"range",
"raw"
],
"description": "Kind of measurement query."
},
"from": {
"description": "Period start (UTC). Ignored for latest.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?Z)?$"
},
"to": {
"description": "Period end (UTC). Ignored for latest.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?Z)?$"
},
"indices": {
"description": "climate only: which indices to return (default all).",
"type": "array",
"items": {
"type": "string",
"enum": [
"frost_days",
"ice_days",
"summer_days",
"tropical_nights"
]
}
},
"ticks": {
"description": "range only: approximate number of values to return.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 10000
},
"interval": {
"description": "range only: grouping interval in minutes.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"seq_from": {
"description": "raw only: first sequence number to return.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"seq_to": {
"description": "raw only: last sequence number to return.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"offset": {
"description": "raw only: the next value from the previous reply.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"data_sources",
"type"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sensorist_list_alarms(include_notes)
List the data source alarms set by the account and their current state, with the most recent log entries. Sensorist API: GET /v1/alarms.
輸入結構描述
{
"type": "object",
"properties": {
"include_notes": {
"description": "true = include the notes on each alarm.",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢sensorist_list_alarm_history(alarms, from, to, format, include_notes)
Get the alarm log history: when each alarm went into and out of alarm. By default the entries are in time order. format=pairs returns each in/out pair together; format=combined adds system notifications. Sensorist API: GET /v1/alarms/history.
輸入結構描述
{
"type": "object",
"properties": {
"alarms": {
"description": "Only these alarm ids (from sensorist_list_alarms).",
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$"
}
},
"from": {
"description": "Period start (UTC).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?Z)?$"
},
"to": {
"description": "Period end (UTC).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?Z)?$"
},
"format": {
"description": "pairs = in/out pairs; combined = with system notifications.",
"type": "string",
"enum": [
"pairs",
"combined"
]
},
"include_notes": {
"description": "true = include the notes on each entry.",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社群
證據