Ruflo MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Ruflo
Multi-agent swarm orchestration for Claude Code, with vector memory, consensus and self-learning routing.
Overview
Ruflo (formerly Claude Flow) turns Claude Code into a multi-agent development platform. It ships a CLI and an MCP server that spawn and coordinate swarms of specialized agents across mesh, hierarchical, ring and star topologies. The swarms are backed by a vector memory and a learning loop that improves task routing over time.
The codebase is a large TypeScript monorepo. It has about 20 scoped packages under v3/@claude-flow/*, and a legacy v2 codebase sits alongside them. It combines distributed-systems ideas such as consensus, CRDTs and claims with WASM/Rust-powered vector and neural components.
Related MCP server: HomarUScc
Features
Swarm coordination. Spawn and coordinate agent swarms with mesh, hierarchical, ring and star topologies (
v3/@claude-flow/swarm).MCP server and tools. Orchestration capabilities are exposed as MCP tools over multiple transports (
v3/@claude-flow/mcp).CLI. The
claude-flowcommand covers init, agents, swarms, hooks and memory (bin/cli.js,v3/@claude-flow/cli).Vector memory. Persistent memory with HNSW search, an RVF backend, an event log and a learning store (
v3/@claude-flow/memory).Self-learning routing. A neural package with reinforcement-learning algorithms and pattern learning is used to route tasks (
v3/@claude-flow/neural,v3/@claude-flow/hooks).Hooks and Claude Code plugin. Hook automation plus a Claude Code plugin with a marketplace manifest (
.claude-plugin/).AI defence and security. Input safety scanning and a security package for hardening (
aidefence,security).Plugin ecosystem. Domain plugins include code intelligence, test intelligence, financial risk, legal contracts and a quantum optimizer.
Providers and embeddings. Abstractions over several LLM providers and embedding models.
Skills library. More than 140 reusable skills and agent definitions for Codex and Claude.
Docker regression tests. Containerized regression and install-verification suites.
Architecture
Ruflo is a modular monorepo. The CLI and MCP server are the entry points, and they sit on top of shared domain packages. Requests pass through a security layer, then a router and hooks, and then the swarm coordinator. Agents use a vector memory and call LLM providers.
flowchart LR
n_user(["Developer / Claude Code"])
subgraph sg2["Backend"]
n_cli["CLI and MCP server"]
n_security["AIDefence and security"]
n_router["Neural router and hooks"]
n_swarm["Swarm coordinator"]
n_agents["Specialized agents"]
n_plugins["Plugins"]
end
subgraph sg3["Data"]
n_memory[("Vector memory (AgentDB/RVF)")]
end
subgraph sg5["External services"]
n_providers{{"LLM providers"}}
end
n_user -->|commands and MCP tool calls| n_cli
n_cli -->|input validation| n_security
n_security -->|safe requests| n_router
n_router -->|task routing| n_swarm
n_swarm -->|spawn and coordinate| n_agents
n_agents -->|store and retrieve patterns| n_memory
n_agents -->|LLM calls| n_providers
n_memory -->|learning feedback| n_router
n_cli -->|load extensions| n_pluginsHow it works
A developer, or Claude Code through MCP, issues a command or tool call to the CLI/MCP server.
Input is validated by the AIDefence and security layer.
The neural router and hooks choose the agents and topology for the task.
The swarm coordinator spawns the specialized agents and coordinates them with consensus protocols.
Agents store and retrieve patterns in vector memory (AgentDB/RVF) and make LLM calls through the provider layer.
Outcomes feed back into the router as learning feedback. Plugins are loaded by the CLI as extensions.
Tech Stack
Layer | Technology |
Language | TypeScript, Python, Rust/WASM |
Runtime | Node.js |
Protocol | Model Context Protocol |
AI | Anthropic Claude SDK, RuVector (HNSW, SONA, attention) |
Data | AgentDB, PostgreSQL (ruvector-postgres) |
Validation | Zod |
Testing | Vitest, Jest |
Infra / CI | Docker, GitHub Actions |
Project Structure
.
├── bin/cli.js # CLI entry point
├── v3/
│ ├── @claude-flow/ # ~20 scoped packages (cli, mcp, swarm, memory, neural, hooks, ...)
│ ├── mcp/ # MCP tools and transports
│ ├── plugins/ # Domain plugins
│ └── swarm.config.ts
├── v2/ # Legacy codebase
├── agents/ # Agent definitions
├── .agents/skills/ # Skills library
├── .claude-plugin/ # Claude Code plugin and marketplace manifests
├── tests/ # Tests, including docker-regression
├── scripts/
├── .env.example
└── LICENSEGetting Started
Prerequisites
Node.js >= 20 and npm
Claude Code (optional, for MCP and plugin use)
Installation
git clone https://github.com/zain-mirza-1060/claude-agent-swarm-orchestrator.git
cd claude-agent-swarm-orchestrator
npm installNote: the root
package.jsonhas apreinstallscript that deletes entries mentioningclaude-floworruflofrom~/.npm/_npxand~/.npm/_cacache. Review it before runningnpm install. Many optional dependencies (@ruvector/*,agentdb,agentic-flow) are installed only if they are available.
Environment Variables
All variables are optional. .env.example lists the full set. The main ones are:
Variable | Description | Required |
| Claude API key for LLM calls | No |
| OpenAI provider key | No |
| Logging verbosity | No |
| Memory backend selection | No |
| MCP server port | No |
| MCP transport type | No |
| Maximum concurrent agents | No |
| Swarm topology | No |
| RuVector Postgres host | No |
| GitHub integration token | No |
Running locally
node bin/cli.js --help
node bin/cli.js initThe root dev script points at src/index.ts, which does not exist at the repository root. The implementation lives under v3/@claude-flow/* and v2.
Running tests
npm testBuilding
npm run build:tsUsage
# Show available commands
node bin/cli.js --help
# Initialize Ruflo in a project
node bin/cli.js initClaude Code can connect to the MCP server to call orchestration tools directly. Configure the transport and port with CLAUDE_FLOW_MCP_TRANSPORT and CLAUDE_FLOW_MCP_PORT.
License
Released under the MIT License, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Agents message each other and partners' agents: files, skills, rooms, key vault. Claude Code proven.
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
Your AI mind directs coding agents; work reviewed against your memories: Claude Code, Codex, Cursor
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables Claude Code agents to communicate and share context across sessions via a peer-to-peer mesh, allowing them to ask for help from other agents without human interruption.-
- AlicenseBqualityDmaintenanceEnables persistent agent identity, memory, and tools for Claude Code, including messaging, timers, and browser automation.591MIT
- FlicenseAqualityDmaintenanceEnables Claude Code to orchestrate AutoGen multi-agent conversations, supporting persistent sub-agents with tiered permissions and ad-hoc group debates for task decomposition and collaborative problem-solving.10-
- FlicenseNot gradedqualityCmaintenanceEnables orchestrating multiple specialist Claude Code agents as a team, with live visualization and agent-to-agent messaging.-