Give any MCP client memory with the Smritea MCP server

Give any MCP client memory with the Smritea MCP server

by Tushar Dwivedi
Ask AI about this page

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.

  1. Run the login command in a terminal.

    npx -y smritea-mcp login
  2. 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.

ToolWhat it does
add_memoryStores a memory. Requires content
search_memoriesSearches memories. Requires query
get_memoryReturns one memory by ID
delete_memoryDeletes one memory. You cannot undo it
select_appChooses the app for the other tools
list_appsLists 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

Comments