About smara
smara is an MCP server that connects AI apps to the Smara Memory API for persistent user memory. Its temporal scoring ranks memories by recency, importance, and access patterns, and it detects and resolves contradictions.
Key features
- 01Store user facts with importance scoring
- 02Search memories with temporal ranking
- 03Generate formatted user context
- 04Delete individual memories
- 05Check usage and memory counts
Use cases
- 01Retain user facts across AI sessions
- 02Retrieve relevant memories for an LLM prompt
- 03Review memory usage and remove outdated entries
MCP support
The MCP server exposes Smara Memory API tools for storing, searching, retrieving context, deleting memories, and checking usage. It requires an SMARA_API_KEY and can connect through the configured API URL.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @smara/mcp-serverSMARA_API_KEYSecretYour Smara API key from smara.ioLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
5Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| fact | string | Yes | The fact or preference to remember |
| user_id | string | Yes | Unique identifier for the user |
| namespace | string | No | Memory namespace for isolation (default: from env or 'default') |
| importance | number | No | Importance score (0-1). Higher = slower decay. |
Details
From the project README@smara/mcp-server
MCP server for the Smara Memory API — give any AI app persistent memory with Temporal Memory Scoring™.
Quick Start
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"smara": {
"command": "npx",
"args": ["-y", "@smara/mcp-server"],
"env": {
"SMARA_API_KEY": "your-api-key-here"
}
}
}
}
Get a free API key at smara.io (10,000 memories, no credit card).
Tools
| Tool | Description |
|---|---|
store_memory | Store a fact about a user with importance scoring |
search_memories | Semantic search with Temporal Memory Scoring™ |
get_user_context | Pre-formatted context string for LLM system prompts |
delete_memory | Delete a specific memory |
get_usage | Check plan limits and memory count |
How It Works
Smara uses Temporal Memory Scoring™ — a proprietary ranking system that makes AI memory work like human recall. Memories naturally fade over time, modulated by importance and access patterns. Recent, critical memories surface first. Stale, trivial ones fade. Contradictions are auto-detected and resolved.
Works With
- Claude Desktop
- Claude Code
- Cursor
- Windsurf
- VS Code (GitHub Copilot)
- Any MCP-compatible client
Environment Variables
| Variable | Required | Default |
|---|---|---|
SMARA_API_KEY | Yes | — |
SMARA_API_URL | No | https://api.smara.io |
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.