Akasha MCP Server

Akasha MCP Server

mcp-server-ocuil•byocuil

Akasha is a shared cognitive fabric and memory service for intelligent agent systems, with an MCP server for Claude and Gemini integration.

License: Not specified•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides a shared memory space with working, episodic, semantic, and procedural memory layers for agents.
  • •Supports stigmergy coordination where agents leave decaying pheromone traces that other agents can sense.
  • •Runs a Nidra background engine that sweeps, consolidates, and optimizes memory records across sleep stages.
  • •Exposes records, queries, subscriptions, and agent operations through REST, WebSocket, SSE, and gRPC interfaces.

BEST FOR

  • •Multi-agent systems that need shared state and coordination without direct agent-to-agent messaging.
  • •Agent workflows that benefit from persistent memory surviving between sessions.
  • •Teams connecting Claude or Gemini agents to a shared memory backend through MCP.

ABOUT MCP-SERVER-OCUIL

Akasha MCP Server is cataloged as an MCP server attributed to ocuil. Akasha is a shared cognitive fabric and memory service for intelligent agent systems, with an MCP server for Claude and Gemini integration. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Akasha MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What memory layers does Akasha provide?

Akasha organizes memory into four layers: working, episodic, semantic, and procedural, which records flow through over time.

How does Nidra consolidation handle source records?

During deep sleep consolidation, source records are archived with audit tags rather than deleted, so data is not lost.

Can Akasha persist data between restarts?

Yes, Akasha uses RocksDB for durable persistence and semantic and procedural memory survive restarts.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ade31f7e7a3c · 采集于 2026-11-13 12:21:53 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

░█████╗░██╗░░██╗░█████╗░░██████╗██╗░░██╗░█████╗
██╔══██╗██║░██╔╝██╔══██╗██╔════╝██║░░██║██╔══██╗
███████║█████╔╝░███████║╚█████╗░███████║███████║
██╔══██║██╔═██╗░██╔══██║░╚═══██╗██╔══██║██╔══██║
██║░░██║██║░╚██╗██║░░██║██████╔╝██║░░██║██║░░██║
╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝

The Shared Cognitive Fabric for Intelligent Agent Systems

License: Apache-2.0 Version Docker PyPI npm Cluster Tests Auth MCP Encryption Rust gRPC


The Soul of Akasha

"In Vedic philosophy, Akasha (आकाश) is the fifth element — the ethereal substrate that pervades all of existence. It is not merely space; it is the medium through which all things connect. The Akashic Records are said to contain every thought, word, and deed of every being that has ever lived — an infinite, omnipresent memory woven into the fabric of reality."

Akasha brings this ancient principle to the world of software.

It is not a database. It is not a message queue. Akasha is a living cognitive substrate — a shared memory space where autonomous agents read, write, and sense the world around them without ever needing to ask each other directly.

When Agent A writes its state to Akasha, Agent B doesn't need to poll, request, or negotiate. It simply knows — because the knowledge is already inscribed in the shared fabric, instantly accessible to all.

This is stigmergy: the same mechanism that allows millions of termites to build cathedral-like structures without a blueprint. Each agent leaves traces in the environment, and the environment itself becomes the communication medium.


The Three Pillars

🐜 Stigmergy — Coordination Without Communication

Inspired by how ant colonies solve complex optimization problems through pheromone trails:

  • Agents leave pheromone traces in the shared memory (_pheromones/tasks/optimization)
  • Pheromones have intensity that decays exponentially over time (configurable half-life)
  • When multiple agents reinforce the same trail, intensity sums — popular paths get stronger signals
  • Failed approaches leave warning pheromones — others learn to avoid them without being told
  • Emergence happens naturally: no master plan, no central coordinator, just traces in the environment
from akasha import AkashaClient, SignalType

with AkashaClient("localhost:50051") as client:
    # Agent deposits a success pheromone after completing a task
    client.deposit_pheromone(
        trail="pipelines/data-enrichment",
        signal_type=SignalType.SUCCESS,
        emitter="agent-alpha",
        intensity=1.0,
        half_life_secs=3600,
        payload={"duration_ms": 320, "quality_score": 0.95},
    )

    # Another agent senses active pheromones — follows strongest trail
    trails = client.sense_pheromones("pipelines/*")
    strongest = max(trails, key=lambda r: r.value.get("intensity", 0))

🧠 Shared Cognitive Fabric — Four Layers of Memory

Modeled after the human memory hierarchy from cognitive science:

LayerPathPurposeLifespan
Workingmemory/working/{agent}/Current task context — the agent's scratchpadMinutes
Episodicmemory/episodic/{topic}/What happened — decisions, outcomes, timelinesHours → Days
Semanticmemory/semantic/{domain}/What we know — facts, patterns, learned insightsDays → Permanent
Proceduralmemory/procedural/{workflow}/How to do things — proven playbooks, workflowsPermanent

Records naturally flow upward through Nidra consolidation:

Working → (persists) → Episodic → (Nidra consolidates) → Semantic → (distills) → Procedural

🧘 Nidra — The Dreaming Engine

Named after Yoga Nidra (yogic sleep), Nidra is a background process that mimics the consolidation function of human sleep. While you sleep, your brain replays experiences, prunes irrelevant connections, and consolidates important memories into long-term storage. Nidra does the same for Akasha.

Three sleep stages:

  1. Light Sleep (Sweep) — Every 5 minutes

    • Evaporates decayed pheromones below threshold
    • Expires stale working memory
    • Counts records per memory layer → emits metrics
  2. Deep Sleep (Consolidate) — Every ~1 hour

    • Scans episodic memory for high-activity topics
    • Extracts patterns into semantic knowledge
    • Archives source records to _consolidated/ with full audit tags (_nidra_archived, _nidra_cycle, _archived_at)
    • Zero data loss — originals are never deleted
  3. REM (Optimize) — On-demand

    • Identifies redundant records
    • Merges pheromone trails into procedural memory
    • Reports housekeeping stats to system/nidra/last-cycle

Nidra supports two consolidation modes:

  • Rule-based (default, LLM-free) — counting, thresholds, dedup
  • LLM-powered (opt-in) — pluggable ConsolidationHook trait with built-in Ollama/OpenAI support. Configurable from the admin Dashboard with one-click connection testing and automatic model discovery.

Why Akasha?

In complex multi-agent systems (RAG pipelines, automation workflows, LLM orchestrators), agents need to know what other agents are doing — without asking them.

ProblemAkasha Solution
Agent A needs Agent B's statusAgent B writes to agents/b/state, A reads instantly
Dashboard needs real-time viewWebSocket subscription to ** — all events live
Detecting stale agentsTTL + automatic reaper removes expired state
Querying "all agents of type X"Glob pattern agents/*/state with tag filters
Knowledge persists between sessionsSemantic + Procedural memory survive restarts
Avoiding duplicate workclaim pheromones signal "I'm working on this"
Learning from collective experienceNidra distills episodic outcomes into wisdom

Architecture

Standalone Mode (Community / Basic)

┌──────────────────────────────────────────────────────────────────┐
│                         A K A S H A                             │
│                  Shared Cognitive Fabric                         │
│                                                                  │
│  ┌─────────────┐  ┌─────────────┐  ┌────────────┐  ┌──────────┐ │
│  │   DashMap   │  │  Event Bus  │  │ TTL Reaper │  │  Nidra   │ │
│  │ (in-memory) │  │ (broadcast) │  │ (entropy)  │  │ (sleep)  │ │
│  └──────┬──────┘  └──────┬──────┘  └────────────┘  └──────────┘ │
│         │                │                                       │
│  ┌──────┴────────────────┴───────────────────────────────┐       │
│  │                   AkashaStore                         │       │
│  │         CRUD + Query + Subscribe + Pheromones          │       │
│  └──────┬────────────────────────────────────────────────┘       │
│         │                                                        │
│  ┌──────┴──────┐  ┌──────────────┐  ┌──────────────────┐        │
│  │  RocksDB    │  │ Memory Fabric│  │  Auth Guard      │        │
│  │  (persist)  │  │ W→E→S→P     │  │  JWT + API Keys  │        │
│  └─────────────┘  └──────────────┘  └──────────────────┘        │
│                                                                  │
│  ┌────────────────────────┬────────────────────────────┐         │
│  │  gRPC :50051 (tonic)   │  HTTPS/WS :7777 (axum)    │         │
│  └────────────────────────┴────────────────────────────┘         │
│  🔐 TLS · 🔑 Auth · 📊 Dashboard SPA · 📡 Telemetry            │
└──────────────────────────────────────────────────────────────────┘

Enterprise Clustering (3+ Nodes)

┌─────────────────────────────────────────────────────────────────┐
│                    AKASHA CLUSTER (Enterprise)                    │
│                                                                  │
│  ┌──────────────────────────────────────────────────────┐        │
│  │          Control Plane (GossipRaft · 3 nodes)        │        │
│  │                                                      │        │
│  │  Node 1 (Leader)    Node 2         Node 3            │        │
│  │  ┌────────────┐  ┌────────────┐  ┌────────────┐      │        │
│  │  │ Raft Log   │  │ (Follower) │  │ (Follower) │      │        │
│  │  │ Nidra Lead │  │            │  │            │      │        │
│  │  └────────────┘  └────────────┘  └────────────┘      │        │
│  └──────────────────────────────────────────────────────┘        │
│                          │                                       │
│                SWIM Gossip (UDP :7946)                            │
│             HMAC-SHA256 authenticated                             │
│                          │                                       │
│  ┌──────────────────────────────────────────────────────┐        │
│  │           Data Plane (CRDT · all nodes)              │        │
│  │                                                      │        │
│  │  Each node:                                          │        │
│  │  • DashMap + RocksDB (local state)                   │        │
│  │  • HLC + LWW registers (conflict resolution)        │        │
│  │  • Delta gossip (sub-10ms LAN convergence)           │        │
│  │  • Anti-entropy (rate-limited, 500 paths/tick)       │        │
│  │  • Sync backpressure (send-with-timeout, no drops)   │        │
│  │  • MTU-safe batch chunking (UDP-friendly)            │        │
│  └──────────────────────────────────────────────────────┘        │
│                                                                  │
│  ┌──────────────────────────────────────────────────────┐        │
│  │  Gateway (every node — agents connect to ANY node)   │        │
│  │  gRPC :50051  │  HTTPS :7777  │  Gossip :7946        │        │
│  └──────────────────────────────────────────────────────┘        │
│  🔐 mTLS inter-node · 🔑 License-bound cluster ID               │
└─────────────────────────────────────────────────────────────────┘

Key operational properties:

  • Agents connect to any node — no routing complexity
  • Writes are applied locally first, then propagated via CRDT delta gossip (<10ms LAN convergence)
  • If a node dies, the other 2 continue serving; rejoining nodes recover via anti-entropy
  • Nidra consolidation runs only on the elected leader to avoid duplicate work
  • Adding/removing nodes: automatic SWIM discovery + CRDT sync — zero configuration

Cluster Upgrade Mode (Grow & Shrink) — v1.0.9

For zero-downtime rolling upgrades, the cluster supports a temporary +1 node grace period:

# 1. Enable upgrade mode (default: 1 hour grace period)
curl -sk -X POST https://node-01:7777/api/v1/cluster/upgrade \
  -H "Content-Type: application/json" \
  -d '{"activated_by": "admin", "grace_period_secs": 3600}'

# 2. Add new node to the cluster (joins via SWIM gossip)
#    The cluster now accepts max_nodes + 1 temporarily

# 3. Migrate workload / data to new node

# 4. Remove the old node (shrink back to max_nodes)
#    OR the grace period expires and the upgrade node is auto-evicted

# Check status
curl -sk https://node-01:7777/api/v1/cluster/upgrade

# Manually disable and evict
curl -sk -X DELETE https://node-01:7777/api/v1/cluster/upgrade
StateMax NodesDuration
Normallicense limit (e.g. 3)Permanent
Upgrade modelicense limit + 1Grace period (default 1h)
After grace expireslicense limitAuto-evicts last node

License Expiration Watchdog — v1.0.9

Paid licenses (Basic/Enterprise) now enforce expiration with a background watchdog:

  ┌──────────┐  30d  ┌──────────┐  7d  ┌──────────┐  1d  ┌──────────┐
  │  Valid    │ ───→  │ Warning  │ ──→  │ Warning  │ ──→  │ Warning  │
  │ (normal) │       │ (30 day) │      │ (7 day)  │      │ (1 day)  │
  └──────────┘       └──────────┘      └──────────┘      └────┬─────┘
                                                              │ 0d
                                                              ▼
                                                      ┌──────────────┐
                                                      │ Grace Period │
                                                      │ (read-only)  │
                                                      │  48 hours    │
                                                      └──────┬───────┘
                                                             │ -48h
                                                             ▼
                                                      ┌──────────────┐
                                                      │   Expired    │
                                                      │  exit(1)     │
                                                      └──────────────┘
PhaseBehavior
ValidNormal operation
Warning (30/7/1d)Warning in logs every hour
Grace period (0–48h after expiry)READ-ONLY mode — reads work, writes return 503
Expired (>48h after expiry)Server exits with code 1

Monitor via API:

curl -sk https://localhost:7777/api/v1/license/status
# {"status": "warning", "days_left": 7, "read_only": false, "tier": "Enterprise"}

Community tier licenses are perpetual — no expiration.

Quick Start

# Pull from Docker Hub
docker pull alejandrosl/akasha:latest

# Run Akasha with a single command
docker run -d --name akasha \
  -p 7777:7777 -p 50051:50051 \
  -v akasha-data:/akasha-data \
  alejandrosl/akasha:latest

# TLS certificates are auto-generated on first boot
# Trust the CA for green-lock HTTPS:
docker cp akasha:/akasha-data/tls/ca.pem ./akasha-ca.pem

Option 2: One-Line Install

curl -fsSL https://raw.githubusercontent.com/ocuil/akasha-public/main/deploy/get-akasha.sh | bash

Detects your OS/arch, downloads the correct binary, and installs to /usr/local/bin/.

Option 3: Build from Source

git clone https://github.com/ocuil/akasha.git
cd akasha
cargo build --release

# Run (auto-generates TLS certs on first boot)
cargo run --release

# Or with a custom config
cargo run --release -- akasha.toml

Option 4: 3-Node Enterprise Cluster

# Requires Enterprise license
docker compose up -d   # Starts 3 nodes with SWIM gossip + CRDT replication

# Check cluster health (3 nodes, all alive)
curl -sk https://localhost:7771/api/v1/cluster/nodes | jq

# Write on node-01, read from node-02 (CRDT replication)
curl -sk -X POST https://localhost:7771/api/v1/records/agents/test/state \
  -H "Content-Type: application/json" \
  -d '{"value": {"status": "active"}}'
curl -sk https://localhost:7772/api/v1/records/agents/test/state  # ← replicated!

# Run the full QA suite (41 tests)
python3 tools/akasha-qa.py

Try It

# Health check (TLS enabled by default)
curl -sk https://localhost:7777/api/v1/health

# Or trust the auto-generated CA for verified HTTPS:
curl --cacert akasha-data/tls/ca.pem https://localhost:7777/api/v1/health

# Write agent state
curl -sk -X POST https://localhost:7777/api/v1/records/agents/planner-01/state \
  -H "Content-Type: application/json" \
  -d '{"value": {"status": "processing", "task": "data-pipeline"}}'

# Read it back
curl -sk https://localhost:7777/api/v1/records/agents/planner-01/state

# Query all agents
curl -sk "https://localhost:7777/api/v1/query?pattern=agents/*/state"

# Deposit a pheromone (stigmergy)
curl -sk -X POST https://localhost:7777/api/v1/pheromones \
  -H "Content-Type: application/json" \
  -d '{"trail": "tasks/enrichment", "signal_type": "success", "emitter": "agent-01", "intensity": 1.0}'

# Full system tree
curl -sk https://localhost:7777/api/v1/tree

# Prometheus metrics
curl -sk https://localhost:7777/metrics

# Cognitive Fabric endpoints
curl -sk https://localhost:7777/api/v1/nidra/status
curl -sk https://localhost:7777/api/v1/pheromones
curl -sk https://localhost:7777/api/v1/memory/layers

# Dashboard (open in browser)
open https://localhost:7777/dashboard

SDKs

Python SDK

pip install akasha-client
from akasha import AkashaClient, MemoryLayer, SignalType

with AkashaClient("localhost:50051") as client:
    # Write state — inscribe into the Records
    client.put("agents/planner/state", {
        "status": "processing",
        "task": "generate-report",
        "progress": 0.6,
    })

    # Read another agent's state — instant awareness
    worker = client.get("agents/worker-01/state")

    # Stigmergy — deposit and sense pheromones
    client.deposit_pheromone(
        "pipelines/data-enrichment",
        signal_type=SignalType.DISCOVERY,
        emitter="planner-01",
    )

    # Cognitive Fabric — write to memory layers
    client.write_memory(
        MemoryLayer.SEMANTIC,
        "workflows/enrichment-patterns",
        {"pattern": "batch_enrichment", "confidence": 0.78},
    )

    # Query all agents — stigmergic sensing
    for record in client.query("agents/*/state"):
        print(f"{record.path}: {record.value}")

    # Real-time subscriptions — the fabric speaks
    for event in client.subscribe("agents/**"):
        print(f"[{event.kind}] {event.path}")

Also includes async client (asyncio/LangGraph), HTTP client, and high-level convenience methods. See Python SDK docs | PyPI.

Node.js SDK

npm install akasha-memory
import { AkashaHttpClient } from 'akasha-memory';

const client = new AkashaHttpClient({
  baseUrl: 'https://localhost:7777',
  token: 'your-jwt-token',
  rejectUnauthorized: false,  // for self-signed certs
});

await client.put('agents/orchestrator/state', {
  status: 'coordinating',
  task: 'pipeline-execution',
});

const worker = await client.get('agents/worker-01/state');

// CAS (optimistic concurrency)
const record = await client.get('agents/counter');
await client.putCas('agents/counter', { count: 2 }, record!.version);

// gRPC client also available:
import { AkashaClient } from 'akasha-memory';
const grpc = new AkashaClient({ address: 'localhost:50051' });
for await (const event of grpc.subscribe('agents/**')) {
  console.log(`[${event.kind}] ${event.path}`);
}

Also includes HTTP client with WebSocket subscriptions. See Node.js SDK docs | npm.

Configuration

Create an akasha.toml file (optional — sensible defaults used otherwise):

[server]
grpc_addr = "0.0.0.0:50051"
http_addr = "0.0.0.0:7777"
name = "akasha"

[persistence]
enabled = true
data_dir = "./akasha-data"

[ttl]
sweep_interval_secs = 10

[nidra]
enabled = true
sweep_interval_secs = 300          # 5 min between sweeps
consolidation_every_n_sweeps = 12  # Deep consolidation every ~1 hour
evaporation_threshold = 0.01      # Pheromone evaporation threshold
max_episodic_per_topic = 100       # Max episodic records before consolidation

[elasticsearch]
enabled = false
url = "http://localhost:9200"
index_prefix = "akasha"
batch_size = 1000
flush_interval_secs = 5

[llm]
enabled = false                          # Set true to enable LLM-powered consolidation
provider = "ollama"                      # "ollama" or "openai" (OpenAI-compatible)
endpoint = "http://localhost:11434/api/generate"  # Your Ollama server URL
model = "llama3.2"                       # Model to use (auto-discoverable from Dashboard)
system_prompt = "You are Nidra, the consolidation engine of Akasha..."
max_tokens = 1024
# 💡 LLM config can also be managed at runtime from the admin Dashboard:
#    Administration > LLM / Nidra tab > Test Connection / Discover Models

[auth]
enabled = true                       # Require authentication for all API requests
# jwt_secret = ""                    # Auto-generated if empty
# jwt_lifetime_hours = 24            # JWT session lifetime
# Default user: akasha/akasha (created on first boot — change immediately!)

# license_path = "license.json"

Enterprise Cluster Configuration

Each node in the cluster needs a [cluster] section:

[cluster]
enabled = true
node_id = "akasha-01"              # Unique per node
bind_addr = "0.0.0.0:7946"         # SWIM gossip port (UDP)
advertise_addr = "akasha-01:7946"  # Reachable address for peers
seeds = ["akasha-02:7946", "akasha-03:7946"]  # Bootstrap peers
cluster_id = "akasha-enterprise"   # Shared cluster identifier

[auth]
enabled = true                     # Recommended for production clusters

[tls]
enabled = true                     # mTLS for inter-node + client
dns_suffix = "sslip.io"            # Auto-cert domain suffix

API Reference

REST Endpoints (HTTP :7777)

MethodPathDescription
GET/api/v1/healthHealth check
POST/api/v1/records/{path}Write a record
GET/api/v1/records/{path}Read a record
DELETE/api/v1/records/{path}Delete a record
GET/api/v1/query?pattern=...Glob query
GET/api/v1/agentsList registered agents
GET/api/v1/treeFull state tree
GET/api/v1/metricsServer metrics
GET/api/v1/nidra/statusLast Nidra consolidation report
GET/api/v1/pheromonesActive pheromone trails
GET/api/v1/memory/layersMemory layer record counts
GET/api/v1/cluster/nodesCluster node topology
GET/api/v1/cluster/syncCRDT sync status
GET/api/v1/cluster/raftRaft consensus status
GET/api/v1/diag/report🔍 Cluster diagnostic report (admin)
GET/api/v1/audit?category=...📋 Security audit trail
GET/dashboard/📊 Enterprise Dashboard SPA
WS/api/v1/stream?pattern=...WebSocket event stream
SSE/api/v1/events?pattern=...Server-Sent Events stream
AuthPublic (no auth required)
POST/api/v1/auth/loginLogin → JWT token
GET/api/v1/auth/statusCheck if auth is enabled
GET/api/v1/auth/meCurrent user identity
POST/api/v1/auth/change-passwordChange own password
AdminRequires Admin role
GET/api/v1/admin/usersList users
POST/api/v1/admin/usersCreate user
PUT/api/v1/admin/users/:usernameUpdate user (role/password)
DELETE/api/v1/admin/users/:usernameDelete user
GET/api/v1/admin/keysList API keys
POST/api/v1/admin/keysCreate API key (returns key once)
DELETE/api/v1/admin/keys/:idRevoke API key
LLM ConfigRequires Admin role
GET/api/v1/admin/llm/configGet current LLM/Nidra config
POST/api/v1/admin/llm/configUpdate LLM config at runtime
POST/api/v1/admin/llm/testTest connection to LLM endpoint
GET/api/v1/admin/llm/modelsDiscover available Ollama models

gRPC Service (Port :50051)

RPCDescription
PutWrite a record
GetRead a record
DeleteDelete a record
QueryGlob pattern query with tag filters
ListPathsList paths under prefix
SubscribeServer-streaming event subscription
RegisterAgentRegister an agent
HeartbeatAgent heartbeat
GetMetricsServer metrics

Performance

  • Sub-millisecond state access via DashMap (lock-free concurrent reads)
  • MessagePack internal serialization (30-50% smaller than JSON)
  • Zero-copy gRPC for binary data
  • Broadcast channels for fan-out event delivery (no per-subscriber overhead)
  • RocksDB WAL with LZ4 compression for durable persistence
  • AES-256-GCM encryption at-rest with ~3% overhead (AES-NI hardware acceleration)
  • Exponential decay pheromones computed on-read (no background timer per pheromone)

🔒 Security

Akasha is built with defense-in-depth — every layer of the stack is secured:

LayerMechanismDetails
TransportTLS 1.3Auto-generated certificates on first boot
AuthenticationJWT + API KeysArgon2id password hashing, configurable expiry
AuthorizationRBACAdmin, User, and ReadOnly roles
Inter-nodemTLSMutual TLS for all cluster communication
GossipHMAC-SHA256Authenticated protocol messages
Rate LimitingPer-user5 failed attempts / 60s lockout
Data at RestAES-256-GCMBYOK — Bring Your Own Key
Audit TrailImmutable logAuth, admin, policy events with 90-day retention

Encryption At-Rest (BYOK)

All record values are encrypted before hitting disk using AES-256-GCM (authenticated encryption). The operator provides their own 256-bit master key — Akasha never generates or stores keys for you.

Key provisioning modes:

ModeConfigurationUse Case
Filekey_file = "/secrets/akasha.key"Kubernetes Secret, Docker secret
Env varkey_env = "AKASHA_ENCRYPTION_KEY"CI/CD, Docker Compose
# akasha.toml
[encryption]
enabled = true
algorithm = "aes-256-gcm"
key_file = "/secrets/akasha.key"    # Hex-encoded 256-bit key (64 chars)
# Generate a key
python3 -c "import secrets; print(secrets.token_hex(32))" > encryption.key

Key properties:

  • Wire format: [version(1)][nonce(12)][ciphertext+tag] — versioned for future algorithm rotation
  • Nonces: 96-bit random per operation — cryptographically guaranteed unique
  • Memory safety: Keys are zeroized from memory after use (zeroize crate)
  • Migration: The system auto-detects unencrypted records and reads them transparently (enable encryption on existing deployments without data loss)
  • Performance: ~3% overhead with AES-NI (P50: 14.6ms encrypted vs 16.5ms unencrypted)

Audit Trail

Every security-relevant event is recorded as an immutable record in the audit/ namespace (enforced append_only policy — records cannot be modified or deleted):

CategoryEvents Tracked
authLogin success/failure, rate limiting triggered
adminUser created/updated/deleted, API key issued/revoked
policyNamespace policy violations (403 Forbidden)
systemEncryption key loaded, Nidra consolidation, node join/leave
# Query the audit trail
curl -sk -H "Authorization: Bearer $TOKEN" \
  "https://your-server:7777/api/v1/audit?category=auth&limit=50"

Audit records have a 90-day TTL by default and are automatically cleaned up.


Project Status

ComponentStatus
Core Engine (akasha-core)✅ Production-ready
Stigmergy / Pheromones✅ Production-ready
Cognitive Fabric (4-layer memory)✅ Production-ready
Nidra Consolidation Engine✅ Production-ready
gRPC Server✅ Production-ready
REST/WebSocket Server✅ Production-ready
Python SDK✅ Production-ready
Node.js SDK✅ Production-ready
Elasticsearch Forwarder✅ Implemented (Enterprise)
LLM Consolidation Hooks✅ Production-ready (Ollama / OpenAI-compatible)
LLM Dashboard Config✅ Runtime config, test connection, model discovery
License Key System✅ Ed25519 cryptographic
Authentication (JWT + API Keys)✅ Argon2id + HMAC-SHA256
Dashboard SPA (React)✅ Embedded in binary (rust-embed)
CLI Key Generation✅ akasha-license api-key
CRDT Replication (HLC + LWW)✅ 29/29 E2E tests
SWIM Gossip Discovery✅ 3-node cluster
Anti-Entropy Reconciliation✅ Rate-limited, backpressure-safe
GossipRaft Consensus✅ Leader election + failover
mTLS + HMAC Inter-Node✅ Encrypted cluster
Distributed Nidra✅ Single-leader consolidation
Encryption At-Rest (BYOK)✅ AES-256-GCM, Bring Your Own Key
Immutable Audit Trail✅ Auth, admin, policy, system events
Namespace Write Policies✅ LWW, CAS-only, append-only, immutable
SSE Event Streaming✅ Real-time filtered event stream
Batch Read API✅ Up to 1000 paths/request
Diagnostic Report API✅ Health score, topology, security posture
MCP Server✅ Claude/Gemini agent integration
Sync Backpressure✅ Rate-limited anti-entropy, zero data loss
Namespace Isolation✅ Per-API-key path filtering
QA Suite✅ 41/41 tests (100%)

How Akasha Compares

Akasha, Mem0, and Letta all solve agent memory — but with fundamentally different approaches:

AkashaMem0Letta (MemGPT)
PhilosophyMemory as infrastructureMemory as a serviceMemory as OS
Core ideaShared cognitive fabric — agents coordinate through persistent stigmergyPluggable memory layer — add recall to any agentAgent runtime — the agent manages its own memory
Write latency< 1 ms (direct data op)~1,400 ms (requires LLM)~500–2,000 ms (LLM tool call)
Read latency< 1 ms~200–500 ms (vector search)~200–500 ms (vector search)
LLM calls per memory op02 (extract + dedup)1+ (agent tool call)
Throughput2,237 ops/sec~1–5 ops/sec (LLM-bound)~1–5 ops/sec (LLM-bound)
Multi-agent coordination✅ Native (stigmergy)❌ Single-agent❌ Single-agent
Memory tiers✅ Working → Episodic → Semantic → Procedural⚠️ Flat✅ Core → Recall → Archival
Auto-consolidation✅ Nidra (time-based, configurable)✅ LLM-driven (on every write)⚠️ Agent-driven (unreliable)
Memory decay✅ Pheromone evaporation❌ Manual deletion❌ Manual
Cross-agent memory✅ Shared paths + pheromones❌ Per-user isolation❌ Per-agent isolation
Self-organizing✅ Stigmergy (emergent)❌ Static structure⚠️ Agent decides
Clustering / HA✅ 3+ node CRDT (Enterprise)❌❌
Auth✅ JWT + API Keys + RBAC⚠️ API key only⚠️ Basic
Dashboard✅ React SPA with CRUD❌⚠️ Basic UI
gRPC✅❌❌
Encryption at rest✅ AES-256-GCM (BYOK)❌❌
Audit trail✅ Immutable log❌❌
Persistence✅ RocksDB (WAL, LSM, encrypted)External (Qdrant, etc.)Postgres
LLM dependencyOptionalCriticalCritical
Best forMulti-agent coordination at scaleSingle-user personalizationStateful single-agent reasoning
LicenseApache-2.0Apache-2.0Apache-2.0

The key insight:

  • Mem0 asks: "What facts should I remember about this user?"
  • Letta asks: "How should the agent manage its own context window?"
  • Akasha asks: "How should a community of agents share and build knowledge?"

These systems can also be complementary: Akasha serves as the coordination backbone while Mem0 handles user-facing personalization and Letta manages complex single-agent reasoning.


Documentation

DocumentDescription
User GuideComplete guide: installation, memory architecture, API, system prompts
Agent IntegrationsConnect Pi, LangGraph, CrewAI, AutoGen, OpenAI SDK, Google ADK, and more
Agent SkillsPre-built skills (agentskills.io standard) for agent onboarding
Python SDKPython SDK with gRPC + HTTP + async support
Node.js SDKTypeScript SDK with gRPC + HTTP + WebSocket

License Tiers

FeatureCommunityBasicEnterprise
Core Engine (CRUD, Query, Subscribe)✅✅✅
Agent Registration & Heartbeat✅✅✅
Stigmergy (Pheromones)✅✅✅
Cognitive Fabric (4 layers)✅✅✅
Nidra Basic (rule-based)✅✅✅
Python & Node.js SDKs✅✅✅
Web Dashboard❌✅✅
Clustering (HA / FT / DR)❌❌✅ (3+ nodes)
Elasticsearch Forwarder❌❌✅
Nidra LLM Hooks❌❌✅
Custom Consolidation Hooks❌❌✅
Max Agents5100♾️
Max Records10K1M♾️
Max Pheromone Trails10010K♾️
Max Nodes11Licensed (3+)
License RequiredNo (auto-demo)Yes (registered)Yes (registered)
Cluster BindingNoneInstallation fingerprintInstallation fingerprint
Priority Support❌❌✅

Licensing Operations — Full Guide

Security Model

Licenses are Ed25519 cryptographically signed and validated offline (zero phone-home).

Since v2, licenses are bound to a installation-specific fingerprint composed of:

fingerprint = SHA-256(cluster_id + installation_id + install_timestamp)
                 ↑                    ↑                    ↑
           user-defined       UUID v4 (auto)         first boot epoch
  • cluster_id: Defined in akasha.toml by the user
  • installation_id: Random UUID generated once on first boot, saved to data/cluster.identity
  • install_timestamp: Unix epoch of first boot

This ensures the same cluster_id on a different server produces a different fingerprint.

Step 0: Generate Keypair (one-time)

akasha-license keygen --output keys/
# → keys/akasha.key  (PRIVATE — never share)
# → keys/akasha.pub  (PUBLIC  — embedded in binary)

Step 1: Client Installs & Gets Fingerprint

The client installs Akasha and starts the server. On first boot, a cluster.identity file is generated:

# Client runs:
akasha akasha.toml
# 🔑 New cluster identity generated — share this fingerprint for licensing
# → data/cluster.identity created

# Client retrieves fingerprint:
curl -sk https://localhost:7777/api/v1/license/fingerprint

Response:

{
  "fingerprint": "a7f3b2e1d4c5f6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2",
  "cluster_id": "acme-production",
  "installation_id": "e9c14a2b-7f3d-4e5a-8b1c-9d0e2f3a4b5c",
  "installed_at": 1712345678,
  "license_tier": "Community",
  "license_valid": true
}

The client sends you the fingerprint value.

Step 2: Issue License (Admin)

# Enterprise license (recommended: use --fingerprint from server)
akasha-license issue \
  --customer "Acme Corp" \
  --tier enterprise \
  --fingerprint "a7f3b2e1d4c5f6a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2" \
  --max-nodes 5 \
  --days 365 \
  --private-key keys/akasha.key \
  --output acme-license.json

# Basic license
akasha-license issue \
  --customer "Startup Inc" \
  --tier basic \
  --fingerprint "<fingerprint>" \
  --days 365 \
  --private-key keys/akasha.key \
  --output startup-license.json

# Legacy mode (v1 — cluster-id only, NOT recommended)
akasha-license issue \
  --customer "Legacy Corp" \
  --tier basic \
  --cluster-id "legacy-prod" \
  --private-key keys/akasha.key \
  --output legacy-license.json

Step 3: Client Activates License

# Client copies license.json to their server
cp license.json /path/to/akasha/license.json

# Updates akasha.toml:
# [auth]
# license_path = "license.json"

# Restarts:
akasha akasha.toml
# 🔑 License validated: Enterprise (Acme Corp, 5 nodes)

Step 4: Verify License (Admin)

akasha-license verify \
  --license acme-license.json \
  --public-key keys/akasha.pub
# ✅ License is VALID

Full Flow Diagram

CLIENT                                     ADMIN (you)
──────                                     ───────────
1. Install Akasha
2. akasha akasha.toml (first boot)
   → generates data/cluster.identity
   → prints fingerprint
   
3. curl .../api/v1/license/fingerprint
   → gets fingerprint JSON
   
4. Sends fingerprint to admin ─────────── 5. akasha-license issue \
                                              --fingerprint "..." \
                                              --customer "..." \
                                              --tier enterprise \
                                              --max-nodes 5 \
                                              --private-key keys/akasha.key
                                              
6. Receives license.json ◄──────────────── 7. Sends license.json

8. cp license.json → config dir
9. Restart: 🔑 License validated ✓

DONE — zero phone-home, fully offline

Key Paths

FilePurpose
keys/akasha.keyEd25519 private signing key (NEVER SHARE)
keys/akasha.pubEd25519 public verification key (embedded in binary)
data/cluster.identityInstallation fingerprint (auto-generated, immutable)
license.jsonSigned license file (given to client)
API: /api/v1/license/statusLive expiry status (JSON)
API: /api/v1/license/fingerprintInstallation fingerprint (JSON)

License

Apache License 2.0

Copyright © 2026 Alejandro Sánchez Losa · GitHub · LinkedIn

Licensed under the Apache License, Version 2.0. You may use, modify, and distribute this software in accordance with the terms of the license.


"In the Akashic field, there is no distance between knowing and being known. Every agent that writes to the fabric enriches it. Every agent that reads from it gains awareness. The whole becomes greater than the sum of its parts — not through command, but through connection."

Built with 🦀 Rust · Powered by ⚡ Tokio · Dreaming through 🧘 Nidra

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Akasha MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-ocuil)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent