Adafruit IO MCP by usefulapi

v1.28.0
io.usefulapi/adafruit-io Checked 1 day ago Published 11 hours ago

Read Adafruit IO feeds, data, groups and dashboards; publish a data point or create a feed.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

adafruitio_get_user Get user

The Adafruit IO account this key belongs to: id, name, username, time zone, created/updated times, plus the data rate limit when reported. GET /api/v2/user.

adafruitio_get_throttle Get data rate limit

The account's data rate limit (data-record modifications per minute: 30 on free accounts, 60 on Plus) and the current active data rate. Check it before publishing many points. GET /api/v2/{username}/throttle.

adafruitio_list_feeds List feeds

List all of the account's feeds with key, name, description, unit, visibility, enabled flag, last value and last update. GET /feeds.

adafruitio_get_feed Get feed

One feed by key: name, description, unit, visibility, last value, status settings and the groups it belongs to. GET /feeds/{feed_key}.

ParameterTypeDescription
feed_key *stringFeed key (the URL-safe key shown in Adafruit IO, for example 'temperature'; 'group-key.feed-key' also works).

adafruitio_get_feed_details Get feed details

A feed with its details block: first and last data point and the number of stored points. GET /feeds/{feed_key}/details.

ParameterTypeDescription
feed_key *stringFeed key (the URL-safe key shown in Adafruit IO, for example 'temperature'; 'group-key.feed-key' also works).

adafruitio_list_feed_data List feed data

Data points of a feed (max 1000 per call). Newest first, except that with start_time the API returns the oldest page after that time. Filter by time range and limit; to read further back call again with the reply's next_page_args (the same filters plus `before`). GET /feeds/{feed_key}/data.

ParameterTypeDescription
feed_key *stringFeed key (the URL-safe key shown in Adafruit IO, for example 'temperature'; 'group-key.feed-key' also works).
beforestringPagination token: next_before from the previous reply (keep the same other arguments).
end_timestringISO 8601 date or date-time, e.g. 2026-10-01T00:00:00Z.
includestringComma-separated fields to return: value, lat, lon, ele, id, created_at.
limitintegerMaximum records to return, 1-1000 (default 100).
start_timestringISO 8601 date or date-time, e.g. 2026-10-01T00:00:00Z.

adafruitio_get_last_data Get latest data point

The most recent data point of a feed (value, location, created_at). GET /feeds/{feed_key}/data/last.

ParameterTypeDescription
feed_key *stringFeed key (the URL-safe key shown in Adafruit IO, for example 'temperature'; 'group-key.feed-key' also works).
includestringComma-separated fields to return: value, lat, lon, ele, id, created_at.

adafruitio_get_data_point Get data point

One stored data point of a feed by its id. GET /feeds/{feed_key}/data/{id}.

ParameterTypeDescription
data_id *stringData point id (the `id` field of a data point).
feed_key *stringFeed key (the URL-safe key shown in Adafruit IO, for example 'temperature'; 'group-key.feed-key' also works).

adafruitio_get_feed_chart Get feed chart data

Aggregated chart data for a feed: values sliced by `resolution` minutes over the last `hours` (or a start/end range), using avg, sum, min, max, val or val_count. Good for trends without downloading every point. GET /feeds/{feed_key}/data/chart.

ParameterTypeDescription
feed_key *stringFeed key (the URL-safe key shown in Adafruit IO, for example 'temperature'; 'group-key.feed-key' also works).
end_timestringISO 8601 date or date-time, e.g. 2026-10-01T00:00:00Z.
fieldstringAggregation (default avg).
hoursintegerHours of history (ignored when start_time and end_time are given).
resolutionSlice size in minutes.
start_timestringISO 8601 date or date-time, e.g. 2026-10-01T00:00:00Z.

adafruitio_list_groups List groups

List the account's groups (named sets of feeds) with their feeds. GET /groups.

adafruitio_get_group Get group

One group by key with its feeds. GET /groups/{group_key}.

ParameterTypeDescription
group_key *stringGroup key.

adafruitio_list_dashboards List dashboards

List the account's dashboards with key, name, description and visibility. GET /dashboards.

adafruitio_get_dashboard Get dashboard

One dashboard by key. GET /dashboards/{dashboard_key}.

ParameterTypeDescription
dashboard_key *stringDashboard key.

adafruitio_list_blocks List dashboard blocks

The blocks (widgets: gauges, toggles, charts, sliders...) of a dashboard with their feeds, position and properties. Integration secrets in properties are removed. GET /dashboards/{dashboard_key}/blocks.

ParameterTypeDescription
dashboard_key *stringDashboard key.

adafruitio_list_activities List activity log

The account's activity log (feed/data/dashboard changes), optionally within a time range. GET /activities.

ParameterTypeDescription
end_timestringISO 8601 date or date-time, e.g. 2026-10-01T00:00:00Z.
limitintegerMaximum entries, 1-1000.
start_timestringISO 8601 date or date-time, e.g. 2026-10-01T00:00:00Z.

adafruitio_publish_data_point Publish data point

WRITE: publish one data point (a value) to a feed. This can drive REAL DEVICES: anything subscribed to the feed (relays, motors, lights, heaters, locks, dashboard toggles) will receive and may act on the value, and it cannot be undone from here. Only publish a value the user has asked for. Counts against the account's data rate limit (30 per minute on free accounts, 60 on Plus). POST /feeds/{feed_key}/data.

ParameterTypeDescription
feed_key *stringFeed key (the URL-safe key shown in Adafruit IO, for example 'temperature'; 'group-key.feed-key' also works).
value *The value to publish (text or number, up to 1000 characters).
elenumberElevation of the reading in meters.
latnumberLatitude of the reading.
lonnumberLongitude of the reading.

adafruitio_create_feed Create feed

WRITE: create a new, empty feed (private by default), optionally inside an existing group. Adds a feed only; it does not change or delete anything existing, and fails if the name is taken. POST /feeds.

ParameterTypeDescription
name *stringFeed name (the key is derived from it).
descriptionstringOptional description.
group_keystringOptional existing group key to create the feed in.