Skip to main content
Glama
flipper-mcp
by jamiew

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FLIPPER_PORTNoSet FLIPPER_PORT to a serial device path if auto-detection picks the wrong one.
FLIPPER_ENABLE_TXNoThe transmit, emulate, credential-write, and power tools are disabled by default, along with the matching raw CLI commands. They require FLIPPER_ENABLE_TX=1 in the server process.
FLIPPER_DEFAULT_DEVICENoFor an external CC1101, pass device=1 to supported SubGHz receive tools or set FLIPPER_DEFAULT_DEVICE=1.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Drives a Flipper Zero over USB serial. Tools that transmit, emulate, write tags or power-cycle refuse unless the server runs with FLIPPER_ENABLE_TX=1. A running on-device app holds the radio, so call workflow_close_app before CLI receive tools. Use flipper_cli only when no dedicated tool fits.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
flipper_infoA

Show device info: firmware version, name, hardware, UID, battery.

flipper_helpA

List every CLI command the Flipper supports. Useful for exploration.

flipper_cliA

Run an arbitrary Flipper CLI command.

Escape hatch for commands without a dedicated tool. For streaming commands (subghz rx, ir rx, nfc detect) prefer the dedicated tool — it handles the Ctrl-C for you.

storage_listA

List files and directories on the Flipper. Default: /ext (SD root).

Common paths: /ext SD card root /ext/subghz captured SubGHz signals /ext/nfc saved NFC tags /ext/infrared learned IR remotes /ext/apps installed apps

storage_infoA

Show free/total space for the given storage mount (/int or /ext).

storage_readB

Read a file's text contents from the Flipper filesystem.

storage_statA

Show metadata for a single file or directory on the Flipper.

subghz_rxA

Listen on SubGHz for duration_s seconds and return captured signals.

frequency_hz: center frequency in hertz. Flipper rounds to the nearest valid channel (e.g. 433920000 -> 433919830). 315 MHz -> 315000000 (older US car fobs, garage doors) 433.92 MHz -> 433920000 (most key fobs, weather stations, TPMS EU) 868 MHz -> 868000000 (EU ISM, smart meters, some alarm systems) 915 MHz -> 915000000 (US ISM, LoRa US, industrial telemetry)

device: 0 = internal CC1101, 1 = external CC1101 module. If unset, falls back to the FLIPPER_DEFAULT_DEVICE env var (default 0).

The Flipper's CC1101 is restricted to regional bands — check hardware_region_provisioned in flipper_info if a frequency is rejected.

subghz_tx_from_fileB

Transmit a saved .sub file from the Flipper SD card.

Example path: /ext/subghz/garage.sub

subghz_decode_rawA

Replay a raw .sub capture through the decoder and report matches.

subghz decode_raw is a streaming command on the Flipper: it plays the saved capture back in real time through every registered decoder and prints any hits. That means this tool takes at least as long as the original capture (bounded here by duration_s, default 15s).

nfc_detectB

Scan for NFC tags nearby for duration_s seconds.

nfc_emulateB

Emulate a saved .nfc tag (or the last-read tag if no path) for a duration.

Gated behind FLIPPER_ENABLE_TX. Pass a path like /ext/nfc/mycard.nfc, or leave empty on firmwares that emulate the last-read tag.

ir_rxA

Listen for IR remote signals for duration_s seconds.

Point the target remote at the top of the Flipper and press buttons.

ir_txA

Transmit an IR signal using a known protocol.

protocol: exact firmware name, e.g. NEC, NECext, Samsung32, RC5, RC6, SIRC. address / command: numeric CLI hex ("C7EA") or little-endian bytes from a saved .ir file ("EA C7 00 00"). Byte arrays are converted to numbers, not concatenated. Capture CLI A:/C: values can be passed unchanged.

NOTE: requires the firmware's cli_ir.fal plugin to be loaded. If this returns "failed to load external command", refresh the firmware via qFlipper to update the external CLI plugins.

psA

List running apps / tasks on the Flipper.

freeA

Show free RAM on the Flipper.

uptimeA

Show how long the Flipper has been running since last boot.

powerA

Control device power. action: off | reboot | reboot2dfu | otg_on | otg_off.

All actions are gated behind FLIPPER_ENABLE_TX. Power-down and reboot drop the USB link. otg_on/otg_off toggle the external 5V supply.

power_infoA

Show battery / charging / power state (voltage, current, temperature, health).

datetime_getA

Read the Flipper's real-time clock.

datetime_setA

Set the Flipper's clock from an ISO timestamp, e.g. 2026-08-09T14:30:00.

Handy so captures get correct timestamps. Defaults to now if iso is empty.

i2c_scanA

Scan the GPIO I2C bus (PC0=SCL, PC1=SDA) and report responding addresses.

ledA

Set the RGB LED on the Flipper. Each channel: 0-255.

Handy for giving the agent a visible heartbeat during long scans.

vibroB

Pulse the vibration motor on or off.

storage_writeA

Write text content to a file on the Flipper's SD card.

