smriti-kaal-mcp
Allows routing memory storage to your own Supabase PostgreSQL (pgvector) database by supplying a Session Pooler URL, so ingested events and memories are kept entirely in your own infrastructure instead of Smriti's cloud (BYODB mode).
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
๐ What is Smriti?
The Problem: Traditional "agent memory" relies on fuzzy vector databases that suffer from temporal drift. When tracking deals, deployments, contracts, or multi-step workflows, you need a deterministic event ledger โ not a chatbot guessing from old embeddings.
The Solution: Smriti is a temporal event memory layer โ a bi-temporal hippocampus for AI agents that tracks state changes perfectly across systems and sessions.
Feature | Smriti (Event Memory) | Traditional RAG (Chat Memory) |
Structure | SVO Tuples: Tracks concrete actions ( | Vector Sludge: Dumps unstructured text into a vector DB |
Time | Bi-Temporal: Tracks both when it happened and when it was recorded | Timeless: Cannot distinguish old facts from current state |
Updates | Supersession: Safely overrides state without deleting history | Overwrite: Hard deletes or creates confusing duplicates |
Related MCP server: brain
๐ Quick Start (5 Minutes)
Step 1 โ Get a free API key
curl -X POST "https://smriti-kaal.vercel.app/billing/keys?tier=explorer"Step 2 โ Store a memory
curl -X POST https://smriti-kaal.vercel.app/ingest \
-H "X-API-Key: chrn_your_key" \
-H "Content-Type: application/json" \
-d '{"source_id": "demo", "events": [{"text": "Alice joined as Lead Engineer on July 15"}]}'Step 3 โ Recall it
curl -X POST https://smriti-kaal.vercel.app/query \
-H "X-API-Key: chrn_your_key" \
-H "Content-Type: application/json" \
-d '{"query": "Who joined the team recently?"}'Response:
{
"results": [
{
"subject": "Alice",
"verb": "joined",
"object": "the team as Lead Engineer",
"timestamp": "2026-07-15T00:00:00Z",
"confidence_score": 0.94
}
]
}๐ MCP Server โ Claude, Cursor, VS Code
Smriti ships with a built-in Model Context Protocol (MCP) server. It runs as a lightweight local process โ no backend to host, no infrastructure to manage.
Install
pip install smriti-kaal-mcp
# or zero-install via uvx (no pip needed):
uvx smriti-kaal-mcpConfigure Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"smriti": {
"command": "uvx",
"args": ["smriti-kaal-mcp"],
"env": {
"SMRITI_API_KEY": "chrn_your_key_here",
"SMRITI_SOURCE_ID": "claude-desktop"
}
}
}
}Configure Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"smriti": {
"command": "uvx",
"args": ["smriti-kaal-mcp"],
"env": {
"SMRITI_API_KEY": "chrn_your_key_here",
"SMRITI_SOURCE_ID": "cursor-project"
}
}
}
}Available MCP Tools
Tool | What It Does |
| Store text โ auto-extracts causal SVO events |
| Hybrid search (semantic + temporal) across all memories |
| Generate a chronological timeline of events |
| Supersede outdated memories cleanly |
| View service health and DB status |
๐ Bring Your Own Database (BYODB)
Keep your memory data in your own infrastructure using Supabase (PostgreSQL + pgvector). Just pass your Session Pooler URL as a header โ no code changes required:
curl -X POST https://smriti-kaal.vercel.app/ingest \
-H "X-API-Key: chrn_your_key" \
-H "X-Supabase-Url: postgresql://postgres.xxxx:YOUR_PASSWORD@aws-0-REGION.pooler.supabase.com:5432/postgres" \
-H "Content-Type: application/json" \
-d '{"source_id": "my-app", "events": [{"text": "Alice joined the team"}]}'๐ Full 3-step BYODB setup guide โ
๐๏ธ Architecture
When you send text to Smriti, it passes through four discrete layers:
Ingest Gate โ Accepts raw text from chat logs, emails, or code
Decomposition โ LLM extracts structured
Subject โ Verb โ ObjecttuplesTemporal Binding โ Assigns exact temporal boundaries to track state changes over time
Dual-Store Indexing โ Saves to PostgreSQL (exact chronological queries) + pgvector (semantic search)
๐ REST API Reference
Base URL: https://smriti-kaal.vercel.app
Auth: X-API-Key: chrn_your_key
Endpoint | Method | Purpose |
| POST | Generate a new API key |
| POST | Convert raw text into structured memories |
| POST | Natural language memory retrieval |
| POST | Chat with the memory-aware LangGraph agent |
| GET | System uptime and DB status |
๐ป Integration Examples
Node.js
const headers = { "X-API-Key": "chrn_...", "Content-Type": "application/json" };
await fetch("https://smriti-kaal.vercel.app/ingest", {
method: "POST", headers,
body: JSON.stringify({ source_id: "app", events: [{ text: "Upgraded to Pro" }] })
});
const res = await fetch("https://smriti-kaal.vercel.app/query", {
method: "POST", headers,
body: JSON.stringify({ query: "Who upgraded?" })
});
console.log(await res.json());Python
import httpx
API = "https://smriti-kaal.vercel.app"
HEADERS = {"X-API-Key": "chrn_..."}
httpx.post(f"{API}/ingest", headers=HEADERS, json={
"source_id": "my-app",
"events": [{"text": "User completed onboarding on July 15"}]
})
result = httpx.post(f"{API}/query", headers=HEADERS, json={"query": "What did the user do?"})
print(result.json()["results"])โ๏ธ Environment Variables (MCP)
Variable | Required | Description |
| โ | Your API key ( |
| No | Namespace for your memories (e.g. |
| No | Session Pooler URL to route memory to your own Supabase DB |
| No | Memory scope ( |
| No | Override the API base URL (advanced) |
๐ Pricing
Tier | Price | Limits |
Explorer | Free | 10,000 events/mo ยท 3 connected tools |
Builder | $49/mo | 500,000 events/mo ยท 25 tools |
Scale | $249/mo | 5,000,000 events/mo ยท unlimited tools |
Manage keys and view memory timelines at smriti-kaal.vercel.app
๐ Security
All API requests require a bearer token (
X-API-Key)API keys are scoped per
source_idโ one application cannot read another's memoriesBYODB mode: your data never touches Smriti's cloud storage
MCP server runs locally on your machine; only outbound HTTPS calls are made
๐ License
MIT ยฉ 2026 Smriti / Chronos Labs
This server cannot be deployed
Maintenance
Related MCP Connectors
Truth-validated, SHA-512-sealed AI memory for Claude & Cursor. Free tier, OAuth, 38 tools.
Private memory for AI agents: save and recall facts across Claude Code, Codex, Cursor and ChatGPT.
Long-term memory for Claude, ChatGPT, Cursor: search, save and organize notes, links, docs, videos.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceLong-term memory for Claude Code, Cursor, and MCP clients with zero-config embedded PostgreSQL. Stores and retrieves facts, preferences, and decisions using 4-channel semantic, BM25, entity, and temporal search with cross-encoder reranking.1Apache 2.0- AlicenseNot gradedqualityCmaintenanceProvides Claude with shared, durable memory across clients, backed by Supabase Postgres and pgvector. It lets agents save decisions, preferences, and project context, then recall them later with project-scoped visibility and semantic or text search.13 npm1MIT
- AlicenseAqualityCmaintenanceEnables Claude, Cursor, Windsurf, and autonomous agents to save web pages and notes as persistent memories, then search them using full-text keyword matching and semantic vector recall.428 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables Claude Code to store and recall persistent cross-session memory backed by self-hosted Qdrant, Neo4j, and Ollama, using Anthropic or fully local Ollama as the LLM. Exposes tools for adding, searching, listing, updating, and deleting memories plus querying knowledge-graph entities and relationships, with optional session hooks for automatic context injection and saving.-