flespi MCP by usefulapi

Read devices, telemetry, messages and geofences; create and update devices in flespi.

Should I use this

Quality & Safety

A
Description quality
97%
Schema completeness
86%
Naming quality
80%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'flespi_update_device' description lacks action verbin flespi_update_device

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~2,342Tokens (tool definitions)
~1.6 KBTypical response size
Moderate attention impact (1.83% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "flespi": {
      "url": "https://flespi.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://flespi.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (11)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢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.

Input 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}.

Input 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}.

Input 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.

Input 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}.

Input 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}.

Input 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}.

Input 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}.

Input 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}.

Input 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.

Input 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}.

Input 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

Rate this Server

Evidence

Recent observations

verifiedversion not recorded11 tools