rocketmq-rust
🚀 Apache RocketMQ built in Rust 🦀 — faster, safer, and more memory-efficient. Powering high-performance messaging for the AI era, with AI Agent, MCP, and AI-SRE capabilities.
Install / Use
claude mcp add mxsm -- npx -y github:mxsm/rocketmq-rustIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
CommunicationSupported Platforms
Our assessment of rocketmq-rust
rocketmq-rust scores 94/100 on our quality scale, 58th of 396 Communication skills we index (top 15%).
Its MCP Server is 19 KB long, well organised into 27 sections with 8 code examples: a thorough specification that gives an agent plenty to work with.
With 1,537 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated today, so rocketmq-rust is actively maintained.
- Our last check on 2026-10-21 found the source still online.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
rocketmq-rust compared with similar skills
All 4 of these similar skills score higher than rocketmq-rust; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| rocketmq-rust (this skill)by mxsm | 94 | 1.5k | today | MCP Server |
| Agent-Reachby Panniantong | 100 | 109.2k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.9k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 97.9k | today | MCP Server |
Frequently asked questions
- How do I install rocketmq-rust?
- Run
claude mcp add mxsm -- npx -y github:mxsm/rocketmq-rust. The install tabs above show the steps for each supported agent. - Which AI agents does rocketmq-rust work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is rocketmq-rust safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is rocketmq-rust still maintained?
- The repository was last updated today, so rocketmq-rust is actively maintained.
Skill content
View source on GitHub
[![CodeCov][codecov-image]][codecov-url]
<br/>
RocketMQ-Rust
🚀 A high-performance, reliable, and feature-rich unofficial Rust implementation of Apache RocketMQ, designed to bring enterprise-grade message middleware to the Rust ecosystem.
<div align="center"> </div>✨ Overview
RocketMQ-Rust is a complete reimplementation of Apache RocketMQ in Rust, leveraging Rust's unique advantages in memory safety, zero-cost abstractions, and fearless concurrency. This project aims to provide Rust developers with a production-ready distributed message queue system that delivers exceptional performance while maintaining full compatibility with the RocketMQ protocol.
🎯 Why RocketMQ-Rust?
- 🦀 Memory Safety: Built on Rust's ownership model, eliminating entire classes of bugs like null pointer dereferences, buffer overflows, and data races at compile time
- ⚡ High Performance: Zero-cost abstractions and efficient async runtime deliver exceptional throughput with minimal resource overhead
- 🔒 Thread Safety: Fearless concurrency enables safe parallel processing without the risk of race conditions
- 🌐 Cross-Platform: First-class support for Linux, Windows, and macOS with native performance on each platform
- 🔌 Ecosystem Integration: Seamlessly integrates with the rich Rust ecosystem including Tokio, Serde, and other modern libraries
- 📦 Production Ready: Battle-tested architecture with comprehensive error handling and observability
🏗️ Architecture
<p align="center"> <img src="resources/architecture-current-v4.png" alt="RocketMQ-Rust Architecture" width="100%"/> </p>RocketMQ-Rust implements a distributed architecture with the following core components:
- Name Server: Lightweight service discovery and routing coordination
- Broker: Message storage and delivery engine with support for topics, queues, and consumer groups
- Producer Client: High-performance message publishing with various sending modes
- Consumer Client: Flexible message consumption with push and pull models
- Store: Efficient local storage engine optimized for sequential writes
- Controller: Advanced high availability and failover capabilities
📚 Documentation
- 📖 Official Documentation: rocketmqrust.com - Comprehensive guides, API references, and best practices
- 🤖 AI-Powered Docs: DeepWiki - Interactive documentation with intelligent search
- 📝 API Docs: docs.rs/rocketmq-rust - Complete API documentation
- 📋 Examples: rocketmq-client/examples - Ready-to-run code samples
🚀 Quick Start
Prerequisites
- Rust toolchain 1.95.0
- A shell with
cargoavailable - Separate terminals for the NameServer, Broker, and client examples
See the toolchain and dependency trust policy for the pinned toolchain, dependency admission rules, and local validation contract.
1. Build the Workspace
git clone https://github.com/mxsm/rocketmq-rust.git
cd rocketmq-rust
cargo build --workspace
If you only want to use the client SDK from your own application, add the current release to Cargo.toml:
[dependencies]
rocketmq-client-rust = "1.0.0"
rocketmq-model = "1.0.0"
rocketmq-protocol = "1.0.0"
2. Start the NameServer
cargo run --bin rocketmq-namesrv-rust
The default NameServer endpoint is 127.0.0.1:9876. To bind explicitly:
cargo run --bin rocketmq-namesrv-rust -- --ip 127.0.0.1 --port 9876
3. Start the Broker
The Broker requires ROCKETMQ_HOME. Point it at an existing RocketMQ home or create a local runtime directory for quick testing.
Linux/macOS:
export ROCKETMQ_HOME="$(pwd)/.rocketmq"
mkdir -p "$ROCKETMQ_HOME/conf"
cargo run --bin rocketmq-broker-rust -- -n 127.0.0.1:9876
Windows PowerShell:
$env:ROCKETMQ_HOME = "$PWD\.rocketmq"
New-Item -ItemType Directory -Force "$env:ROCKETMQ_HOME\conf" | Out-Null
cargo run --bin rocketmq-broker-rust -- -n 127.0.0.1:9876
Use cargo run --bin rocketmq-broker-rust -- --help to inspect configuration flags such as --configFile, --namesrvAddr, and config printing options.
4. Send and Receive Messages
Start the consumer example first:
cargo run -p rocketmq-client-rust --example consumer
Then send messages from another terminal:
cargo run -p rocketmq-client-rust --example producer
The quickstart examples use 127.0.0.1:9876 and TopicTest by default. For more messaging patterns, see:
📦 Components & Crates
RocketMQ-Rust is organized into deployable services, reusable protocol/runtime crates, and operational applications. The tables below focus on responsibility and integration boundaries instead of per-crate maturity labels.
Core Runtime Services
| Crate | Responsibility | |-------|----------------| | rocketmq-namesrv | NameServer implementation for broker registration, topic routing, and service discovery. | | rocketmq-broker | Broker implementation for message storage, dispatch, delivery, and consumer coordination. | | rocketmq-controller | Controller service for broker coordination and high availability workflows. | | rocketmq-proxy | Proxy layer for gateway-style client access and protocol integration. | | rocketmq-proxy-core | Stable proxy contracts, use cases, and ingress-independent models. | | rocketmq-proxy-cluster | Cluster-mode proxy adapter with keyed execution and remote Broker access. | | rocketmq-proxy-local | Local-mode proxy adapter. |
Client, Protocol, and Shared Libraries
| Crate | Responsibility | |-------|----------------| | rocketmq-client | Async producer, consumer, and admin SDK for application integration. | | rocketmq-protocol | RocketMQ wire commands, headers, serialization, and compatibility contracts. | | rocketmq-transport | Runtime-owned network sessions and canonical per-session writers. | | rocketmq-model | Shared message, route, configuration, and domain models. | | rocketmq-auth | Authentication, authorization, ACL evaluation, and request context support. | | rocketmq-security-api | Runtime-neutral authentication, authorization, signing, and maintenance contracts. | | rocketmq-filter | Message filtering support, including tag and expression-based filtering. |
Storage, Runtime, and Observability
| Crate | Responsibility | |-------|----------------| | rocketmq-store | Durable local storage engine for commit logs, consume queues, and message indexes. | | rocketmq-store-api | Backend-neutral append, read, lifecycle, replication, checkpoint, and health capabilities. | | rocketmq-store-local | Local CommitLog, ConsumeQueue, Index, mapped-file, and recovery implementation. | | rocketmq-store-rocksdb | RocksDB-backed store implementation. | | rocketmq-tieredstore | Tiered storage abstractions for extending message data beyond local disks. | | rocketmq-runtime | Async runtime abstractions and runtime-friendly coordination utilities. | | rocketmq-error | Shared error types and result conventions across workspace crates. | | rocketmq-macros | Procedural macros used by RocketMQ-Rust crates and examples. | | rocketmq-observability | Metrics and tracing integration for service and client instrumentation. |
The cross-cutting ownership, cancellation, error, limit, compatibility, and failure-mode contracts are documented in the core capability contracts.
Tools, Examples, and Dashboards
| Project | Responsibility | |---------|----------------| | rocketmq-example | Standalone examples covering producer, consumer, request/reply, ordering, delay, and transaction flows. | | rocketmq-tools | Command-line tools and operational utilities. | | rocketmq-admin-cli | Command-line administration interface for cluster and broker operations. | | rocketmq-admin-core | Shared admin functionality
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
109.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
97.9k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
