Shodh Cognitive Memory

v0.2.0Knowledge & Memorystable

🦀 🏠 - Cognitive memory for AI agents with Hebbian learning, 3-tier architecture, and knowledge graphs. Single ~15MB binary, runs offline on edge devices.

agentic-aiai-agentsai-memoryboston-dynamics-spotclaude
Share:
215
Stars
0
Downloads
0
Weekly
0/5

What is Shodh Cognitive Memory?

Shodh Cognitive Memory is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🦀 🏠 - cognitive memory for ai agents with hebbian learning, 3-tier architecture, and knowledge graphs. single ~15mb binary, runs offline on edge devices.

🦀 🏠 - Cognitive memory for AI agents with Hebbian learning, 3-tier architecture, and knowledge graphs. Single ~15MB binary, runs offline on edge devices.

This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 🦀 🏠 - Cognitive memory for AI agents with Hebbian learning,

Use Cases

Enable AI agents to learn with Hebbian learning mechanisms.
Build knowledge graphs for semantic understanding.
Deploy memory on edge devices with minimal binary size.
varun29ankuS

Maintainer

LicenseApache-2.0
Languagerust
Versionv0.2.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @shodh/memory-mcp

Manual Installation

npx -y @shodh/memory-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Shodh Cognitive Memory

Shodh Memory is a cognitive memory engine for AI agents implemented in Rust and distributed as a single ~15 MB binary that runs fully offline on edge devices, laptops, or robotics hardware. It implements neuroscience-inspired Hebbian learning — frequently accessed memories strengthen over time while unused ones fade — organised in a 3-tier architecture (working, episodic, semantic) with knowledge-graph relationships and spreading activation. The MCP server exposes 37 tools covering memory storage and retrieval, GTD-style task management, project tracking, reminders, and system diagnostics, giving any MCP client persistent, evolving long-term memory without cloud dependencies.

Prerequisites

  • Node.js 16+ (for npx installation method) or Docker for containerised deployment
  • No external API keys required for local use — the binary generates its own keys on first run
  • Claude Desktop, Claude Code, or another MCP-compatible client
  • For remote/production deployments: SHODH_API_KEYS environment variable with comma-separated API keys
1

Add to Claude Code via the MCP CLI

The fastest way to get started in Claude Code is to add shodh-memory as an MCP server with a single command.

claude mcp add shodh-memory -- npx -y @shodh/memory-mcp
2

Set up automatic memory hooks

Install the session lifecycle hooks so Claude Code automatically saves and recalls memories at the start and end of each session.

npx @shodh/memory-mcp setup-hooks
3

Alternatively, run the shodh binary directly

Download and initialise the standalone Shodh binary for direct use without npx.

shodh init          # First-time setup — generates local API keys
shodh server        # Start memory server on port 3030
shodh tui           # Launch terminal dashboard
4

Or deploy with Docker

For persistent server deployments, use the Docker image with a named volume for data persistence.

docker run -d -p 3030:3030 -v shodh-data:/data varunshodh/shodh-memory
5

Configure environment for production deployments

For multi-user or remote deployments, set environment variables to control the API keys, memory storage path, and concurrency limits.

SHODH_ENV=production
SHODH_API_KEYS=key1,key2,key3
SHODH_HOST=127.0.0.1
SHODH_PORT=3030
SHODH_MEMORY_PATH=/var/lib/shodh
SHODH_MAX_CONCURRENT=200

Shodh Cognitive Memory Examples

Client configuration

claude_desktop_config.json entry for Shodh Memory using the npm package.

{
  "mcpServers": {
    "shodh-memory": {
      "command": "npx",
      "args": ["-y", "@shodh/memory-mcp"]
    }
  }
}

Prompts to try

Example prompts demonstrating Shodh Memory's 37 MCP tools for persistent AI memory.

- "Remember that the project deadline is June 30 and the client is Acme Corp."
- "What do you recall about the database schema we discussed last week?"
- "Add a todo: review pull request #42 by end of day."
- "List all my open projects and their statuses."
- "Set a reminder for tomorrow at 9am to send the weekly report."
- "Show me a summary of all memories related to the authentication module."

Troubleshooting Shodh Cognitive Memory

npx @shodh/memory-mcp fails with permissions or download errors

Ensure Node.js 16+ is installed and npx is available. Run 'npx -y @shodh/memory-mcp' manually in a terminal to see the full error output. If behind a proxy, set the HTTP_PROXY environment variable.

Memories are not persisting between Claude sessions

Run 'npx @shodh/memory-mcp setup-hooks' to install the session lifecycle hooks. Without hooks, the agent must manually call the 'remember' tool — hooks automate saving at session end.

Remote deployment returns 401 errors when calling MCP tools

Set SHODH_API_KEYS to a comma-separated list of valid keys and pass the key in the X-API-Key HTTP header on each request. Local single-user deployments do not require this.

Frequently Asked Questions about Shodh Cognitive Memory

What is Shodh Cognitive Memory?

Shodh Cognitive Memory is a Model Context Protocol (MCP) server that 🦀 🏠 - cognitive memory for ai agents with hebbian learning, 3-tier architecture, and knowledge graphs. single ~15mb binary, runs offline on edge devices. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Shodh Cognitive Memory?

Install via npm with the command: npx -y @shodh/memory-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Shodh Cognitive Memory?

Shodh Cognitive Memory works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Shodh Cognitive Memory free to use?

Yes, Shodh Cognitive Memory is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Knowledge & Memory MCP Servers

Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "shodh-memory": { "command": "npx", "args": ["-y", "@shodh/memory-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Shodh Cognitive Memory?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides