Claude Code and Cursor plugin
Install the Smritea plugin to give Claude Code and Cursor persistent memory. It adds commands, a session hook and the MCP tools.
The Smritea plugin gives an AI coding assistant memory that lasts across sessions. For Claude Code, it adds slash commands, a session-start hook, a skill and the MCP tools. For Cursor, it adds the MCP tools, a rule and a skill.
Claude installation
-
Add the Smritea marketplace.
/plugin marketplace add SmrutAI/smritea-plugin -
Install the plugin.
/plugin install smritea@smritea -
Reload plugins.
/reload-plugins -
Log in with
/smritea:login. Then pick an app. You can runnpx -y smritea-mcp configurein a terminal, or ask the assistant to use thelist_appsandselect_apptools. See MCP server.
Commands
The plugin adds four slash commands to Claude Code. The table says what each command does.
| Command | What it does |
|---|---|
/smritea:login | Signs you in through the browser. |
/smritea:config | Runs smritea-mcp configure, the setup wizard. |
/smritea:add-memory <text> | Stores the text as a memory, exactly as you typed it. |
/smritea:recall <topic> | Searches memories about the topic, up to 10 results, and summarizes them. |
What the session hook does
When a Claude Code session starts, the plugin runs a hook. The hook searches your selected app for relevant memories and adds the top 10 to the session as context.
- If you set a project name, the search keeps only memories with the same
project_namemetadata. Theadd_memorytool adds that metadata for you. A memory you added through an SDK or the API has noproject_name, so the hook skips it. - If you have not selected an app, or you are not logged in, the hook prints a message that says what to run.
- If the hook fails, it prints a warning. It never blocks your session.
Cursor installation
The Cursor package holds the MCP configuration, an always-on rule and a skill. The rule makes the assistant search memories at the start of each conversation.
Choose one way to install it:
- On Teams or Enterprise, an admin imports
https://github.com/SmrutAI/smritea-pluginas a team marketplace. Members then installsmritea. - For a local copy, copy the
cursor/folder of the plugin repository to~/.cursor/plugins/local/smritea. Then run Developer: Reload Window. On Teams or Enterprise, an admin must allow local plugin imports.
Cursor does not get the session-start hook or the slash commands. It relies on the rule to search memories. You also need to log in and pick an app. Run npx -y smritea-mcp login and npx -y smritea-mcp configure in a terminal.
Settings
The plugin reads the same files as the MCP server: ~/.smritea/settings.json and ~/.smritea/auth.json. It does not read environment variables. If your app is in India, set memory_base_url in settings.json. See Regions.
Related pages
Last updated on



