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): The Meshtastic Python library has been replaced with mtjk, a fork with BLE reliability improvements (auto-reconnection, state management, notification recovery) along with thread-safety and connection handling fixes. Changes may be upstreamed selectively once they've been battle-tested here. See the Refactor Program for scope and rationale.
Documentation
MMRelay supports multiple deployment methods including pip/pipx, Docker, and Kubernetes. For complete setup instructions and all deployment options, see:
- Installation Instructions - Setup and configuration guide
- What's New in v1.3 - Latest release changes and migration info
- Migration Guide for v1.3 - Upgrading from v1.2 or earlier
- Docker Guide - Docker deployment methods
- Kubernetes Guide - Kubernetes deployment guide
- E2EE Setup Guide - Matrix End-to-End Encryption configuration
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:
Produce high-level details about your mesh:
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
branchandtagrefs 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!
- Our project's room: #mmrelay:matrix.org
- Part of the Meshnet Club Matrix space: #meshnetclub:matrix.org
- Public Relay Room: #mmrelay-relay-room:matrix.org - Where we bridge multiple meshnets. Feel free to join us, with or without a relay!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mmrelay-1.3.5.tar.gz.
File metadata
- Download URL: mmrelay-1.3.5.tar.gz
- Upload date:
- Size: 917.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ed719bded31f548486b2bbb4c6889a6c78f0aaa2677f7a5e8938c43bae2a2e
|
|
| MD5 |
255283cb42b63587b82c802d4e6aa017
|
|
| BLAKE2b-256 |
4601f0893810b784d004ffb0fe2d8a24b475606f0be6aedc4219e8bd9056cd34
|
Provenance
The following attestation bundles were made for mmrelay-1.3.5.tar.gz:
Publisher:
pypi-publish.yml on jeremiah-k/meshtastic-matrix-relay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmrelay-1.3.5.tar.gz -
Subject digest:
99ed719bded31f548486b2bbb4c6889a6c78f0aaa2677f7a5e8938c43bae2a2e - Sigstore transparency entry: 1353108130
- Sigstore integration time:
-
Permalink:
jeremiah-k/meshtastic-matrix-relay@a2f8e9021e48ccc6a7ef1fa19564084c1d7adfff -
Branch / Tag:
refs/tags/1.3.5 - Owner: https://github.com/jeremiah-k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@a2f8e9021e48ccc6a7ef1fa19564084c1d7adfff -
Trigger Event:
release
-
Statement type:
File details
Details for the file mmrelay-1.3.5-py3-none-any.whl.
File metadata
- Download URL: mmrelay-1.3.5-py3-none-any.whl
- Upload date:
- Size: 418.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
009b18cfee8467b1b3c6958baddb30776ade490708f2567ca8aa8c45b008bb25
|
|
| MD5 |
e1c53903db16a2253982f9fba3ad27ed
|
|
| BLAKE2b-256 |
9a6c0827919d9760ad81aa89f3ca81edf334fa6b6a02adb02cf57c2211aff77f
|
Provenance
The following attestation bundles were made for mmrelay-1.3.5-py3-none-any.whl:
Publisher:
pypi-publish.yml on jeremiah-k/meshtastic-matrix-relay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmrelay-1.3.5-py3-none-any.whl -
Subject digest:
009b18cfee8467b1b3c6958baddb30776ade490708f2567ca8aa8c45b008bb25 - Sigstore transparency entry: 1353108279
- Sigstore integration time:
-
Permalink:
jeremiah-k/meshtastic-matrix-relay@a2f8e9021e48ccc6a7ef1fa19564084c1d7adfff -
Branch / Tag:
refs/tags/1.3.5 - Owner: https://github.com/jeremiah-k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@a2f8e9021e48ccc6a7ef1fa19564084c1d7adfff -
Trigger Event:
release
-
Statement type: