Connect your client¶
localmem-mcp speaks MCP over stdio, so it works with any MCP-compatible client. Below are configs for the common ones.
All of them use the same shape: run uvx localmem-mcp. If you installed with
pip instead, replace "command": "uvx", "args": ["localmem-mcp"] with
"command": "localmem-mcp" and drop the args.
Claude Code¶
One command:
Scope it to a single project by running that inside the project directory, or
add --scope user to make it available everywhere.
Check it registered:
Claude Desktop¶
Edit claude_desktop_config.json:
- macOS —
~/Library/Application Support/Claude/claude_desktop_config.json - Windows —
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop fully. The tools appear under the icon in the composer.
Cursor¶
Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):
Zed¶
In settings.json:
Windsurf¶
In ~/.codeium/windsurf/mcp_config.json:
Any other MCP client¶
The server runs over stdio with no arguments:
Point your client's stdio transport at that command. If the client lets you pass environment variables, configuration is done that way.
Per-project memory¶
By default every client shares one database at ~/.localmem/memories.db. To
give a project its own isolated memory, pass --db:
{
"mcpServers": {
"localmem": {
"command": "uvx",
"args": ["localmem-mcp", "--db", "/Users/you/code/acme/.localmem.db"]
}
}
}
Or use the environment variable, if your client supports setting one:
{
"mcpServers": {
"localmem": {
"command": "uvx",
"args": ["localmem-mcp"],
"env": {
"LOCALMEM_DB_PATH": "/Users/you/code/acme/.localmem.db"
}
}
}
}
Add the database to .gitignore
If you keep the file inside the repo, don't commit it — memories are yours, not your team's, unless you decide otherwise.
Troubleshooting¶
The client shows no tools
Restart the client completely — MCP servers are only discovered at startup, so a new conversation isn't enough.
Then check the command runs on its own:
If that fails, the problem is installation, not the client. See Installation.
uvx: command not found
Install uv, or
use pip install localmem-mcp and set "command": "localmem-mcp" instead.
Some clients don't inherit your shell's PATH. If uvx works in a terminal
but not in the client, use its absolute path — which uvx will tell you.
The first tool call times out
That's the one-time model download (~90 MB). Pre-warm it from a terminal so the agent never waits:
The agent never stores anything
Most agents won't store memories unless told to. Add a line to your project instructions:
"Use
store_memoryto save durable decisions and project context. Search your memory before asking me something I may have already told you."