shahzebqazi/mhn-ai-agent-memory
AI agent memory using Modern Hopfield Networks — no LLM calls, no database, one matrix multiply. MCP server for Cursor, Claude Code, and other AI coding agents.
Platform-specific configuration:
{
"mcpServers": {
"mhn-ai-agent-memory": {
"command": "npx",
"args": [
"-y",
"mhn-ai-agent-memory"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<div align="center">
[](https://www.python.org/downloads/) [](LICENSE) [](#development) [](https://arxiv.org/abs/2008.02217)
Give your AI agents real memory. Not a database with an LLM wrapper. Actual associative memory backed by mathematics.
Install • Quick Start • Features • How It Works • API Reference
</div>
---
<div align="center">
┌─────────────────────────────────────────────┐
│ │
│ xi_new = X @ softmax( beta * X^T @ xi ) │
│ │
│ One equation. One matrix multiply. │
│ Deterministic. Microseconds. Free. │
│ │
└─────────────────────────────────────────────┘</div>
---
When an AI agent needs to "remember" something today, the standard approach is:
This library replaces that pipeline with the Modern Hopfield Network update rule -- the same mathematical structure as transformer attention, but exposed as an explicit, controllable memory.
| | Traditional (LLM + DB) | This Library | |---|---|---| | Retrieval | LLM API call | One matrix multiply | | Latency | Seconds | Microseconds | | Cost |
Loading reviews...