
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@shodh/memory-mcp
Advanced tools
MCP server for persistent AI memory - store and recall context across sessions
v0.1.6 | Persistent cognitive memory for AI agents
Documentation | GitHub | Python SDK | Rust Crate
Add to your MCP client config:
Claude Desktop / Claude Code (claude_desktop_config.json):
{
"mcpServers": {
"shodh-memory": {
"command": "npx",
"args": ["-y", "@shodh/memory-mcp"],
"env": {
"SHODH_API_KEY": "your-api-key-here"
}
}
}
}
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonFor Cursor/other MCP clients: Similar configuration with the npx command.
| Variable | Description | Default |
|---|---|---|
SHODH_API_KEY | Required. API key for authentication | - |
SHODH_API_URL | Backend server URL | http://127.0.0.1:3030 |
SHODH_USER_ID | User ID for memory isolation | claude-code |
SHODH_NO_AUTO_SPAWN | Set to true to disable auto-starting the backend | false |
SHODH_STREAM | Enable/disable streaming ingestion | true |
SHODH_PROACTIVE | Enable/disable proactive memory surfacing | true |
| Tool | Description |
|---|---|
remember | Store a memory with optional type and tags |
recall | Semantic search to find relevant memories |
proactive_context | Auto-surface relevant memories for current context |
context_summary | Get categorized context for session bootstrap |
list_memories | List all stored memories |
forget | Delete a specific memory by ID |
memory_stats | Get statistics about stored memories |
recall_by_tags | Find memories by tag |
recall_by_date | Find memories within a date range |
verify_index | Check vector index health |
repair_index | Repair orphaned memories |
consolidation_report | View memory consolidation activity |
The server exposes a REST API at http://127.0.0.1:3030:
// Store a memory
const res = await fetch("http://127.0.0.1:3030/api/remember", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "your-api-key"
},
body: JSON.stringify({
user_id: "my-app",
content: "User prefers dark mode",
memory_type: "Observation",
tags: ["preferences", "ui"]
})
});
// Semantic search
const results = await fetch("http://127.0.0.1:3030/api/recall", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "your-api-key"
},
body: JSON.stringify({
user_id: "my-app",
query: "user preferences",
limit: 5
})
});
| Endpoint | Method | Description |
|---|---|---|
/health | GET | Health check |
/api/remember | POST | Store a memory |
/api/recall | POST | Semantic search |
/api/recall/tags | POST | Search by tags |
/api/recall/date | POST | Search by date range |
/api/memories | POST | List all memories |
/api/memory/{id} | GET/PUT/DELETE | CRUD operations |
/api/context_summary | POST | Get context summary |
/api/relevant | POST | Proactive context surfacing |
/api/batch_remember | POST | Store multiple memories |
/api/upsert | POST | Create or update by external_id |
/api/graph/{user_id}/stats | GET | Knowledge graph statistics |
/api/consolidation/report | POST | Memory consolidation report |
/api/index/verify | POST | Verify index integrity |
/metrics | GET | Prometheus metrics |
Memories that are frequently accessed together form stronger associations. The system automatically:
Background processes maintain memory health:
Based on Cowan's working memory model:
npx -y @shodh/memory-mcp downloads the packageremember and recall toolsThe backend server runs locally and stores all data on your machine. No cloud dependency.
"Remember that the user prefers Rust over Python for systems programming"
"Recall what I know about user's programming preferences"
"What context do you have about this project?"
"List my recent memories"
"Show me the consolidation report"
| Platform | Architecture | Status |
|---|---|---|
| Linux | x64 | Supported |
| macOS | x64 | Supported |
| macOS | ARM64 (M1/M2) | Supported |
| Windows | x64 | Supported |
pip install shodh-memory - Native Python bindingscargo add shodh-memory - Use as a libraryApache-2.0
FAQs
MCP server for persistent AI memory - store and recall context across sessions
The npm package @shodh/memory-mcp receives a total of 65 weekly downloads. As such, @shodh/memory-mcp popularity was classified as not popular.
We found that @shodh/memory-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.