flespi MCP by usefulapi
Read devices, telemetry, messages and geofences; create and update devices in flespi.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (1)
- LOWin flespi_update_device
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": {
"flespi": {
"url": "https://flespi.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://flespi.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (11)
🟢flespi_get_token_info
Show the flespi token this server uses: its id, customer id, enabled and blocked state, expiry, and access rules. Good first call to check the connection. flespi API: GET /auth/info.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_list_devices(selector, fields, limit, offset)
List devices (trackers and other connected units) with their id, name, protocol, telemetry and configuration. Use selector "all" or a filter such as "protocol_name=teltonika". flespi API: GET /gw/devices/{selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"fields": {
"description": "Fields to return, e.g. [\"id\",\"name\",\"telemetry\"]. Omit for the default fields.",
"type": "array",
"items": {
"type": "string"
}
},
"limit": {
"description": "Maximum number of items to return.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"offset": {
"description": "Number of items to skip before the first result.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_get_device_telemetry(selector, telemetry_selector)
Read the latest telemetry values of devices, such as position, speed, fuel or ignition. telemetry_selector "all" returns every parameter. flespi API: GET /gw/devices/{selector}/telemetry/{telemetry_selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"telemetry_selector": {
"default": "all",
"description": "Telemetry parameter names, comma-separated, or \"all\".",
"type": "string",
"minLength": 1
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_list_device_messages(selector, count, from, to, fields)
Read the most recent stored messages of devices, optionally between two UNIX timestamps and limited to some fields. flespi API: GET /gw/devices/{selector}/messages with the data filter.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"count": {
"default": 10,
"description": "Maximum number of messages (default 10).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"from": {
"description": "UNIX timestamp, inclusive. Omit for no lower bound.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"to": {
"description": "UNIX timestamp, inclusive. Omit for no upper bound.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"fields": {
"description": "Comma-separated message parameters, e.g. \"timestamp,position.latitude,position.longitude\".",
"type": "string",
"maxLength": 4096
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_list_channels(selector, fields, limit, offset)
List channels (data-ingestion endpoints that devices connect to) with their id, name, protocol and status. flespi API: GET /gw/channels/{selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"fields": {
"description": "Fields to return, e.g. [\"id\",\"name\",\"telemetry\"]. Omit for the default fields.",
"type": "array",
"items": {
"type": "string"
}
},
"limit": {
"description": "Maximum number of items to return.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"offset": {
"description": "Number of items to skip before the first result.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_list_geofences(selector, fields, limit, offset)
List geofences (geographic zones) with their id, name and shape. flespi API: GET /gw/geofences/{selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"fields": {
"description": "Fields to return, e.g. [\"id\",\"name\",\"telemetry\"]. Omit for the default fields.",
"type": "array",
"items": {
"type": "string"
}
},
"limit": {
"description": "Maximum number of items to return.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"offset": {
"description": "Number of items to skip before the first result.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_list_groups(selector, fields, limit, offset)
List device groups used to organize devices and assign them in bulk. flespi API: GET /gw/groups/{selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"fields": {
"description": "Fields to return, e.g. [\"id\",\"name\",\"telemetry\"]. Omit for the default fields.",
"type": "array",
"items": {
"type": "string"
}
},
"limit": {
"description": "Maximum number of items to return.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"offset": {
"description": "Number of items to skip before the first result.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_list_calcs(selector, fields, limit, offset)
List calculators (rules that turn device messages into intervals and reports) with their configuration. flespi API: GET /gw/calcs/{selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"fields": {
"description": "Fields to return, e.g. [\"id\",\"name\",\"telemetry\"]. Omit for the default fields.",
"type": "array",
"items": {
"type": "string"
}
},
"limit": {
"description": "Maximum number of items to return.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"offset": {
"description": "Number of items to skip before the first result.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢flespi_list_streams(selector, fields, limit, offset)
List streams (outgoing data flows that forward device data to other systems) with their id, name and protocol. flespi API: GET /gw/streams/{selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"default": "all",
"description": "flespi selector: \"all\", comma-separated ids (\"12,34\"), or a field filter (\"protocol_name=teltonika\").",
"type": "string",
"minLength": 1
},
"fields": {
"description": "Fields to return, e.g. [\"id\",\"name\",\"telemetry\"]. Omit for the default fields.",
"type": "array",
"items": {
"type": "string"
}
},
"limit": {
"description": "Maximum number of items to return.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"offset": {
"description": "Number of items to skip before the first result.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴flespi_create_device(devices)
Create one or more devices. Each object must include device_type_id and configuration, for example {"name":"Van 4","device_type_id":1,"configuration":{"ident":"<IMEI>"}}. Creates new records; it does not change existing devices. flespi API: POST /gw/devices.
Eingabe-Schema
{
"type": "object",
"properties": {
"devices": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Device objects to create (flespi device fields)."
}
},
"required": [
"devices"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴flespi_update_device(selector, properties)
Change the properties of the devices matched by selector, for example {"name":"Van 4 (depot)"}. Only the given fields change. flespi API: PUT /gw/devices/{selector}.
Eingabe-Schema
{
"type": "object",
"properties": {
"selector": {
"type": "string",
"minLength": 1,
"description": "Devices to update: comma-separated ids (\"12,34\") or a filter (\"protocol_name=teltonika\"). \"all\" is refused."
},
"properties": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Device fields to change."
}
},
"required": [
"selector",
"properties"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis