Back to Browse

Flipper MCP Server

by Jamiew
Developer ToolsModerate5.1MCP RegistryLocal
Free

Server data from the Official MCP Registry

Drive a Flipper Zero over USB: storage, IR, Sub-GHz, RFID/NFC receive, apps; transmit is opt-in

About

Drive a Flipper Zero over USB: storage, IR, Sub-GHz, RFID/NFC receive, apps; transmit is opt-in

Security Report

5.1
Moderate5.1Moderate Risk

This is a local MCP server for driving a Flipper Zero over USB serial, and its permissions (serial device access, local storage, and some outbound HTTPS for registry index fetches) largely match its stated purpose. Transmit, emulate, write, and power actions are gated behind an environment flag, and registry fetches enforce HTTPS and optional SHA-256 checks. The main concerns are that the gate does not cover on-device app-driven transmission or storage writes, and that the bridge file was truncated so its full contents could not be reviewed. Supply chain analysis found 2 known vulnerabilities in dependencies (1 critical, 0 high severity). Package verification found 1 issue.

4 files analyzed · 8 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

serial_port

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

HTTP Network Access

Connects to external APIs or services over the internet.

process_spawn

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Serial device path for the Flipper; auto-detected when unsetOptional

Environment variable: FLIPPER_PORT

SubGHz radio: 0 = internal CC1101, 1 = external module on GPIOOptional

Environment variable: FLIPPER_DEFAULT_DEVICE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "flipper-mcp-jamiew": {
      "command": "uvx",
      "args": [
        "flipper-mcp-jamiew==0.7.3"
      ],
      "env": {
        "FLIPPER_PORT": "your-flipper-port-here",
        "FLIPPER_DEFAULT_DEVICE": "your-flipper-default-device-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

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.

AreaMain operations
DeviceFirmware, help, tasks, memory, battery, clock, raw CLI
StorageList, read/write text, stat, checksum, rename, remove, inspect captures
SubGHzDecoded/RAW reception, offline RAW decoding, registry identification; gated replay/chat
InfraredCapture/identify, decoded transmission, universal database; gated RAW CLI replay
RFID/NFC/iButtonReceive/read where firmware supports it; gated writes/emulation
UILaunch apps, inspect running app, button input, capture workflows
GPIOPin mode/read/write and I2C scan
RegistryBrowse, 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.

Thanks to the upstream project and the USB/UI/IR work documented in the landscape comparison. MIT; see LICENSE.

Reviews

No reviews yet

Be the first to review this server!