Uses storage write <path> which reads until Ctrl-C. Best for small text files (config, ducky scripts, notes). Binary content is not supported via this path — use SD card mount for that.

storage_removeC

Delete a file or empty directory on the Flipper.

storage_mkdirC

Create a new directory on the Flipper.

storage_renameB

Rename or move a file/directory on the Flipper.

storage_md5B

Compute the MD5 checksum of a file on the Flipper (firmware-side).

subghz_rx_rawA

Capture raw pulse timings on a SubGHz frequency, no decoding.

Unlike subghz_rx (which only emits when a known protocol decodes), rx_raw dumps pulse durations continuously. Useful for signals the firmware can't decode — proprietary RKE, unusual framing, etc. The output is a stream of +<us> -<us> pairs representing pulse / gap durations in microseconds.

Note: the subghz rx_raw CLI command does not accept a device arg, so this always uses the internal CC1101.

subghz_chatB

Listen on SubGHz chat mode — receive broadcast messages from other Flippers.

This mode also transmits, so it is gated behind FLIPPER_ENABLE_TX.

rfid_readA

Scan for 125 kHz LF-RFID cards for duration_s seconds.

Requires cli_rfid.fal plugin loaded on the firmware.

rfid_writeA

Write a 125 kHz LF-RFID tag. key_type: EM4100 | H10301 | Indala26.

Gated behind FLIPPER_ENABLE_TX. key_data is the hex ID as shown by rfid_read.

rfid_emulateA

Emulate a 125 kHz LF-RFID tag for a duration. Gated behind FLIPPER_ENABLE_TX.

key_type: EM4100 | H10301 | Indala26. key_data: hex ID from rfid_read.

ibutton_readB

Scan for iButton / 1-Wire keys for duration_s seconds.

ibutton_writeA

Write a Dallas iButton key (only Dallas is writable). Gated behind FLIPPER_ENABLE_TX.

key_data: the 8-byte hex ID as shown by ibutton_read.

ibutton_emulateA

Emulate an iButton key for a duration. Gated behind FLIPPER_ENABLE_TX.

key_type: Dallas (8B) | Cyfral (2B) | Metakom (4B). key_data: hex from ibutton_read.

gpio_readB

Read the current digital state of a GPIO pin.

pin: one of PA4, PA6, PA7, PB2, PB3, PC0, PC1, PC3 (Flipper naming).

gpio_writeA

Set a GPIO pin high (1) or low (0); configure output mode separately.

gpio_modeB

Configure a GPIO pin's direction/mode.

mode: input (0) or output (1).

loader_openA

Launch an app on the Flipper by path or built-in ID.

Examples: loader_open("Sub-GHz") # built-in Sub-GHz app loader_open("/ext/apps/Infrared/flipper_xremote.fap") # external .fap

Close any currently running app first. Launching an app does not confirm its screen or selected menu item; use loader_info and inspect the device.

loader_closeB

Close the currently running app on the Flipper.

loader_infoA

Show what app is currently running on the Flipper.

loader_listA

List all built-in apps launchable via loader open.

flipper_interruptA

Send a Ctrl-C to the Flipper CLI to recover from a stuck streaming command.

Use this if you suspect an earlier flipper_cli call left the Flipper in a listening state (no terminating Ctrl-C was sent). It also stops a running capture tool early; that tool returns what it captured so far.

flipper_file_inspectA

Read a file on the Flipper and classify it by its Filetype header.

Recognizes Flipper save files (SubGHz raw/parsed, NFC, IR, LF-RFID, iButton) and returns structured metadata — frequency, preset, protocol name, UID, etc. For parsed-protocol files, also runs the registry fingerprinter on the body.

This is the fastest way to tell the agent what's in a saved capture without requiring the Flipper firmware to re-decode it.

list_installed_appsA

