Smriti

Smriti

Local-first persistent memory for AI agents via MCP, enabling semantic search and memory sharing across agents with zero cloud cost and full privacy.

Category
Visit Server

README

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.

Smriti Cloud alternatives
Setup npx smriti Accounts + API keys + config
Cost $0 Variable
Privacy 100% local Data on external servers
Offline Full functionality Needs internet
Portability Single .db file DB export/migration

Install

npm install -g smriti

Usage

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

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

CLI Quick Reference

# Capture a memory
smriti capture "We chose PostgreSQL over MySQL for the new service"

# Semantic search
smriti search "database decisions"

# Browse recent memories (last 7 days)
smriti recall --days 7

# Browse by topic
smriti recall "authentication"

# Batch-extract memories from a conversation or document
smriti ingest --text "Long meeting notes or conversation log..." --threshold 0.4

# Memory stats
smriti stats

# Sync to GitHub (requires: smriti auth)
smriti sync

# GitHub auth
smriti auth
smriti whoami
smriti logout

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

Tool Description
capture Store a thought with auto-extracted metadata
search Semantic search — find thoughts by meaning
recall Browse recent memories with filters
forget Delete a specific memory by ID
context Get structured context bundle for a topic
stats Memory patterns and insights

Resources

URI Description
memory://recent Last 24h of thoughts
memory://topics Topic index with counts
memory://people People mentioned + context
memory://stats Overall memory statistics

Prompts

Name Description
brain-dump Guided capture session
weekly-review End-of-week synthesis
migrate Import 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured