# mqb Β· mq-bridge-app ![Linux](https://img.shields.io/badge/Linux-supported-green?logo=linux) ![Windows](https://img.shields.io/badge/Windows-supported-green?logo=windows) ![macOS](https://img.shields.io/badge/macOS-supported-green?logo=apple) [![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](LICENSE) [![Docs](https://img.shields.io/badge/docs-book-orange)](https://marcomq.github.io/mq-bridge/)

mq-bridge-app

crossing streams

`mq-bridge-app` is a **fast, single-command ETL and data-movement tool** built in Rust β€” and, on top of the same engine, a multi-protocol bridge and traffic workbench for messaging. It ships in **three forms that share one engine and one config format**: a **desktop app** (visual workbench), a **CLI / server** (headless bridge and one-line `copy`), and a **library** (embed the engine in Rust, Python, or Node.js). Design a route once, run it anywhere β€” no rewrite in between. Supported integration types include **Kafka**, **RabbitMQ (AMQP)**, **NATS**, **AWS SQS**, **MQTT**, **IBM MQ** (optional), **HTTP**, **gRPC**, **ZeroMQ**, **MongoDB**, **sqlx (MySQL, MariaDB, PostgreSQL)**, and filesystem endpoints. > πŸ“– **All documentation lives in the [documentation book](https://marcomq.github.io/mq-bridge/)** β€” installation, quick start, tutorials, cookbook, connector reference, CLI, MCP, and performance tuning. This README is only a short overview; the book is the single source of truth. ## A quick taste At its core is a zero-config `copy` command that moves data between databases, queues, and files in a single line of bash β€” no YAML, no pipeline definition, no code:

mqb copy: a CSV file to S3 as zstd-compressed Parquet, a filtered Postgres table to NATS, and a ClickHouse table to Kafka β€” 1,000,000 rows each, one command per line

```bash mqb copy \ 'postgres://${PGUSER}:${PGPASSWORD}@localhost/db?table=src&sslmode=disable' \ 'file://out.jsonl?format=payload' \ --filter 'amount > 100' \ --drain ``` The **scheme selects the endpoint** and **query parameters configure it**, so any sourceβ†’sink pair (Postgres, MySQL, MariaDB, SQLite, NATS, Redis, MongoDB, files, …) is just one URL each. And it's quick. Use `--resume` when the source has a safe native position (for example a Kafka consumer group, MongoDB change-stream cursor, Postgres CDC slot, or an explicitly configured SQL cursor). The legacy `--from ... --to ...` spelling remains supported. β†’ [Quick start](https://marcomq.github.io/mq-bridge/quick-start.html) Β· [Connectors](https://marcomq.github.io/mq-bridge/connectors/index.html) Β· [Performance tuning](https://marcomq.github.io/mq-bridge/operations/tuning.html) ## The three ways to run it Test connections and dial in a route in the Postman-inspired UI, export the JSON/YAML, then run that config as a service or from library code. One engine, one config format. | Form | What it is | Quick install | | --- | --- | --- | | **Desktop app (UI)** | The visual workbench β€” build/test routes, run request/response traffic, inspect message history | `brew install --cask marcomq/tap/mq-bridge` | | **CLI / server** | Headless binary: a one-line `copy`, a drain-then-exit batch job, or a long-lived bridge (can also serve the same UI in a browser) | `brew install marcomq/tap/mq-bridge-app` | | **Library** | The engine embedded in your own code β€” native **Rust**, **Python**, or **Node.js** bindings | `cargo add mq-bridge` Β· `pip install mq-bridge` Β· `npm install mq-bridge` | ![mq-bridge UI - publishers](dev/images/Screen1.jpg) **Learn each form in the book:** [the three ways to run it](https://marcomq.github.io/mq-bridge/getting-started/run-forms.html) Β· [the desktop / web UI](https://marcomq.github.io/mq-bridge/getting-started/desktop-ui.html) Β· [CLI commands](https://marcomq.github.io/mq-bridge/reference/cli.html) Β· [MCP server](https://marcomq.github.io/mq-bridge/MCP.html) Β· [library bindings](https://marcomq.github.io/mq-bridge/reference/bindings.html). ## Install `brew` is the quickest path on **macOS and Linux**: ```bash brew install marcomq/tap/mq-bridge-app # CLI / server brew install --cask marcomq/tap/mq-bridge # desktop app ``` On **Windows**, install the CLI with `cargo binstall mq-bridge-app`, or download the desktop installer / CLI from the [Releases page](https://github.com/marcomq/mq-bridge/releases). Also available via `cargo install mq-bridge-app` (from source) and the Docker image `ghcr.io/marcomq/mq-bridge-app:latest`. β†’ Every install method and platform (including the IBM MQ build and Docker) is in the **[Install guide](https://marcomq.github.io/mq-bridge/INSTALL.html)**; to compile from source see [Building](https://marcomq.github.io/mq-bridge/BUILD.html). ## Use it from an AI agent The same binary is an MCP server, so an agent can move data without the rows passing through its context: ```bash mqb mcp install # register with Claude Code / Claude Desktop / Cursor ``` - MCP Registry name: `mcp-name: io.github.marcomq/mq-bridge` β†’ Tools, transports, and the token-cost measurement: **[MCP server](https://marcomq.github.io/mq-bridge/MCP.html)**. ## Features - **Multi-protocol bridging** β€” Kafka, IBM MQ, NATS, AMQP (RabbitMQ), MQTT, AWS SQS, gRPC, ZeroMQ, MongoDB, sqlx (MySQL/MariaDB/PostgreSQL), HTTP, and files. Act as an HTTP server *and* client, with full request-response support. - **Middleware chains** β€” retries, dead-letter queues, deduplication, rate limiting, buffering, transforms, weak-join correlation, and more, wrapping any endpoint. - **Built-in web UI** β€” Svelte-based management for publishers, consumers, routes, runtime status, presets, and imports; the same UI the CLI serves in a browser. - **Native plugins** β€” load an endpoint or middleware this binary never compiled (Pulsar, an in-house transport) from a shared library, via `plugins:` in the config or `--plugin `, and use it by name in routes. No special build needed; plugin paths are read only at startup, so adding one means editing the trusted startup configuration and restarting: [Native plugins](https://marcomq.github.io/mq-bridge/extending/plugins.html). - **Observability** β€” structured JSON logging, a Prometheus metrics endpoint, and `mqb status` for a live table of everything running on the machine. - **Flexible configuration** β€” hierarchical files (YAML/JSON/TOML) plus environment variables, suited to Container/Kubernetes. - **Security & storage** β€” config security modes (plain / extracted secrets / encrypted config / persistent encrypted history), encryption at rest, and local-first operation. - **High performance** β€” Rust + Tokio: low latency, high concurrency, small memory footprint. ## Why not just an API client? `mq-bridge-app`'s UI overlaps with API clients like Postman, Bruno, Insomnia, and Hoppscotch, but its center of gravity is different: message bridging, runtime operation, and long-lived route management rather than just request composition. Exact feature sets vary by product and edition; this captures the difference in emphasis. | Capability | mq-bridge | Postman | Bruno | Insomnia | Hoppscotch | | --- | --- | --- | --- | --- | --- | | Basic HTTP/API requests | βœ“ | βœ“ | βœ“ | βœ“ | βœ“ | | Scripting | β€” | βœ“ | βœ“ | βœ“ | βœ“ | | Cookie jar | Not yet | βœ“ | βœ“ | βœ“ | ~ | | Multipart forms | β€” | βœ“ | βœ“ | βœ“ | βœ“ | | Hex-level payload debugging | βœ“ | β€” | β€” | β€” | β€” | | Broker pub/sub workflow | βœ“ | MQTT | β€” | β€” | MQTT | | Long-lived consumers/routes | βœ“ | β€” | β€” | β€” | β€” | | Bridge traffic between protocols | βœ“ | β€” | β€” | β€” | β€” | | Replay messages | βœ“ | ~ | β€” | β€” | ~ | | Local-first workspace | βœ“ | ~ | βœ“ | βœ“ | ~ | | Git-friendly config | βœ“ | ~ | βœ“ | βœ“ | ~ | | Cloud sync by default | β€” | βœ“ | β€” | Optional | Optional | | AI / agent features | β€” | βœ“ | β€” | ~ | ~ | | Encrypted config | βœ“ | ~ | ~ | ~ | ~ | Use Postman/Bruno when your main job is crafting and sharing API requests; use `mq-bridge-app` when you need to connect systems, move messages between protocols, inspect live traffic, and manage bridge-style runtime configuration. ## Performance A CSV β†’ JSONL conversion hit **3,134,796 rows/s** (mq-bridge 0.4.20) β€” ~1.5x DuckDB's all-core copy of the same file, on fewer cores and ~18x less memory. The same job **through an MCP tool call** ran at **3,108,517 rows/s** (mq-bridge 1.2.0), level with that session's 3,076,923 rows/s CLI baseline: the MCP interface adds a small fixed request/response cost, not a per-row tax. It costs an agent a *flat* ~385 tokens regardless of row count, because the rows never enter the model's context. On a Kafka β†’ file relay using mq-bridge-app's default file format and no transform, the same engine was **~78% faster than Sea Streamer** comparing both on the mimalloc allocator (~82% against its default-allocator build); the native file-format caveats are detailed in the linked benchmark documentation. β†’ Full numbers, methodology, and knobs: [Performance tuning](https://marcomq.github.io/mq-bridge/operations/tuning.html) and [`benches/etl/README.md`](benches/etl/README.md). ## Test on nats / kafka / postgres .... For testing, [docker-compose files](https://github.com/marcomq/mq-bridge/tree/main/tests/integration/docker-compose) are available for supported backends: ```bash docker-compose -f https://raw.githubusercontent.com/marcomq/mq-bridge/main/tests/integration/docker-compose/postgres.yml up ``` ## How it's built `mq-bridge-app` uses the [`mq-bridge`](https://github.com/marcomq/mq-bridge) engine *on itself* β€” the management UI is served through the engine's own HTTP-request/response routing, and the UI form is generated from the Rust config schema (no hand-written form code). See [How the app is built](https://marcomq.github.io/mq-bridge/getting-started/app-architecture.html). ## Status Active development. Originally the reference implementation and testbed for the [`mq-bridge`](https://github.com/marcomq/mq-bridge) engine. The UI/Tauri layer is a working demo rather than a reference implementation β€” test before relying on it in production. ## License mq-bridge-app is dual-licensed under either the [MIT license](LICENSE-MIT) or the [Apache License, Version 2.0](LICENSE-APACHE), at your option. Third-party terms for the CLI and desktop distributions are in [THIRD_PARTY_LICENSES.txt](crates/core/THIRD_PARTY_LICENSES.txt).