Set up persistent memory for your AI tools in about 5 minutes.
Create a free account and grab your API key from the dashboard. Your key looks like this:
Keep this key handy — you'll paste it into your config in the next step.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"smara": {
"command": "npx",
"args": ["@smara/mcp-server"],
"env": {
"SMARA_API_KEY": "smr_YOUR_KEY_HERE"
}
}
}
}
Add this to .cursor/mcp.json in your project root:
{
"mcpServers": {
"smara": {
"command": "npx",
"args": ["@smara/mcp-server"],
"env": {
"SMARA_API_KEY": "smr_YOUR_KEY_HERE"
}
}
}
}
Add this to your Windsurf MCP config:
{
"mcpServers": {
"smara": {
"command": "npx",
"args": ["@smara/mcp-server"],
"env": {
"SMARA_API_KEY": "smr_YOUR_KEY_HERE"
}
}
}
}
Run the auto-installer which detects your tools and configures everything:
npx @smara/mcp-server --init
This detects installed AI tools and writes the config automatically. You'll be prompted for your API key.
Once installed, your AI tool stores memories automatically. Here's what it looks like:
Or store manually via the API:
curl -X POST https://api.smara.io/v1/memories \
-H "Authorization: Bearer smr_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "We chose PostgreSQL with JSONB for preferences",
"source": "architecture-decision",
"importance": 8
}'
Your AI automatically searches Smara when you ask about past context:
JSONB column for user preferences and a GIN index on the tags column.
Or search directly via the API:
curl https://api.smara.io/v1/memories/search \
-H "Authorization: Bearer smr_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "database schema decisions"}'
Teams let you share project decisions with collaborators while keeping personal preferences private. Your AI automatically classifies memories as team-shared or personal.
The playground lets you test every API endpoint directly in your browser. Store memories, search, and experiment with decay scoring — all without writing code.