flipper-mcp
Provides tools for reading and detecting NFC/RFID tags and, when explicitly enabled, writing or emulating NFC credentials through the Flipper Zero; NFC CLI detection may time out on some firmware.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@flipper-mcp check my Flipper's battery level and firmware version"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
flipper-mcp
A local MCP server for controlling a Flipper Zero over USB-CDC. Forked from Str1ck9/flipper-mcp, using the official MCP Python SDK v2, serialized USB transactions, and guarded transmission. Unofficial; not affiliated with Flipper Devices.
Resume work: PLAN.md. Evidence: hardware validation.
Current status
Hardware last checked September 22, 2026, on Momentum mntm-012:
64 tools, one triage prompt, and 13 bundled protocol definitions.
Re-invoked 63 tools after the firmware update, including safety refusals, not 63 successful physical tests.
Storage, device controls, IR/LF-RFID/iButton/SubGHz reception, and registry operations respond. Installed apps: 195.
JVC Power and Volume Up were captured as RAW IR. One Volume Up replay was accepted by firmware; the TV's response is unconfirmed.
NFC CLI detection times out. App closure may require Back. The clock setter remains untested on this firmware after an earlier USB disconnect.
No general Bluetooth scanner or firmware-flashing tool is exposed.
Related MCP server: flipper-mcp
Setup
Requires uv and a USB data cable. The package is
on PyPI as flipper-mcp-jamiew, so there's nothing to clone:
claude mcp add flipper -- uvx flipper-mcp-jamiewOther MCP clients use {"command": "uvx", "args": ["flipper-mcp-jamiew"]}.
Set FLIPPER_PORT to a serial device path if auto-detection picks the wrong one.
To work on the server, run it from a checkout instead (Python 3.11+):
git clone https://github.com/jamiew/flipper-mcp.git
cd flipper-mcp
uv sync --lockedThe project .mcp.json runs the editable checkout in Oh My Pi or compatible
MCP clients. Approve it in your client if prompted, and restart the server
when dependencies or code change:
{
"mcpServers": {
"flipper": {
"type": "stdio",
"command": "uv",
"args": ["run", "--no-sync", "flipper-mcp"]
}
}
}Run the client from this checkout. For a desktop client launched elsewhere,
use the absolute path to .venv/bin/flipper-mcp as its stdio command.
Only one process should own the Flipper's serial port. Close qFlipper or
Flipper Lab before connecting. For a standalone hardware check, with the MCP
server disconnected:
uv run --no-sync flipper-smokeSafety and limits
The 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. Enable it only for a specific,
authorized operation, then end that process. Do not add it permanently to
.mcp.json or enable it merely to run a sweep.
The gate does not cover app launches, button input, or storage writes and deletes. An on-device app driven through those tools (Sub-GHz, Infrared, Bad USB, scripts) can still transmit, so watch the device during UI workflows. SubGHz frequency checks enforce hardware windows, not legal permission. GPIO changes also need operator care. Reader modes may energize LF-RFID/NFC tags. A capture is not proof of a working copy, and rolling codes should not be treated as replayable static commands.
Tools
Use your MCP client's tool list for exact arguments. The coverage table names every tool and distinguishes data, command acceptance, receiver checks, and failures.
Area | Main operations |
Device | Firmware, help, tasks, memory, battery, clock, raw CLI |
Storage | List, read/write text, stat, checksum, rename, remove, inspect captures |
SubGHz | Decoded/RAW reception, offline RAW decoding, registry identification; gated replay/chat |
Infrared | Capture/identify, decoded transmission, universal database; gated RAW CLI replay |
RFID/NFC/iButton | Receive/read where firmware supports it; gated writes/emulation |
UI | Launch apps, inspect running app, button input, capture workflows |
GPIO | Pin mode/read/write and I2C scan |
Registry | Browse, describe, fetch, install, remove, validate |
UI workflows send navigation inputs; they cannot verify the selected screen.
Check loader_info and the physical display. Bluetooth bt hci_info returns
controller metadata, not nearby devices.
For an external CC1101, pass device=1 to supported SubGHz receive tools or
set FLIPPER_DEFAULT_DEVICE=1. RAW reception uses the internal radio.
Protocol registry
Definitions in flipper_mcp/protocols match decoded text and classify saved files. They do not add firmware radio decoders. See CONTRIBUTING.md for the schema and capture requirements.
uv run --no-sync flipper-registry status
uv run --no-sync flipper-registry list --pack garage
uv run --no-sync flipper-registry describe princeton
uv run --no-sync flipper-registry validate path/to/protocol.jsonRemote indexes contain schema_version: 1, a name, and a protocols list
with each entry's id, name, category, url, version, and optional
sha256/packs. A supplied SHA-256 is checked, but is not publisher
authentication. Cached entries override bundled entries with the same ID
under $XDG_DATA_HOME/flipper-mcp/protocols or
~/.local/share/flipper-mcp/protocols.
Troubleshooting
Port busy: close the other USB client; do not run two MCP processes.
No device: check the data cable, unlock the device, and run
uv run --no-sync python -m serial.tools.list_ports.No decoded signal: try a nearby known transmitter during the capture window. RAW pulses alone do not identify a protocol.
Plugin load failure: check firmware/SD asset compatibility. An app working on-device does not prove its CLI command exists.
App stays open: use Back or long Back, then check
loader_info.NFC timeout or wrong clock: see the current limitations in PLAN.md; do not repeatedly retry disruptive operations.
Development and reference
uv sync --locked
uv run --no-sync ruff check flipper_mcp tests
uv run --no-sync ruff format --check flipper_mcp tests
uv run --no-sync ty check
uv run --no-sync pytestTo release, bump version in pyproject.toml, add a CHANGELOG entry, push, then
publish a GitHub release tagged vX.Y.Z. .github/workflows/publish.yml checks
the tag, runs the tests, publishes to PyPI, and lists server.json in the MCP
Registry with the tag's version.
Historical research: landscape, feature ideas, opportunities
Thanks to the upstream project and the USB/UI/IR work documented in the landscape comparison. MIT; see LICENSE.
Available Tools
64 toolsdatetime_getARead-only
Read the Flipper's real-time clock.
Inputs: no named parameters. Returns: result
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.
Inputs: iso (required). Returns: result
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.
Inputs: command (required), timeout_s. Returns: result
flipper_file_inspectARead-only
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.
Inputs: path (required). Returns: uid, data, kind, note, +10 more
flipper_helpARead-only
List every CLI command the Flipper supports. Useful for exploration.
Inputs: no named parameters. Returns: result
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.
Inputs: key (required), duration_s (required). Returns: result
flipper_infoARead-only
Show device info: firmware version, name, hardware, UID, battery.
Inputs: no named parameters. Returns: result
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.
Inputs: sequence (required), step_delay_s. Returns: result
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.
Inputs: no named parameters. Returns: result
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.
Inputs: key (required), press_type. Returns: result
freeARead-only
Show free RAM on the Flipper.
Inputs: no named parameters. Returns: result
gpio_modeB
Configure a GPIO pin's direction/mode.
mode: input (0) or output (1).
Inputs: pin (required), mode (required). Returns: result
gpio_readBRead-only
Read the current digital state of a GPIO pin.
pin: one of PA4, PA6, PA7, PB2, PB3, PC0, PC1, PC3 (Flipper naming).
Inputs: pin (required). Returns: result
gpio_writeA
Set a GPIO pin high (1) or low (0); configure output mode separately.
Inputs: pin (required), value (required). Returns: result
i2c_scanARead-only
Scan the GPIO I2C bus (PC0=SCL, PC1=SDA) and report responding addresses.
Inputs: no named parameters. Returns: result
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.
Inputs: key_data (required), key_type (required), duration_s. Returns: result
ibutton_readBRead-only
Scan for iButton / 1-Wire keys for duration_s seconds.
Inputs: duration_s. Returns: result
ibutton_writeADestructive
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.
Inputs: key_data (required). Returns: result
ir_rxARead-only
Listen for IR remote signals for duration_s seconds.
Point the target remote at the top of the Flipper and press buttons.
Inputs: duration_s. Returns: result
ir_scan_and_identifyBRead-only
Listen for IR, then fingerprint the capture against the registry.
Inputs: duration_s. Returns: matches, duration_s, raw_output, match_count
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.
Inputs: address (required), command (required), protocol (required). Returns: result
ir_universal_listARead-only
List the buttons available for a universal-remote category.
category: tv | audio | ac | fans | bluray_dvd | digital_sign | leds | monitor | projectors.
Inputs: category (required). Returns: result
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")
Inputs: button (required), category (required). Returns: result
ledA
Set the RGB LED on the Flipper. Each channel: 0-255.
Handy for giving the agent a visible heartbeat during long scans.
Inputs: b, g, r. Returns: result
list_installed_appsARead-only
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?"
Inputs: no named parameters. Returns: categories, total_apps
loader_closeB
Close the currently running app on the Flipper.
Inputs: no named parameters. Returns: result
loader_infoARead-only
Show what app is currently running on the Flipper.
Inputs: no named parameters. Returns: result
loader_listARead-only
List all built-in apps launchable via loader open.
Inputs: no named parameters. Returns: result
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.
Inputs: app_path_or_id (required). Returns: result
nfc_detectBRead-only
Scan for NFC tags nearby for duration_s seconds.
Inputs: duration_s. Returns: result
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.
Inputs: file_path, duration_s. Returns: result
powerADestructive
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.
Inputs: action (required). Returns: result
power_infoARead-only
Show battery / charging / power state (voltage, current, temperature, health).
Inputs: no named parameters. Returns: result
psARead-only
List running apps / tasks on the Flipper.
Inputs: no named parameters. Returns: result
registry_describeBRead-only
Return the full registry entry for one protocol id.
Inputs: protocol_id (required). Returns: One protocol definition in the registry.
registry_fetch_indexARead-only
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.
Inputs: index_url (required). Returns: result
registry_installAIdempotent
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.
Inputs: index_url (required), protocol_id (required). Returns: path, installed, source_index, sha256_verified
registry_listARead-only
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"
Inputs: pack, category. Returns: result
registry_removeADestructive
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.
Inputs: protocol_id (required). Returns: removed
registry_statusARead-only
Show registry state: bundled protocols, user-installed, cache location.
Inputs: no named parameters. Returns: bundled, cache_dir, total_loaded, bundled_count, +2 more
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.
Inputs: key_data (required), key_type (required), duration_s. Returns: result
rfid_readARead-only
Scan for 125 kHz LF-RFID cards for duration_s seconds.
Requires cli_rfid.fal plugin loaded on the firmware.
Inputs: duration_s. Returns: result
rfid_writeADestructive
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.
Inputs: key_data (required), key_type (required). Returns: result
scan_and_identifyARead-only
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)
Inputs: frequency_hz (required), device, duration_s. Returns: device, matches, duration_s, raw_output, +2 more
storage_infoARead-only
Show free/total space for the given storage mount (/int or /ext).
Inputs: path. Returns: result
storage_listARead-only
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
Inputs: path. Returns: result
storage_md5BRead-only
Compute the MD5 checksum of a file on the Flipper (firmware-side).
Inputs: path (required). Returns: result
storage_mkdirC
Create a new directory on the Flipper.
Inputs: path (required). Returns: result
storage_readBRead-only
Read a file's text contents from the Flipper filesystem.
Inputs: path (required). Returns: result
storage_removeCDestructive
Delete a file or empty directory on the Flipper.
Inputs: path (required). Returns: result
storage_renameBDestructive
Rename or move a file/directory on the Flipper.
Inputs: new_path (required), old_path (required). Returns: result
storage_statARead-only
Show metadata for a single file or directory on the Flipper.
Inputs: path (required). Returns: result
storage_writeADestructive
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.
Inputs: path (required), content (required). Returns: result
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.
Inputs: device, duration_s, frequency_hz. Returns: result
subghz_decode_rawARead-only
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).
Inputs: sub_file_path (required), duration_s. Returns: result
subghz_rxARead-only
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.
Inputs: frequency_hz (required), device, duration_s. Returns: result
subghz_rx_rawARead-only
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.
Inputs: frequency_hz (required), duration_s. Returns: result
subghz_tx_from_fileB
Transmit a saved .sub file from the Flipper SD card.
Example path: /ext/subghz/garage.sub
Inputs: sub_file_path (required). Returns: result
uptimeARead-only
Show how long the Flipper has been running since last boot.
Inputs: no named parameters. Returns: result
vibroB
Pulse the vibration motor on or off.
Inputs: on (required). Returns: result
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.
Inputs: no named parameters.
workflow_infrared_learn_startA
Launch the Infrared app and navigate into Learn New Remote.
Inputs: no named parameters.
workflow_nfc_read_startA
Launch the NFC app and navigate into Read mode in one call.
Inputs: no named parameters.
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).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 64 tools
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.
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.
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).
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
Related MCP Connectors
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
MCP server wrapping the Tesla Fleet API and TeslaMate API
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
MCP server for interacting with the Supabase platform
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceModular MCP server for interacting with a Flipper Zero from MCP-capable clients (including Claude Desktop). Supports system info, BadUSB scripts, and music playback over USB or WiFi.38MIT
- AlicenseBqualityDmaintenanceMCP server that enables full control of a Flipper Zero device over USB, including screenshots, radio protocols, and app development without requiring a COM port.351MIT
- AlicenseAqualityBmaintenanceTalk to your Flipper Zero from Claude Code — or any MCP client. Storage, app deployment, screen capture, button automation, JavaScript execution on the device, and honest answers about what is nearby.66MIT
- AlicenseAqualityBmaintenanceEnables AI agents to interact with physical embedded target boards over a dual-CDC USB bridge using MCP tools. It exposes console reading, pattern waiting, command sending, reboot/login state machines, and in-RAM MicroPython execution while a single-owner daemon safely arbitrates access to the serial devices.64Apache 2.0