Flipper Zero MCP Server

Flipper Zero MCP Server

Modular 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.

Category
Visit Server

README

Flipper Zero MCP Server

Modular Model Context Protocol (MCP) server for interacting with a Flipper Zero from MCP-capable clients (including Claude Desktop).

License: MIT Python 3.10+

Features

  • Modular architecture: functionality is provided by modules under src/flipper_mcp/modules/
  • Multiple transports: USB and WiFi are implemented; Bluetooth is present as a stub transport
  • Protobuf RPC support (nanopb-delimited framing) with generated protobuf code committed in src/flipper_mcp/core/protobuf_gen/
  • Built-in modules:
    • systeminfo: connection/device/SD-card status
    • badusb: generate, validate, store, and execute BadUSB scripts (requires SD card for file operations)
    • music: save/play songs using Flipper Music Format (FMF) (requires SD card)

Documentation

  • docs/index.md: documentation hub
  • docs/claude_setup.md: Claude Desktop setup (kept up to date)
  • docs/wifi_dev_board.md: WiFi Dev Board setup, architecture, and protobuf RPC over WiFi
  • firmware/tcp_uart_bridge/README.md: WiFi Dev Board TCP↔UART bridge firmware (“flirmware”)
  • docs/modules/: built-in module documentation
  • docs/core/: core server documentation

Installation

git clone https://github.com/busse/flipperzero-mcp.git
cd flipperzero-mcp

Quick start

pip install -e .
flipper-mcp

The server communicates over stdio (MCP) and will auto-discover built-in modules at startup.

Quick start with Claude Desktop (USB-only)

  1. Connect your Flipper Zero via USB.
  2. Add one MCP server entry to Claude Desktop config:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\\Claude\\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "flipper-zero": {
      "command": "python3",
      "args": ["-m", "flipper_mcp.cli.main"],
      "cwd": "/path/to/flipperzero-mcp",
      "env": {
        "PYTHONUNBUFFERED": "1",
        "FLIPPER_TRANSPORT": "usb"
      }
    }
  }
}
  1. Restart Claude Desktop and ask: “What tools do you have available?”

Configuration

The CLI currently uses environment variables for configuration:

  • FLIPPER_TRANSPORT: auto (default), usb, wifi, bluetooth/ble
  • FLIPPER_PORT: override the USB serial device path (only used for usb)
  • FLIPPER_WIFI_HOST: Flipper WiFi dev board host/IP (only used for wifi)
  • FLIPPER_WIFI_PORT: Flipper WiFi dev board TCP port (only used for wifi)
  • FLIPPER_DEBUG: enable protobuf RPC debug logging (1, true, yes, on)
  • FLIPPER_FORCE_START_RPC_SESSION: force sending start_rpc_session on connect (1, true, yes, on)
  • FLIPPER_MCP_ALLOW_STUB_MODE: DEV ONLY. If enabled (1, true, yes, on), the server will run in stub mode when it cannot connect to hardware. Default: disabled.

Default behavior (recommended): one MCP config, USB-first with optional WiFi fallback

By default (FLIPPER_TRANSPORT unset), the server uses auto mode:

  • It tries USB first
  • If USB is not available and FLIPPER_WIFI_HOST is set, it falls back to WiFi

Examples:

# Use a specific USB port
export FLIPPER_TRANSPORT=usb
export FLIPPER_PORT=/dev/ttyACM0
flipper-mcp

# Use WiFi transport
export FLIPPER_TRANSPORT=wifi
export FLIPPER_WIFI_HOST=192.168.1.1
export FLIPPER_WIFI_PORT=8080
flipper-mcp

# Auto mode (default): try USB, fall back to WiFi if FLIPPER_WIFI_HOST is set
export FLIPPER_WIFI_HOST=192.168.1.100
export FLIPPER_WIFI_PORT=8080
flipper-mcp

Using with Claude Desktop

See docs/claude_setup.md.

Available tools (built-in)

connection (health/recovery)

  • flipper_connection_health (authoritative transport + protobuf-RPC health)
  • flipper_connection_reconnect (disconnect/connect, then health)

systeminfo

  • systeminfo_get

badusb

  • badusb_list
  • badusb_read
  • badusb_generate
  • badusb_validate
  • badusb_write
  • badusb_delete
  • badusb_diff
  • badusb_rename
  • badusb_execute (requires confirm=true)
  • badusb_workflow

music

  • music_get_format
  • music_play

Contributing

We welcome contributions! This project is pro-AI-assisted coding and engineering - we encourage and welcome contributions that leverage AI tools like Claude Code, GitHub Copilot, ChatGPT, Cursor, or any other AI coding assistants. If you used AI assistance in your contribution, that's great! Please mention it in your pull request.

See CONTRIBUTING.md and docs/module_development.md.

License

MIT License - see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured