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
概览
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 和凭据,并需能访问相关消息中间件和数据库的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 mqb · mq-bridge,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mqb · mq-bridge-app
[Linux] [Windows] [macOS] [License] [Docs]
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:
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.
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:
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:
- 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 statusfor 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.
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:
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版本历史
6- v1.4.0最新Nov 6, 2026
- v1.3.0Nov 1, 2026
- v1.2.1Oct 29, 2026
- v1.2.0Oct 25, 2026
- v1.1.0Oct 23, 2026
- v1.0.3Oct 20, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分