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.
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-jamiew
Other 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 --locked
The 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-smoke
Safety 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.json
Remote 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 pytest
To 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.
- IR capture and playback
- Transport and SDK notes
- Changelog
- 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.
Metadata
Release files for flipper-mcp-jamiew 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flipper_mcp_jamiew-0.7.3.tar.gz | 35.7 kB | With provenance | Details for flipper_mcp_jamiew-0.7.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flipper_mcp_jamiew-0.7.3-py3-none-any.whl | Python 3 | none | any | Details for flipper_mcp_jamiew-0.7.3-py3-none-any.whl |
Total release size: 80.0 kB
Release files / flipper_mcp_jamiew-0.7.3.tar.gz
| Download URL | flipper_mcp_jamiew-0.7.3.tar.gz |
|---|---|
| Size | 35.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26cbb0020879cbf1f6f54af60eb426e85efa88343ff19ec9efb615520ee3d69f
|
|
BLAKE2b-256 checksum How to use checksums |
a95ca9e19a2fe331de7ed4e8615036228ebf3a010ce19095056391d3ecb0a1ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / flipper_mcp_jamiew-0.7.3-py3-none-any.whl
| Download URL | flipper_mcp_jamiew-0.7.3-py3-none-any.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23fcd00b3dcc7d9c45bedb08fc8a6c82a7716dc4417d251c51028534ee40ee02
|
|
BLAKE2b-256 checksum How to use checksums |
85f3407609522b9e4048a174fe49ed485bba93f75dd99901f267fc16de867771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for flipper-mcp-jamiew 0.7.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for flipper_mcp_jamiew-0.7.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.