mq-bridge-app
io.github.marcomq由 GitHub 帳號 marcomq 發布v1.0.2更新於 Oct 24, 2026
Move data between 15+ databases, queues and files at high throughput, without it entering context
概覽
mq-bridge 的 MCP 入口,提供零程式碼 ETL 引擎,在 15 種以上資料庫、訊息佇列和檔案之間搬移資料,且資料不進入上下文。
- 可以做什麼
- 執行已設定的路由,在訊息中介軟體、資料庫、檔案和 HTTP 端點之間複製資料
- 把 Postgres 或 MongoDB 的變更串流到 Kafka、檔案或資料倉儲
- 讀寫 SQL 資料庫、MongoDB、ClickHouse、物件儲存以及 CSV/JSONL 檔案
- 在路由中套用轉換、重試、死信佇列、去重和限流
- 呼叫相容於 OpenAI 的 LLM 與向量介面,對訊息進行分類、摘要或向量化
- 適用情境
- 適合讓助理建立或驅動系統之間的大批量資料搬移,例如訊息中介軟體互通、資料庫寫入、CDC 管線或檔案格式轉換,而不必讓紀錄經過模型。它是資料搬移工具,不適合做視窗、連接等有狀態串流處理。
- 執行需求
- 以本機桌面程序透過 stdio 執行,提供 OCI 映像與 Cargo 套件兩種發佈方式。每條路由需要來源與目標系統的連線資訊(中介軟體位址、資料庫憑證、物件儲存、HTTP 端點),通常透過 YAML 設定或環境變數提供。清單未宣告任何驗證或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 mq-bridge-app,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mqb · mq-bridge
crossing streams · library
One fast Rust engine to move and reshape data between brokers, databases, files and HTTP. Try it in the CLI, ship it in your Rust, Python or Node.js service.
[Crates.io] [Docs.rs] [Book] [Benchmark] [Linux] [Windows] [macOS] [Supply chain] [Security] [License]
🖥️ mq-bridge-app · 📊 ETL benchmarks · 🏗️ Architecture · ⚙️ Config · 📚 Middleware & endpoint reference
What is mq-bridge?
mq-bridge is an asynchronous Rust library that moves messages and data between systems: Kafka, NATS, RabbitMQ, MQTT, MongoDB, PostgreSQL/MySQL/SQLite, Postgres CDC, ClickHouse, Redis Streams, HTTP, WebSocket, gRPC, ZeroMQ, AWS SQS/SNS, IBM MQ, cloud object storage, files, and in-memory channels. Every endpoint sits behind the same batch-shaped receive_batch / send_batch traits, so any source can feed any sink.
A route connects one input to one output and shapes the data on the way: transform, filter, switch, fan out, enrich, retry, rate-limit, deduplicate, or answer a request, all by configuration. The engine is fast: a typing transform runs at ~1.6M rows/s, ~19.5x Redpanda Connect on the same job. Structural endpoints such as switch, fanout and sequence nest freely inside a route, and wrong delivery combinations fail when the route starts, not in production. Where configuration isn't enough, you add a handler in Rust, Python or Node.js. Batching, ack/nack, commit ordering and broker I/O stay in the Tokio-based core, so your code works with plain CanonicalMessages and doesn't handle Kafka offsets or AMQP nacks.
Try it in the CLI, ship it in your service: mq-bridge-app runs a route from the command line (mqb), as a server, desktop app or MCP server; the same config runs as a library inside your Rust, Python or Node.js service when you need lower latency or want the pipeline in your production code. No daemon or platform to operate.
Bridge between ecosystems: two plugins add over 100 more inputs and outputs: Redpanda Connect's components and faucet's connectors. They load only when a route uses them and run in the same process, so one route can read with one framework, process with a second and write with a third, under one ack chain and with mq-bridge's retry, DLQ and deduplication around all of it. See Combine ecosystems in one route.
Use cases
Quick Start
Install the library for your language:
Describe a route — here Kafka → NATS with retries — in routes.yaml:
Run it:
Attach a handler (with_handler / withHandler) when you need business logic in between. No code at all? mq-bridge-app runs the same engine from the command line or a desktop UI:
Capabilities at a glance
Every row works from the Rust crate, the Python and Node.js packages, and the zero-code app; the Cargo feature is only needed when you build the Rust crate yourself. The linked book documents the library as well as the app.
The Connect plugin links only Redpanda Connect components free of Redpanda Community License code (bundled code is Apache-2.0 and MIT), so some upstream components, such as its Kafka, AWS and Snowflake ones, are not included; see what is not included. Native endpoints and the faucet plugin cover most of that gap.
Combine ecosystems in one route
No single framework has every connector and processor. mq-bridge combines three in one route:
Plugins load only when a route names them and run in-process. Acks, commits, retry, dlq and deduplication work across all parts, and plugin endpoints nest inside switch, fanout and sequence. Where a system has both, prefer the native endpoint.
Install the Connect plugin with brew, conda, pip or npm (install), the faucet plugin with pip install mq-bridge-faucet or npm install mq-bridge-faucet (README).
For AI agents: llms.txt is a curated index of the documentation, and
npx skills add marcomq/mq-bridge installs a skill that
teaches Claude Code, Codex and other agents to drive mqb.
Benchmarks
Like-for-like ETL comparisons, measured through the zero-code mq-bridge-app; every number, baseline and command is in the ETL benchmark harness:
The CSV row reuses an existing, independently published 1M-row CSV → JSONL workload, on a byte-identical fixture: 7 mixed-type columns, seed 42, 121,981,421 bytes, SHA-256 a84894e0…0c45b221 (full definition). Whole-process wall-clock, no transformation, Meltano run on the same machine and file.
All figures: mq-bridge 0.4.20, except the Redpanda Connect rows, which were measured together with their native mq-bridge figures in one later session (scenario 10). DuckDB is a throughput ceiling for the conversion itself, not an ETL tool.
External benchmark: both the Rust library (mq-bridge) and the Python binding (mq-bridge-py) are entries on the third-party http-arena.com leaderboard, which compares HTTP frameworks by requests per second (live, so rankings shift over time). It measures mq-bridge's HTTP (and WebSocket) serving path, which is one endpoint among many, not broker or ETL throughput; those are covered under Benchmarks. See the Python analysis notes for the local comparison harness.
Why mq-bridge
What you get from one engine, whichever language you call it from:
- 20+ native transports, 100+ more via plugin, one API: every connector listed above, plus
dir_spool(a crash-safe directory FIFO queue), behind the samereceive_batch/send_batchshape. - Redpanda Connect reach: the Connect plugin adds Redpanda Connect's production-proven components — 56 inputs and 68 outputs as endpoints, plus 86 processors, most of which also run as middleware on any endpoint — while mq-bridge keeps routing, batching, retries, DLQ and deduplication.
- faucet reach: the faucet plugin adds faucet's 41 sources and 34 sinks as one
faucetendpoint: MySQL / SQL Server / Oracle CDC, Snowflake, BigQuery, Iceberg, Delta, GraphQL APIs and Singer taps, with commit-token exactly-once into sinks that support it. - The best of three frameworks in one route: native endpoints, Connect and faucet parts mix freely in one route and one process; see Combine ecosystems in one route.
- Change Data Capture: stream row-level changes from Postgres (logical replication /
pgoutput) and MongoDB (change streams) as flat rows with an operation marker. - Restart-safe delivery: batch-aware ack/nack with commit sequencing for cumulative-ack brokers; the integration suite shows no data loss during in-flight broker restarts, including a Postgres CDC restart-safety test.
- Reliability middleware, not a framework: retries, dead-letter queues, deduplication, rate limiting, and cookie/session persistence wrap any endpoint.
- Polyglot on one engine: the same Rust core ships as native Python and Node.js bindings; routing, batching, and broker I/O stay in Rust.
- TLS everywhere, one config shape: a single
TlsConfigblock (CA bundle, client cert/key for mTLS, insecure-skip) is reused across transports. - Self-hosted, no daemon: generate config in the optional UI, paste it into your code, run it in-process. No hosted control plane, no separate scheduler.
Prefer not to write code? mq-bridge-app runs the exact same engine as a standalone, zero-code ETL service configured entirely by YAML or environment variables. It ships a Postman-style UI to build, send, and inspect messages against a route, and can import Postman collections and AsyncAPI documents to scaffold routes and endpoints. Everything about the app — install, CLI, UI, cookbook, tuning — is in the 📖 book.
When to use mq-bridge
- Hybrid Messaging: Connect systems speaking different protocols (e.g., MQTT to Kafka) without writing a custom adapter for every pair.
- Batch-heavy Pipelines: Increase throughput by moving messages in batches while keeping per-message ack/nack decisions.
- Infrastructure Abstraction: Write business logic against
CanonicalMessages and swap the underlying transport later. - Resilient Pipelines: Apply retry, DLQ, deduplication, limiter, and cookie/session behavior consistently around endpoints.
- Database Integration: Combine databases with message brokers, for example by ingesting messages into SQL/MongoDB or forwarding outbox rows to a broker.
- Sidecar / Gateway: Run the bridge beside another service to ingest, filter, and route messages before they reach the core application.
When NOT to use mq-bridge
- Stateful Stream Processing: For windowing, joins, or complex aggregations over time, dedicated stream processing engines are more suitable.
- Domain Aggregate Management: If you need a framework to manage the lifecycle, versioning, and replay of domain aggregates (Event Sourcing), use a specialized library.
mq-bridgehandles the bus, not the entity. - Protocol-Specific Power Features:
mq-bridgeintentionally exposes a common subset: publish/consume, pub/sub where possible, request-reply where possible, batching, middleware, and ack/nack handling. If your application depends on highly specific broker features, using that broker's native client directly may be better.
Documentation
The 📖 mq-bridge book covers the library and the app. Connectors, middleware and tuning use the same settings in both.
Status
mq-bridge was created in 2025. Its reliability behavior is exercised by an automated integration and performance suite across supported endpoints, in each of the queue and subscriber modes that endpoint supports:
- All endpoints showed no data loss during in-flight broker restarts; MQTT publish confirmation was hardened until a chaos test drove in-flight loss to zero.
- Postgres CDC has a restart-safety test: an un-acked, in-flight batch is redelivered after a database restart with no loss and no gap.
It is used as rust library in armature and as python lib in omniload.
Stability and Rust version
Since 1.0 the Rust API follows semantic versioning: the crate root and the modules models, traits, errors, outcomes, extensions, plugin (the SDK), type_handler, publisher, route and checkpoint. The implementation modules endpoints, middleware, support and test_utils may change in a minor release, and so may the major version of a re-exported driver crate (mq_bridge::sqlx, mq_bridge::rdkafka, ...).
A minor release may add a configuration field, a variant of a configuration or error enum, and raise the minimum Rust version. Code that writes config structs with ..Default::default() and gives a match on these enums a _ arm compiles unchanged across such releases.
The minimum Rust version is 1.89. The features aws, sqlx and postgres-cdc, and so full, need 1.94.1; zeromq-omq needs 1.93.
Running Tests
The project includes integration and performance tests. Most backend tests require Docker.
To run the performance benchmarks for all supported backends:
To run the criterion benchmarks:
Criterion numbers vary with the machine they run on; for comparable throughput figures use the integration performance test above, or see the ETL benchmarks.
Contributing
Contributions are welcome. See CONTRIBUTING.md for setup notes, code style, and pull request guidelines.
AI Disclaimer
This library was written with a lot of AI assistance. The core started as my own code; many endpoints and docs were expanded with Gemini, CodeRabbit, Claude, and Codex, which made adding transports much faster once the endpoint traits were stable.
Generated code can look plausible while missing important details, so I review every commit manually, clean up and refactor the output, and rely on the integration suite to catch regressions. I trust the current code as much as if I had written it myself. Given the large feature set there may still be open issues; the current focus is testing and documentation.
License
mq-bridge is dual-licensed under either the MIT license or the
Apache License, Version 2.0, at your option.
Binary distributions carry their applicable third-party terms in
THIRD_PARTY_LICENSES.txt. Their current maintenance process is documented in
docs/THIRD_PARTY_LICENSES.md.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in mq-bridge by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.
來源:README.md,提交 136e88c
工具
0版本歷史
13- v1.0.2最新Oct 20, 2026
- v1.0.1Oct 16, 2026
- v1.0.0Oct 13, 2026
- v0.4.20Oct 9, 2026
- v0.4.19Oct 4, 2026
- v0.4.18Oct 3, 2026
- v0.4.17Oct 2, 2026
- v0.4.16Sep 29, 2026
- v0.4.15Sep 26, 2026
- v0.4.14Sep 25, 2026
- v0.4.13Sep 21, 2026
- v0.4.12Sep 19, 2026
- v0.4.11Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分