Enumerate installed FAP apps under /ext/apps/*/*.fap.

Returns apps grouped by category directory. Useful for agent discovery — e.g. "what Sub-GHz tools does this Flipper have available?"

flipper_press_keyB

Send a synthetic keypress to the Flipper UI.

key: one of up, down, left, right, ok, back (aliases like u, enter, esc accepted). press_type: short | long | press | release. Default short is a full press-and-release, matching a normal button tap.

flipper_hold_keyA

Press and hold a key for duration_s seconds, then release.

Uses explicit press/release events so the hold duration is wall-clock accurate rather than firmware-preset.

flipper_input_sequenceA

Run a mini-DSL sequence of keypresses / waits against the Flipper UI.

Syntax (comma-separated steps): ok — short press OK long:ok — long press OK press:down — press-only event for Down (without release) release:down — release-only event wait:0.5 — wall-clock delay of 0.5 seconds

Example: "ok,down,down,long:ok,wait:0.3,back" navigates two items down, holds OK, waits 300 ms, then backs out.

workflow_subghz_read_startA

Launch the Sub-GHz app and navigate into Read mode in one call.

Hands-free equivalent of: tap Sub-GHz → tap OK on "Read". The Flipper remembers its last-used frequency, so this enters Read at whatever frequency was configured last (use the app's arrow keys to change).

workflow_nfc_read_startA

Launch the NFC app and navigate into Read mode in one call.

workflow_infrared_learn_startA

Launch the Infrared app and navigate into Learn New Remote.

workflow_close_appA

Close any app currently running on the Flipper; return to main screen.

Useful as a prologue before direct-radio CLI commands (subghz rx, led, vibro) which fail with "app open" while any app owns the UI / radio.

ir_universal_listA

List the buttons available for a universal-remote category.

category: tv | audio | ac | fans | bluray_dvd | digital_sign | leds | monitor | projectors.

ir_universal_sendA

Transmit a universal-remote IR button from the firmware's built-in DB.

category: tv | audio | ac | fans | bluray_dvd | digital_sign | leds | monitor | projectors. button: exact name returned by ir_universal_list, e.g. Power, Vol_up, Vol_dn, Mute, Ch_next, Ch_prev. Case-sensitive.

Example: turn off any TV in range: ir_universal_send(category="tv", button="Power")

registry_listA

List known protocols in the bundled registry.

category: filter to one of subghz | ir | nfc | lfrfid | ble pack: filter to a vertical pack, e.g. "garage", "access-control"

registry_describeB

Return the full registry entry for one protocol id.

scan_and_identifyA

Listen on SubGHz, then fingerprint the capture against the registry.

One-shot workflow: runs subghz rx, collects output for duration_s, stops the scan, then matches the output against every known SubGHz protocol. Returns both the raw text (for human review) and the structured matches with decoded fields and metadata.

device: 0 = internal CC1101, 1 = external CC1101 module. If unset, falls back to the FLIPPER_DEFAULT_DEVICE env var (default 0).

Examples: frequency_hz=433920000 duration_s=15 # common key fobs / garage remotes frequency_hz=315000000 duration_s=15 # older US garage / gate remotes frequency_hz=868000000 duration_s=15 # EU ISM (smart meters, alarms)

ir_scan_and_identifyB

Listen for IR, then fingerprint the capture against the registry.

registry_statusA

Show registry state: bundled protocols, user-installed, cache location.

registry_fetch_indexA

Fetch a remote registry index and list what's available.

index_url: HTTPS URL to a JSON index file following the flipper-rf-registry schema (see CONTRIBUTING.md). Each entry in the returned list flags whether the protocol is already bundled or installed.

registry_installA

Install one protocol from a remote index into the user cache.

Downloads the JSON payload, verifies the SHA-256 checksum if present, validates the schema, and drops it into user_cache_dir. The new protocol becomes visible to registry_list and scan_and_identify on the next call.

registry_removeA

Remove a user-installed protocol from the cache.

Bundled protocols (shipped with the package) cannot be removed — this only affects the user cache. Reloads the registry so the change takes effect immediately.

Prompts

Interactive templates invoked by user choice

NameDescription
rf_triageKick off a structured RF triage workflow on a given frequency. Produces a prompt that walks the agent through scan → identify → explain, with the expected narrative structure for a report.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 64 tools

Disambiguation3/5

Most tools are distinguishable by resource and action, but there are several near-neighbors: subghz_rx vs subghz_rx_raw vs subghz_decode_raw vs scan_and_identify, and ir_rx vs ir_scan_and_identify. The workflow_* convenience wrappers (workflow_subghz_read_start, workflow_close_app) also overlap conceptually with loader_open/loader_close and the raw CLI-radio tools, and flipper_press_key vs flipper_hold_key vs flipper_input_sequence require reading descriptions to choose correctly. Descriptions do mitigate this, but boundaries are only clear after careful reading.

Naming Consistency3/5

There is a dominant resource_action pattern (subghz_rx, rfid_write, storage_mkdir, registry_install), but it is broken by bare noun/verb tools (power, led, vibro, uptime, ps, free, i2c_scan) and by inconsistent prefixes — flipper_ appears on some tools (flipper_info, flipper_press_key) but not on close peers (power_info, datetime_get). The workflow_ and registry_ namespaces are internally consistent, which keeps it readable despite the mix.

Tool Count2/5

At 64 tools the surface is very heavy for a single device, and the agent must pick among many similar radio capture/identify variants. While the Flipper's breadth (SubGHz, NFC, IR, RFID, iButton, GPIO, storage, loader, UI, registry) justifies a large set, many tools are thin one-shot wrappers that could be consolidated (e.g. one capture tool with a mode flag, one key-input tool).

Completeness4/5

Coverage is strong across all major radios plus storage, GPIO, loader, power, UI input, and a protocol registry lifecycle (list/describe/fetch/install/remove) with clear lifecycle symmetry for RFID/iButton (read/write/emulate). Minor gaps exist: no NFC write/save tool, no BLE tools despite `registry_list` advertising a `ble` category, and captures can only be transmitted from existing .sub files rather than saved from a scan.

Maintenance

ActivityActive
ResponsivenessNo recent community issues