
Give any MCP client memory with the Smritea MCP server
The Smritea MCP server lets an AI client store and search memories through tools. MCP is the Model Context Protocol, a standard way for AI clients to call external tools. The server is the smritea-mcp npm package, and it needs Node 18 or later.
Step 1: log in
You do not install the server globally. Your client runs it with npx.
-
Run the login command in a terminal.
npx -y smritea-mcp login -
Finish the sign-in in the browser window that opens. The command waits up to five minutes.
The login saves your tokens in ~/.smritea/auth.json. Treat that file as a secret. If a token refresh fails with a 401, run login again.
Step 2: connect your client
For Claude Code, add the server to the mcpServers section of ~/.claude.json.
{
"mcpServers": {
"smritea": {
"command": "npx",
"args": ["-y", "smritea-mcp", "serve"]
}
}
}Cursor connects over HTTP and server-sent events. Start npx -y smritea-mcp serve-sse in a terminal and leave it running. Then point ~/.cursor/mcp.json at http://localhost:3000/sse. The serve-sse server has no authentication and listens on every network interface. Run it only on a machine you trust, and block its port from other machines.
Step 3: pick an app
The tools work on one app at a time. Ask your client to run the list_apps tool, then the select_app tool with the app ID you want. If the app has no stored key, select_app creates one named smritea-plugin- followed by today's date. That key counts against your plan's API key limit.
The tools
The server offers six tools. The table says what each tool does.
| Tool | What it does |
|---|---|
add_memory | Stores a memory. Requires content |
search_memories | Searches memories. Requires query |
get_memory | Returns one memory by ID |
delete_memory | Deletes one memory. You cannot undo it |
select_app | Chooses the app for the other tools |
list_apps | Lists your apps |
The server also offers a prompt named recall that takes a topic. search_memories does not offer method or reranker_type.
Regions
The server calls the United States region by default. If your app is in India, set memory_base_url in settings.json to https://api-in.smritea.ai.
Learn more
The docs page MCP server lists every command and settings file. To get the commands and a session hook for Claude Code, read the post Claude Code and Cursor plugin.
Related posts
The Smritea plugin: persistent memory for Claude Code and Cursor
Install the Smritea plugin to give Claude Code and Cursor memory that lasts across sessions. It adds slash commands, a session hook and MCP tools.

Introducing Smritea: Memory API for AI apps and agents
Smritea is a Memory API for AI apps and agents. It stores facts from conversations and finds them again by meaning, in five languages.




