MCP Hub
Back to servers

smriti

Validated

Local-first persistent memory for AI agents via MCP. Sanskrit for memory (स्मृति). Zero cloud. Zero cost.

npm100/wk
Stars
1
Tools
12
Updated
Mar 3, 2026
Validated
Mar 31, 2026
Validation Details

Duration: 15.0s

Server: smriti v0.1.0

Quick Install

npx -y smriti

Smriti

Local-first persistent memory for AI agents via MCP.

Smriti (स्मृति) — Sanskrit for "memory, remembrance"

One brain. Every agent. Zero cloud. Zero cost.

What is this?

A standalone MCP server backed by sqlite-vec and a local embedding model. Install it, point any MCP-compatible agent at it, and every AI you use shares one persistent, semantically searchable memory.

SmritiCloud alternatives
Setupnpx smritiAccounts + API keys + config
Cost$0Variable
Privacy100% localData on external servers
OfflineFull functionalityNeeds internet
PortabilitySingle .db fileDB export/migration

Install

npm install -g smriti

Usage

# stdio mode (for Claude Code, Cursor, etc.)
smriti

# HTTP mode (for remote agents)
smriti --http --port 3838

MCP Client Configuration

Claude Code

Add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "memory": {
      "command": "smriti"
    }
  }
}

Cursor

Add to MCP settings:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["smriti"]
    }
  }
}

Any MCP client (HTTP mode)

smriti --http --port 3838

Then point your client at http://localhost:3838/mcp.

Tools

ToolDescription
captureStore a thought with auto-extracted metadata
searchSemantic search — find thoughts by meaning
recallBrowse recent memories with filters
forgetDelete a specific memory by ID
contextGet structured context bundle for a topic
statsMemory patterns and insights

Resources

URIDescription
memory://recentLast 24h of thoughts
memory://topicsTopic index with counts
memory://peoplePeople mentioned + context
memory://statsOverall memory statistics

Prompts

NameDescription
brain-dumpGuided capture session
weekly-reviewEnd-of-week synthesis
migrateImport memories from other sources

Configuration

Config lives at ~/.smriti/config.json:

{
  "db_path": "~/.smriti/brain.db",
  "embedding": {
    "provider": "onnx",
    "model": "Xenova/all-MiniLM-L6-v2"
  },
  "extraction": {
    "provider": "rules"
  },
  "server": {
    "transport": "stdio",
    "port": 3838
  }
}

How it works

  1. You (or an agent) call capture with text
  2. Smriti generates a vector embedding locally (all-MiniLM-L6-v2 via ONNX)
  3. Regex-based extraction pulls out people, topics, actions, and classifies the type
  4. Everything is stored in a single SQLite file with sqlite-vec for vector search
  5. search finds thoughts by semantic similarity, not just keywords
  6. All data stays on your machine — nothing leaves localhost

License

MIT

Reviews

No reviews yet

Sign in to write a review