sahara-mcp
Provides tools for interacting with Qualcomm EDL devices over the Sahara protocol, enabling device enumeration, handshake, chip info retrieval, Firehose programmer upload, command execution, and device reset.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sahara-mcp
A native Python MCP server for the Qualcomm Sahara protocol — the emergency-download boot protocol used by Qualcomm SoCs. It lets LLM agents talk directly to an EDL device over USB: enumerate devices, handshake, query the SoC identity, upload a Firehose programmer, run command-mode client commands, and reset the device.
No GPL code. The wire format is implemented from the publicly documented
protocol facts in linux-msm/qdl
(BSD-3-Clause). bkerler/edl was consulted
only as a behavioural reference and is not imported, linked, or copied.
Use at your own risk. This talks to your phone's low-level bootloader on the EDL (
9008) interface. Badly placed wires, wrong images, or power loss while flashing can brick a device. You have been warned.
Features
sahara_list_devices— enumerate Qualcomm EDL devices on USBsahara_handshake— perform the HELLO exchange, report protocol version and device modesahara_chipinfo— read serial,msm_id/oem_id/model_id(hw id), and OEM public-key hashsahara_upload— serve image(s) (typically a Firehose programmer as image id0) in Sahara image-transfer modesahara_execute— run a single command-mode client command (serial,msm_hw_id,oem_pk_hash,chip_id_v3, or a raw number)sahara_reset— reset the device over Sahara
Related MCP server: firehose-mcp
Requirements
Python 3.8+
Windows/macOS/Linux with access to the device's EDL USB interface
A libusb backend for pyusb
Windows driver note
The EDL interface must use WinUSB (via libusb), not the default
Qualcomm driver. Use Zadig to replace the driver on
the 05C6/9008 device before pointing pyusb at it.
Install
pip install -e .This pulls in mcp, pyusb, and (on Windows) libusb wheels.
Usage
Start the MCP server and point an MCP client (e.g. opencode, Claude Desktop) at it:
python -m sahara_mcp_server # stdio transportExample tool call — upload a Firehose programmer and identify the SoC:
sahara_upload(index=0, images="0:C:\\firmware\\prog_firehose_ddr.elf")
sahara_chipinfo(index=0)How it works
The Sahara protocol is a simple request/response stream over one bulk IN and
one bulk OUT endpoint. On entry the device sends a HELLO; the host replies
with HELLO_RESP choosing a mode (IMAGE_TX_PENDING for image transfers,
COMMAND for client commands). This package implements the packet framing,
the known command ids (READ_DATA, READ_DATA64, END_OF_IMAGE, DONE,
SWITCH_MODE, EXECUTE, RESET, …), and the well-known quirks
(MSM8916 EDL reporting an incomplete DONE, QUD devices that swallow the
first HELLO).
Protocol reference
linux-msm/qdl—src/sahara.c(BSD-3-Clause) — primary protocol reference, credited per its license.bkerler/edl(GPL-3.0) — consulted for behaviour; not imported. If you need a full-featured flashing tool, consider using it directly instead.
License
GPL-3.0. Protocol facts derived from linux-msm/qdl
(BSD-3-Clause, Linaro Ltd / Qualcomm referents in that project's headers);
all code here is original. Copyright (c) 2026 libertyrights.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables LLMs to control and manage Android devices via ADB, including app installation, UI interaction, and device monitoring.3512GPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables LLM agents to control Qualcomm EDL devices speaking the Firehose protocol, including partition read/write/erase, storage info queries, raw XML commands, and device reset.GPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Qualcomm modems via the DIAG/QCDM protocol over serial ports, providing tools for NV read/write, memory peek/poke, and EFS file operations.GPL 3.0
- AlicenseAqualityBmaintenanceEnables AI agents to manage MicroPython and CircuitPython boards over USB, including listing boards, browsing and editing files, running Python code, resetting boards, and installing firmware.14491 npm10MIT