mqb · mq-bridge

io.github.marcomq由 GitHub 帳號 marcomq 發布v1.4.0更新於 Nov 6, 2026

Move data between 15+ databases, queues and files at high throughput, without it entering context

概覽

AI 產生的概覽

mq-bridge 的本機 MCP 伺服器,讓助理在資料庫、訊息佇列與檔案之間搬移與橋接資料,且資料列不會進入上下文。

可以做什麼
  • 以單行 copy 路由在資料庫、佇列與檔案之間搬移資料,資料列不進入模型上下文
  • 在 Kafka、RabbitMQ、NATS、SQS、MQTT、IBM MQ、HTTP、gRPC、ZeroMQ、MongoDB、SQL 與檔案系統端點之間橋接與轉送流量
  • 為路由套用過濾、轉換、重試、死信佇列、去重與限流等中介層
  • 從來源端原生位置續傳,並執行排空後即結束的批次工作
  • 檢視本機執行中路由的狀態與指標
適用情境
適合助理需要在系統之間大量搬移或轉送資料時使用,例如把 Postgres 資料寫入 JSONL 檔案,或把 Kafka 訊息轉到另一個訊息中介軟體,而不必逐列消耗 token。也適合已在使用 mq-bridge 路由、希望由代理觸發或檢視其狀態的團隊。
執行需求
以 stdio 本機程序方式執行;清單未宣告任何環境變數、標頭或身分驗證。需安裝 mq-bridge-app 執行檔(Homebrew、cargo 或容器映像),並透過其 mcp install 等指令註冊到助理。各端點需要自己的連線 URL 與憑證,且需能存取相關訊息中介軟體與資料庫的網路。
安裝前請注意
路由會讀寫實際的資料庫、佇列與檔案,設定錯誤可能造成資料被覆寫或重複。連線 URL 通常內嵌資料庫密碼等憑證;工具提供設定安全模式與靜態加密,但明文設定可能保存密鑰。原生外掛會從啟動設定載入共享函式庫,只應使用可信任的外掛路徑。介面層被描述為可用的示範,而非可供正式環境依賴的實作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 mqb · mq-bridge,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mqb · mq-bridge-app

[Linux] [Windows] [macOS] [License] [Docs]

[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 — 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 JSONL, 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=raw' \  --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 · Connectors · Performance tuning

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.

FormWhat it isQuick install
Desktop app (UI)The visual workbench — build/test routes, run request/response traffic, inspect message historybrew install --cask marcomq/tap/mq-bridge
CLI / serverHeadless 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
LibraryThe engine embedded in your own code — native Rust, Python, or Node.js bindingscargo add mq-bridge · pip install mq-bridge · npm install mq-bridge

[mq-bridge UI - publishers]

Learn each form in the book: the three ways to run it · the desktop / web UI · CLI commands · MCP server · library bindings.

Install

brew is the quickest path on macOS and Linux:

bash
brew install marcomq/tap/mq-bridge-app         # CLI / serverbrew 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. 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; to compile from source see Building.

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.

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 <path>, 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.
  • 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.

Capabilitymq-bridgePostmanBrunoInsomniaHoppscotch
Basic HTTP/API requests✓✓✓✓✓
Scripting—✓✓✓✓
Cookie jarNot 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—✓—OptionalOptional
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 and benches/etl/README.md.

Test on nats / kafka / postgres ....

For testing, docker-compose files 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 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.

Status

Active development. Originally the reference implementation and testbed for the 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 or the Apache License, Version 2.0, at your option. Third-party terms for the CLI and desktop distributions are in THIRD_PARTY_LICENSES.txt.

來源:apps/mq-bridge-app/README.md,提交 b72abce

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

6
  1. v1.4.0最新Nov 6, 2026
  2. v1.3.0Nov 1, 2026
  3. v1.2.1Oct 29, 2026
  4. v1.2.0Oct 25, 2026
  5. v1.1.0Oct 23, 2026
  6. v1.0.3Oct 20, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分