Skip to main content

Bridge between Meshtastic mesh networks and Matrix chat rooms

Project description

MMRelay

(Meshtastic <=> Matrix Relay)

A powerful and easy-to-use relay between Meshtastic devices and Matrix chat rooms, allowing seamless communication across platforms. This opens the door for bridging Meshtastic devices to many other platforms.

Features

  • Bidirectional message relay between Meshtastic devices and Matrix chat rooms, capable of supporting multiple meshnets
  • Supports serial, network, and BLE connections for Meshtastic devices
  • Custom fields are embedded in Matrix messages for relaying messages between multiple meshnets
  • Truncates long messages to fit within Meshtastic's payload size
  • SQLite database to store node information for improved functionality
  • Customizable logging level for easy debugging
  • Configurable through a simple YAML file
  • Supports mapping multiple rooms and channels 1:1
  • Relays messages to/from an MQTT broker, if configured in the Meshtastic firmware
  • Bidirectional replies and reactions support
  • Native Docker support
  • Supports encrypted Matrix rooms 🔐 (Matrix E2EE)
  • Unified directory structure 📁 (New in v1.3)

Encryption note: MMRelay supports encrypted Matrix rooms (Matrix E2EE). For details on how this works and its security implications, see the E2EE Setup Guide.

Improved BLE stability (v1.3.3): BLE reliability improved in v1.3.3 after switching BLE handling to mtjk.

Documentation

MMRelay supports multiple deployment methods including pip/pipx, Docker, and Kubernetes. For complete setup instructions and all deployment options, see:


Plugins

MMRelay supports plugins for extending its functionality, enabling customization and enhancement of the relay to suit specific needs.

Core Plugins

Generate a map of your nodes:

Map Plugin Screenshot

Produce high-level details about your mesh:

Mesh Details Screenshot

See the full list of core plugins.

Plugin System

MMRelay supports three plugin types:

  • Core Plugins: Built in with MMRelay
  • Community Plugins: Git-based plugins that MMRelay syncs for you
  • Custom Plugins: Local/manual plugins for private use and development

MMRelay manages plugin directories under MMRELAY_HOME (default ~/.mmrelay). Most users only need config.yaml; path details matter mainly when authoring custom plugins.

Check the Community Plugins Development Guide in our wiki to get started.

✨️ Visit the Community Plugins List!

Install a Community Plugin

Add the repository under the community-plugins section in config.yaml:

community-plugins:
  example-plugin:
    active: true
    repository: https://github.com/jeremiah-k/mmr-plugin-template.git
    commit: 0123456789abcdef0123456789abcdef01234567
    install_requirements: true
  • Community plugins run in the same MMRelay process and inherit its permissions. Use trusted sources.
  • Dependency installation is per-plugin and defaults to off (install_requirements: false).
  • Prefer commit-pinned refs.
  • Explicit branch and tag refs are allowed for dependency install, but MMRelay logs warnings.
  • Missing ref (implicit default branch) is not eligible for dependency install.
  • Dependencies install once per resolved local commit and are skipped when unchanged.

Getting Started with Matrix

See our Wiki page Getting Started With Matrix & MMRelay.


Already on Matrix?

Join us!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mmrelay-1.3.4.tar.gz (890.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mmrelay-1.3.4-py3-none-any.whl (408.9 kB view details)

Uploaded Python 3

File details

Details for the file mmrelay-1.3.4.tar.gz.

File metadata

  • Download URL: mmrelay-1.3.4.tar.gz
  • Upload date:
  • Size: 890.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mmrelay-1.3.4.tar.gz
Algorithm Hash digest
SHA256 a532e43643fca827ce11f961ffb7099a2ab32c34ce293d0bd0a6f54bddacc172
MD5 ee4caeb3df778663a9bea3cc7094f91c
BLAKE2b-256 f587b949c3b2a41ef7e0f97f6ae2ba6965b323a500805dcac9481daf98f102c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmrelay-1.3.4.tar.gz:

Publisher: pypi-publish.yml on jeremiah-k/meshtastic-matrix-relay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mmrelay-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: mmrelay-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 408.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mmrelay-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3be3a5c8e27498b2616101e4db08ea66822fbd4d46edf7b2c5544f59877c05a2
MD5 35660f7b891f994de0860f4b0b7bc4f7
BLAKE2b-256 2855d22701a3538dd8bd8c59ba54413b6eee2d23ebf2f754fb30ae2e3952127e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmrelay-1.3.4-py3-none-any.whl:

Publisher: pypi-publish.yml on jeremiah-k/meshtastic-matrix-relay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page