Memory that learns. Connections that fade.
Hebbian Mind Enterprise
Memory that learns. Connections that fade.
An MCP server that builds knowledge graphs through use. Concepts connect when they activate together. Unused connections decay. The more you use it, the smarter it gets.
What It Does
- Associative Memory - Save content. Query content. Related concepts surface automatically.
- Hebbian Learning - Edges strengthen through co-activation. No manual linking required.
- Concept Nodes - 100+ pre-defined enterprise concepts across Systems, Security, Data, Operations, and more.
- MCP Native - Works with Claude Desktop, Claude Code, any MCP-compatible client.
Installation
Three paths. Pick what fits.
Windows (Native)
# Clone the repo
git clone https://github.com/For-Sunny/hebbian-mind-enterprise.git
cd hebbian-mind-enterprise
# Install with pip
pip install -e .
# Verify
python -m hebbian_mind.server
The server runs on stdio. Press Ctrl+C to stop.
Linux / macOS (Native)
# Clone the repo
git clone https://github.com/For-Sunny/hebbian-mind-enterprise.git
cd hebbian-mind-enterprise
# Install with pip (use a virtual environment if you prefer)
pip install -e .
# Verify
python -m hebbian_mind.server
Linux gets automatic RAM disk support via /dev/shm when enabled.
Docker (Teams / Enterprise)
# Clone the repo
git clone https://github.com/For-Sunny/hebbian-mind-enterprise.git
cd hebbian-mind-enterprise
# Copy environment template
cp .env.example .env
# Build and start
docker-compose up -d
# View logs
docker-compose logs -f hebbian-mind
For RAM disk optimization:
docker-compose --profile ramdisk up -d
Claude Desktop Integration
Add to your claude_desktop_config.json:
Native Install:
{
"mcpServers": {
"hebbian-mind": {
"command": "python",
"args": ["-m", "hebbian_mind.server"]
}
}
}
Docker Install:
{
"mcpServers": {
"hebbian-mind": {
"command": "docker",
"args": ["exec", "-i", "hebbian-mind", "python", "-m", "hebbian_mind.server"]
}
}
}
Restart Claude Desktop. The tools appear automatically.
Configuration
Environment variables control behavior. Set them before running, or use .env with Docker.
Core Settings
| Variable | Default | Description |
|---|---|---|
HEBBIAN_MIND_BASE_DIR |
./hebbian_mind_data |
Data storage location |
HEBBIAN_MIND_RAM_DISK |
false |
Enable RAM disk for faster reads |
HEBBIAN_MIND_RAM_DIR |
/dev/shm/hebbian_mind (Linux) |
RAM disk path |
Hebbian Learning
| Variable | Default | Description |
|---|---|---|
HEBBIAN_MIND_THRESHOLD |
0.3 |
Activation threshold (0.0-1.0) |
HEBBIAN_MIND_MAX_WEIGHT |
10.0 |
Maximum edge weight cap |
Deprecated:
HEBBIAN_MIND_EDGE_FACTORis no longer used. The asymptotic learning formula (LEARNING_RATE = 0.1) replaced the old harmonic strengthening factor. The env var still loads without error but has no effect on edge weights.
Optional Integrations
| Variable | Default | Description |
|---|---|---|
HEBBIAN_MIND_FAISS_ENABLED |
false |
Enable FAISS semantic search |
HEBBIAN_MIND_FAISS_HOST |
localhost |
FAISS tether host |
HEBBIAN_MIND_FAISS_PORT |
9998 |
FAISS tether port |
HEBBIAN_MIND_PRECOG_ENABLED |
false |
Enable PRECOG concept extraction |
MCP Tools
Eight tools. All available through any MCP client.
save_to_mind
Store content with automatic concept activation and edge strengthening.
{
"content": "Microservices architecture enables independent deployment",
"summary": "Optional summary",
"source": "ARCHITECTURE_DOCS",
"importance": 0.8
}
Activates matching concept nodes. Strengthens edges between co-activated concepts.
query_mind
Query memories by concept nodes.
{
"nodes": ["architecture", "deployment"],
"limit": 20
}
Returns memories that activated those concepts.
analyze_content
Preview which concepts would activate without saving.
{
"content": "API authentication using JWT tokens",
"threshold": 0.3
}
get_related_nodes
Get concepts connected via Hebbian edges.
{
"node": "security",
"min_weight": 0.1
}
Returns the neighborhood graph - concepts that have fired together with "security".
list_nodes
List all concept nodes, optionally filtered.
{
"category": "Security"
}
mind_status
Server health and statistics.
{}
Returns node count, edge count, memory count, strongest connections, dual-write status.
faiss_search
Semantic search via
Tools (6)
save_to_mindStore content with automatic concept activation and edge strengthening.query_mindQuery memories by concept nodes.analyze_contentPreview which concepts would activate without saving.get_related_nodesGet concepts connected via Hebbian edges.list_nodesList all concept nodes, optionally filtered.mind_statusServer health and statistics.Environment Variables
HEBBIAN_MIND_BASE_DIRData storage locationHEBBIAN_MIND_RAM_DISKEnable RAM disk for faster readsHEBBIAN_MIND_THRESHOLDActivation threshold (0.0-1.0)HEBBIAN_MIND_FAISS_ENABLEDEnable FAISS semantic searchConfiguration
{"mcpServers": {"hebbian-mind": {"command": "python", "args": ["-m", "hebbian_mind.server"]}}}