MCPHub LabRegistrylibrefang/librefang
librefang

librefang/librefang

Built by librefang β€’ 166 stars

What is librefang/librefang?

LibreFang is an open-source agent operating system written in Rust. Live demo: https://flyio.librefang.ai

How to use librefang/librefang?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add librefang/librefang using the following command: npx @modelcontextprotocol/librefang-librefang 4. Restart the client and verify the new tools are active.
πŸ›‘οΈ Scoped (Restricted)
npx @modelcontextprotocol/librefang-librefang --scope restricted
πŸ”“ Unrestricted Access
npx @modelcontextprotocol/librefang-librefang

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

librefang/librefang FAQ

Q

Is librefang/librefang safe?

Yes, librefang/librefang follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is librefang/librefang up to date?

librefang/librefang is currently active in the registry with 166 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for librefang/librefang?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<p align="center"> <img src="public/assets/logo.png" width="160" alt="LibreFang Logo" /> </p> <h1 align="center">LibreFang</h1> <h3 align="center">Libre Agent Operating System β€” Free as in Freedom</h3> <p align="center"> Open-source Agent OS built in Rust. 14 crates. 2,100+ tests. Zero clippy warnings. </p> <p align="center"> <a href="README.md">English</a> | <a href="i18n/README.zh.md">δΈ­ζ–‡</a> | <a href="i18n/README.ja.md">ζ—₯本θͺž</a> | <a href="i18n/README.ko.md">ν•œκ΅­μ–΄</a> | <a href="i18n/README.es.md">EspaΓ±ol</a> | <a href="i18n/README.de.md">Deutsch</a> </p> <p align="center"> <a href="https://librefang.ai/">Website</a> &bull; <a href="https://docs.librefang.ai">Docs</a> &bull; <a href="docs/CONTRIBUTING.md">Contributing</a> &bull; <a href="https://discord.gg/DzTYqAZZmc">Discord</a> </p> <p align="center"> <a href="https://github.com/librefang/librefang/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/librefang/librefang/ci.yml?style=flat-square&label=CI" alt="CI" /></a> <img src="https://img.shields.io/badge/language-Rust-orange?style=flat-square" alt="Rust" /> <img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="MIT" /> <img src="https://img.shields.io/github/stars/librefang/librefang?style=flat-square" alt="Stars" /> <img src="https://img.shields.io/github/v/release/librefang/librefang?style=flat-square" alt="Latest Release" /> <a href="https://discord.gg/DzTYqAZZmc"><img src="https://img.shields.io/discord/1481633471507071129?style=flat-square&logo=discord&label=Discord" alt="Discord" /></a> </p>

What is LibreFang?

LibreFang is an Agent Operating System β€” a full platform for running autonomous AI agents, built from scratch in Rust. Not a chatbot framework, not a Python wrapper.

Traditional agent frameworks wait for you to type something. LibreFang runs agents that work for you β€” on schedules, 24/7, monitoring targets, generating leads, managing social media, and reporting to your dashboard.

LibreFang is a community fork of RightNow-AI/openfang with open governance and a merge-first PR policy. See GOVERNANCE.md for details.

<p align="center"> <img src="public/assets/dashboard.png" width="800" alt="LibreFang Dashboard" /> </p>

Quick Start

# Install (Linux/macOS/WSL)
curl -fsSL https://librefang.ai/install.sh | sh

# Or install via Cargo
cargo install --git https://github.com/librefang/librefang librefang-cli

# Start β€” auto-initializes on first run, dashboard at http://localhost:4545
librefang start

# Or run the setup wizard manually for interactive provider selection
# librefang init
<details> <summary><strong>Homebrew</strong></summary>
brew tap librefang/tap
brew install librefang              # CLI (stable)
brew install --cask librefang       # Desktop (stable)
# Beta/RC channels also available:
# brew install librefang-beta       # or librefang-rc
# brew install --cask librefang-rc  # or librefang-beta
</details> <details> <summary><strong>Docker</strong></summary>
docker run -p 4545:4545 ghcr.io/librefang/librefang
</details> <details> <summary><strong>Cloud Deploy</strong></summary>

Deploy Hub Fly.io Render Railway GCP

</details>

Hands: Agents That Work for You

Hands are pre-built autonomous capability packages that run independently, on schedules, without prompting. 14 bundled:

HandWhat It Does
ResearcherDeep research β€” multi-source, credibility scoring (CRAAP), cited reports
CollectorOSINT monitoring β€” change detection, sentiment tracking, knowledge graph
PredictorSuperforecasting β€” calibrated predictions with confidence intervals
StrategistStrategy analysis β€” market research, competitive intel, business planning
AnalyticsData analytics β€” collection, analysis, visualization, automated reporting
TraderMarket intelligence β€” multi-signal analysis, risk management, portfolio analytics
LeadProspect discovery β€” web research, scoring, dedup, qualified lead delivery
TwitterAutonomous X/Twitter β€” content creation, scheduling, approval queue
RedditReddit manager β€” subreddit monitoring, posting, engagement tracking
LinkedInLinkedIn manager β€” content creation, networking, professional engagement
ClipYouTube to vertical shorts β€” cuts best moments, captions, voice-over
BrowserWeb automation β€” Playwright-based, mandatory purchase approval gate
API TesterAPI testing β€” endpoint discovery, validation, load testing, regression detection
DevOpsDevOps automation β€” CI/CD, infrastructure monitoring, incident response
librefang hand activate researcher   # Starts working immediately
librefang hand status researcher     # Check progress
librefang hand list                  # See all Hands

Build your own: define a HAND.toml + system prompt + SKILL.md. Guide

Architecture

14 Rust crates, modular kernel design.

librefang-kernel      Orchestration, workflows, metering, RBAC, scheduler, budget
librefang-runtime     Agent loop, 3 LLM drivers, 53 tools, WASM sandbox, MCP, A2A
librefang-api         140+ REST/WS/SSE endpoints, OpenAI-compatible API, dashboard
librefang-channels    40 messaging adapters with rate limiting, DM/group policies
librefang-memory      SQLite persistence, vector embeddings, sessions, compaction
librefang-types       Core types, taint tracking, Ed25519 signing, model catalog
librefang-skills      60 bundled skills, SKILL.md parser, FangHub marketplace
librefang-hands       14 autonomous Hands, HAND.toml parser, lifecycle management
librefang-extensions  25 MCP templates, AES-256-GCM vault, OAuth2 PKCE
librefang-wire        OFP P2P protocol, HMAC-SHA256 mutual auth
librefang-cli         CLI, daemon management, TUI dashboard, MCP server mode
librefang-desktop     Tauri 2.0 native app (tray, notifications, shortcuts)
librefang-migrate     OpenClaw, LangChain, AutoGPT migration engine
xtask                 Build automation

Key Features

40 Channel Adapters β€” Telegram, Discord, Slack, WhatsApp, Signal, Matrix, Email, Teams, Google Chat, Feishu, LINE, Mastodon, Bluesky, and 26 more. Full list

27 LLM Providers β€” Anthropic, Gemini, OpenAI, Groq, DeepSeek, OpenRouter, Ollama, and 20 more. Intelligent routing, automatic fallback, cost tracking. Details

16 Security Layers β€” WASM sandbox, Merkle audit trail, taint tracking, Ed25519 signing, SSRF protection, secret zeroization, and more. Details

OpenAI-Compatible API β€” Drop-in /v1/chat/completions endpoint. 140+ REST/WS/SSE endpoints. API Reference

Client SDKs β€” Full REST client with streaming support.

// JavaScript/TypeScript
npm install @librefang/sdk
const { LibreFang } = require("@librefang/sdk");
const client = new LibreFang("http://localhost:4545");
const agent = await client.agents.create({ template: "assistant" });
const reply = await client.agents.message(agent.id, "Hello!");
# Python
pip install librefang
from librefang import Client
client = Client("http://localhost:4545")
agent = client.agents.create(template="assistant")
reply = client.agents.message(agent["id"], "Hello!")
// Rust
cargo add librefang
use librefang::LibreFang;
let client = LibreFang::new("http://localhost:4545");
let agent = client.agents().create(CreateAgentRequest { template: Some("assistant".into()), .. }).await?;
// Go
go get github.com/librefang/librefang/sdk/go
import "github.com/librefang/librefang/sdk/go"
client := librefang.New("http://localhost:4545")
agent, _ := client.Agents.Create(map[string]interface{}{"template": "assistant"})

MCP Support β€” Built-in MCP client and server. Connect to IDEs, extend with custom tools, compose agent pipelines. Details

A2A Protocol β€” Google Agent-to-Agent protocol support. Discover, communicate, and delegate tasks across agent systems. Details

Desktop App β€” Tauri 2.0 native app with system tray, notifications, and global shortcuts.

OpenClaw Migration β€” librefang migrate --from openclaw imports agents, history, skills, and config.

Development

cargo build --workspace --lib                            # Build
cargo test --workspace                                   # 2,100+ tests
cargo clippy --workspace --all-targets -- -D warnings    # Zero warnings
cargo fmt --all -- --check                               # Format check

Comparison

See docs/comparison.md for benchmarks and feature-by-feature comparison vs OpenClaw, ZeroClaw, CrewAI, AutoGen, and LangGraph.

Links

Contributors

<a href="https://github.com/librefang/librefang/graphs/contributors"> <img src="web/public/assets/contributors.svg" alt="Contributors" /> </a> <p align="center"> We welcome contributions of all kinds β€” code, docs, translations, bug reports.<br/> Check the <a href="docs/CONTRIBUTING.md">Contributing Guide</a> and pick a <a href="https://github.com/librefang/librefang/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22">good first issue</a> to get started! </p> <p align="center"> <a href="https://github.com/librefang/librefang/stargazers"> <img src="web/public/assets/star-history.svg" alt="Star History" /> </a> </p>
<p align="center">MIT License</p>

Global Ranking

8.5
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "librefang-librefang": { "command": "npx", "args": ["librefang-librefang"] } } }