Hebbian Mind Enterprise MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add hebbian-mind-enterprise -- docker exec -i hebbian-mind python -m hebbian_mind.server
README.md

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_FACTOR is 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 location
HEBBIAN_MIND_RAM_DISKEnable RAM disk for faster reads
HEBBIAN_MIND_THRESHOLDActivation threshold (0.0-1.0)
HEBBIAN_MIND_FAISS_ENABLEDEnable FAISS semantic search

Configuration

claude_desktop_config.json
{"mcpServers": {"hebbian-mind": {"command": "python", "args": ["-m", "hebbian_mind.server"]}}}

Try it

Save this technical documentation to my mind and link it to the 'security' and 'architecture' concepts.
Query my mind for memories related to 'deployment' and 'microservices'.
What concepts are currently most strongly connected to 'security' in my knowledge graph?
Analyze this new project proposal and tell me which existing concepts it would activate.
Show me the current status and statistics of my Hebbian memory store.

Frequently Asked Questions

What are the key features of Hebbian Mind Enterprise?

Associative memory that surfaces related concepts automatically. Hebbian learning where edges strengthen through co-activation. 100+ pre-defined enterprise concept nodes. MCP native integration for Claude Desktop and other clients. Optional FAISS semantic search integration.

What can I use Hebbian Mind Enterprise for?

Building a self-organizing knowledge base for enterprise documentation. Tracking relationships between security protocols and operational workflows. Automated concept mapping for technical research and development. Maintaining a persistent memory of project-specific architectural decisions.

How do I install Hebbian Mind Enterprise?

Install Hebbian Mind Enterprise by running: pip install -e . && python -m hebbian_mind.server

What MCP clients work with Hebbian Mind Enterprise?

Hebbian Mind Enterprise works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Hebbian Mind Enterprise docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare