Ubidots MCP by usefulapi
Read devices, variables, last values and time-series statistics in Ubidots.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"ubidots": {
"url": "https://ubidots.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://ubidots.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (8)
🟢ubidots_list_devices(page, page_size)
List the devices in the account with label, name, last activity, tags and variable count. Start here to find a device id or label. Ubidots API: GET /api/v2.0/devices/.
Eingabe-Schema
{
"type": "object",
"properties": {
"page": {
"description": "Page number for pagination (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"page_size": {
"description": "Items per page (default 50; variables 200).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ubidots_get_device(device)
Get one device by id or ~label: its location properties, active state, organization and variable count. Ubidots API: GET /api/v2.0/devices/{key}/.
Eingabe-Schema
{
"type": "object",
"properties": {
"device": {
"type": "string",
"minLength": 1,
"description": "Device id, or label with a ~ prefix (for example ~my-sensor). From ubidots_list_devices."
}
},
"required": [
"device"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ubidots_get_device_last_values(device)
Get the most recent value of every variable of one device, with timestamps. Good for a current reading. Ubidots API: GET /api/v2.0/devices/{key}/_/values/last.
Eingabe-Schema
{
"type": "object",
"properties": {
"device": {
"type": "string",
"minLength": 1,
"description": "Device id, or label with a ~ prefix (for example ~my-sensor). From ubidots_list_devices."
}
},
"required": [
"device"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ubidots_list_variables(page, page_size)
List variables across all devices with their type, unit, device, last value and last activity. Ubidots API: GET /api/v2.0/variables/.
Eingabe-Schema
{
"type": "object",
"properties": {
"page": {
"description": "Page number for pagination (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"page_size": {
"description": "Items per page (default 50; variables 200).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ubidots_list_device_variables(device, page, page_size)
List the variables of one device (id or ~label), with type, unit and last activity. Ubidots API: GET /api/v2.0/devices/{key}/variables/.
Eingabe-Schema
{
"type": "object",
"properties": {
"device": {
"type": "string",
"minLength": 1,
"description": "Device id, or label with a ~ prefix (for example ~my-sensor). From ubidots_list_devices."
},
"page": {
"description": "Page number for pagination (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"page_size": {
"description": "Items per page (default 50; variables 200).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"device"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ubidots_get_variable(variable_id)
Get one variable by id: its device, type, unit, expression (for synthetic variables), last value and the link to its values. Ubidots API: GET /api/v2.0/variables/{id}/.
Eingabe-Schema
{
"type": "object",
"properties": {
"variable_id": {
"type": "string",
"minLength": 1,
"description": "Variable id (from ubidots_list_variables or ubidots_list_device_variables)."
}
},
"required": [
"variable_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ubidots_get_data_series(start, end, variables, decimalPlaces, columns, ...)
Read the raw time-series data points of one or more variables between two epoch-millisecond times. Each variable returns its own code, so one variable can fail without failing the rest. Ubidots API: POST /api/v2.0/data/series/ (read only).
Eingabe-Schema
{
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Time as epoch milliseconds."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Time as epoch milliseconds."
},
"variables": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"variable": {
"type": "string",
"minLength": 1,
"description": "Variable id, or a variable label with a ~ prefix when device is set."
},
"device": {
"description": "Device id or ~label. Needed when variable is a label.",
"type": "string",
"minLength": 1
}
},
"required": [
"variable"
],
"description": "One variable to query."
},
"description": "Variables to query (minimum 1)."
},
"decimalPlaces": {
"description": "Decimal places for values (0-16).",
"type": "integer",
"minimum": 0,
"maximum": 16
},
"columns": {
"description": "Columns to include per data point.",
"type": "array",
"items": {
"type": "string",
"enum": [
"timestamp",
"value",
"context",
"created_at"
]
}
},
"results_format": {
"description": "tabular (arrays, default) or object (named keys).",
"type": "string",
"enum": [
"tabular",
"object"
]
},
"results_data": {
"description": "false returns only the variable check, with empty results.",
"type": "boolean"
},
"storage": {
"description": "Storage tier to query.",
"type": "string",
"enum": [
"hot",
"cold",
"auto"
]
}
},
"required": [
"start",
"end",
"variables"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ubidots_get_data_statistics(start, end, variables, decimalPlaces, aggregations)
Compute aggregate statistics (first, last, min, max, count, sum, mean, std, p25, p50, p75) of one or more variables over a time range. Ubidots API: POST /api/v2.0/data/statistics/ (read only).
Eingabe-Schema
{
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Time as epoch milliseconds."
},
"end": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Time as epoch milliseconds."
},
"variables": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"variable": {
"type": "string",
"minLength": 1,
"description": "Variable id, or a variable label with a ~ prefix when device is set."
},
"device": {
"description": "Device id or ~label. Needed when variable is a label.",
"type": "string",
"minLength": 1
}
},
"required": [
"variable"
],
"description": "One variable to query."
},
"description": "Variables to query (minimum 1)."
},
"decimalPlaces": {
"description": "Decimal places for values (0-16).",
"type": "integer",
"minimum": 0,
"maximum": 16
},
"aggregations": {
"description": "Statistics to compute. Omit for all eleven.",
"type": "array",
"items": {
"type": "string",
"enum": [
"first",
"last",
"min",
"max",
"count",
"sum",
"mean",
"std",
"p25",
"p50",
"p75"
]
}
}
},
"required": [
"start",
"end",
"variables"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis