Agent Memory MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agent Memory MCPfind my past resolution for the token refresh error"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Agent Memory MCP
Multi-tier memory server for AI agents with a full neural-cortical architecture. Episodic, semantic, and procedural memory with hybrid search, knowledge graphs, dream consolidation, and 45+ MCP tools.
╔══════════════════════════════════════════╗
║ CORTICAL ARCHITECTURE ║
╚══════════════════════════════════════════╝
│
┌─────────────────────┼─────────────────────┐
│ │ │
┌────┴────┐ ┌────┴────┐ ┌────┴────┐
│ PFC │ │ ACC │ │ BG │
│Enhance │◄─────────┤Strategy │ │ Optimize│
│+strategy│ inj. │Select │ │Bottleneck│
└─────────┘ └─────────┘ └─────────┘
│ │ │
└─────────────────────┼─────────────────────┘
│
┌──────────┴──────────┐
│ Thalamus │
│ Context-Aware │
│ Dynamic Router │
└──────────┬──────────┘
│
┌───────────────┼───────────────┐
│ │ │
┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐
│ Optical │ │ Touch │ │ Audio- │
│ Visual │ │Tool Obsrv │ │ Spatial │
│ Cortex │ │Proficienc │ │ Map+Sound│
└───────────┘ └───────────┘ └───────────┘
│ │ │
└───────────────┼───────────────┘
│
┌──────────┴──────────┐
│ Columnar │
│ Cortex Pool │
│ 8 cols · 5 temps │
│ 5 prompts · subspce │
└──────────┬──────────┘
│
┌──────────┴──────────┐
│ Limbic │
│ Valence -1 to +1 │
│ Inhibit/Reinforce │
└──────────┬──────────┘
│
┌──────────┴──────────┐
│ Broca │
│ Persona-Aware │
│ Output Reformulate │
└──────────┬──────────┘
│
┌──────────┴──────────┐
│ DMN Dream Engine │
│ Consolidate · Prune │
│ Link · Promote │
└──────────┬──────────┘
│
┌──────────┴──────────┐
│ Memory Tiers │
│ Episodic · Semantic │
│ Procedural · KG │
└─────────────────────┘Architecture
Memory Tiers (3 + KG)
Tier | What It Stores | How It's Searched | Decay Half-Life |
Episodic | Events, logs, sessions | FTS5 BM25 + LIKE fallback | 7 days |
Semantic | Facts, knowledge, concepts | FTS5 BM25 + LIKE fallback | 90 days |
Procedural | How-to, workflows, skills | FTS5 BM25 + LIKE fallback | 365 days |
Knowledge Graph | Entities + relations + behavioral rules | FTS5 + BFS traversal | None (explicit only) |
Cortical Regions (8 Executive + 3 Sensory + 1 Consolidation)
Executive Layer
Region | MCP Tool | Function | Real Implementation |
PFC (Prefrontal) |
| Cognitive scaffolding with strategy injection | ACC-selected strategy protocol injected into enhancement scaffold. 4 modes: base/enhanced/expert/genius. |
ACC (Anterior Cingulate) |
| Strategy switching (6 patterns) | Keyword-match detection for chain-of-thought, tree-of-thoughts, reflexion, constitutional, mixture-of-agents, self-rewarding. |
BG (Basal Ganglia) |
| Bottleneck detection, habit formation | Flags operations >5s. Tracks procedural memory access frequency. |
OFC (Orbitofrontal) |
| Personality adaptation, modulates 4 downstream targets | Sets system prompt, valuation bias, attention bias. Modulates PFC/Thalamus/Limbic/Broca. 4 personas. |
Thalamus |
| Attention gating, 6 routing targets | Keyword-based routing. Now also context-aware via |
Limbic |
| Affective valence (-1 to +1), behavior loop | Actually changes behavior: inhibits actions after 3 negative outcomes, reinforces after 3 positive outcomes. |
Broca |
| Output reformulation per persona | Adds persona-specific instruction prefix to output. |
Columnar |
| Ensemble voting with real diversity | 8 columns with 5 different temperatures (0.1-0.9), 5 distinct prompt framings (critical/creative/stepwise/expert/simplify), random 30-50% input subspaces. Confidence-weighted pooling. |
Sensory Layer
Region | MCP Tool | Function | Integration |
Optical |
| Visual perception (8 modalities) | Browser, screenshots, OCR, PDF, HTML, SVG, design, camera. Extracts entities. |
Touch |
| Tool interaction observation | Every tool call logged → proficiency map. Success rates tracked over time. |
Audio-Spatial |
| Sound processing + spatial mapping | Speech, music, analysis + filesystem, network, container topology. |
Consolidation Layer
System | MCP Tools | Function | Real Effect |
DMN Dream Engine |
| 3-phase consolidation (nap/deep/full) | Recall → analyze → reinforce good → inhibit bad → prune weak |
DMN Consolidation |
| System state modification | Actually changes system: prunes weak entries, creates associative links across entities, promotes behavioral rules to higher importance, records consolidation events in KG. |
Context Pressure | Built into engine | Auto-summarization at threshold | Tracks token usage against 128K ceiling. Triggers summarization at 70%, critical at 85%. |
Tiered Memory | Built into engine | Hot/warm/cold classification | Composite score from access_count, recency, importance. Exponential decay: |
Engine Tools (Functional, No Labels)
These are the tools that actually do things — not renamed features, but real functional systems:
Tool | What It Actually Does |
| Prunes weak KG entries, links related entities via |
| Scores outcome -1 to +1. On 3rd negative: creates |
| Routes input based on live context: recent_failures >3 → ACC for strategy, workload >10 → BG for optimization, creative persona → OFC first. |
| 8 columns, each with unique temp (0.1-0.9) + unique prompt framing + random subspace mask (30-50%). Returns confidence-weighted consensus. |
| Real phase tracking with coherence gates. Auto-switches mode (fast/medium/slow) based on workload. Consolidation gate opens when coherence >0.85. |
| Generates N approaches using diverse thinking styles (engineering, nature, philosophy, design, economics, quantum, craft, systems) pulled from KG domains. |
| Searches known analogy pairs + KG entities for structural cross-domain matches. Falls back to generative KG-based analogies. |
Domain Knowledge Modules
7 domains auto-seeded on first server start (74 entities, 146 aliases):
🌳 Woodworking → 12 entities: joinery, materials, tools, finishes
🌱 Gardening → 10 entities: compost, pH, companion planting, permaculture
⚡ Electronics → 11 entities: Ohm's law, transistors, op-amps, Arduino
💭 Philosophy → 10 entities: Plato→Nietzsche, Stoicism, Existentialism
📖 Books → 10 entities: Dune, 1984, Sapiens, Zettelkasten
⚛️ Quantum Sims → 10 entities: qubits, Shor/Grover, Qiskit, VQE
💰 Macroeconomics → 10 entities: GDP, inflation, Keynesian, Phillips curveSession Lifecycle (Engram Pattern)
Tool | Function |
| Creates session record in KG, retrieves previous session's open_tasks + conventions. |
| Stores completed_tasks, decisions, open_tasks, conventions_established. Links to project entity. |
Wiki Memory (Structured Markdown)
Tool | Function |
| Read a Markdown page from |
| Write/update a Markdown page |
| Full-text search across all wiki pages |
| List all wiki pages |
Safety Pipeline (ai-memory-core)
Feature | Function |
Prompt Injection Detection | 9 regex patterns: instruction override, role switch, system prompt extraction, base64, jailbreak, etc. With risk scoring. |
PII Redaction | 6 entity types: email, phone, credit card, SSN, IP, API keys. |
Provenance | SHA-256 hashing of data dicts for integrity verification. |
Limbic Blocklist | Verifier checks KG for |
Oscillation Scheduler
Real phase tracking (0-2π), not labels:
Mode | Trigger | Behavior |
Fast (γ) | workload > 10 | Direct routing, skip deep processing |
Medium (β) | workload 3-10 | Normal cortical cycle |
Slow (θ) | workload < 3 | Full DMN consolidation, phase coherence gated |
Coherence gate: phase_coherence > 0.85 → gate opens → consolidation runs. Based on actual sinusoidal phase calculation.
Related MCP server: Archivist MCP
Quick Start
# Clone
git clone https://github.com/ohmpatel3877/agent-memory-mcp.git
cd agent-memory-mcp
# Install
npm install
npx tsc
# Add to OpenCode config (~/.config/opencode/opencode.jsonc):
# {
# "mcp": {
# "agent-memory-mcp": {
# "type": "local",
# "command": ["node", "/path/to/agent-memory-mcp/dist/index.js"],
# "enabled": true
# }
# }
# }Tools (45 Total)
Category | Tools | Count |
Base Memory |
| 10 |
Lifecycle |
| 4 |
Engram Sessions |
| 2 |
Cortical Bridge |
| 7 |
Sensory |
| 5 |
DMN |
| 3 |
Engine |
| 7 |
Creativity |
| 1 |
Wiki |
| 4 |
Domains |
| 2 |
Total | 45 |
Evaluation
Metric | Score |
Evaluation pass rate | 95.5% (21/22) |
Logic redundancy | 5/5 passed |
Speed benchmarks | 9/10 passed |
Creativity & reasoning | 14/16 passed |
Code integration | 21/22 passed |
Module files | 33 TypeScript modules |
Total lines | ~15,000+ across all modules |
License
MIT © Ohm Patel
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ohmpatel3877/agent-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server