Skip to content
MCP server

Longmem

Persistent cross-project memory for Cursor and Claude Code using local semantic search.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.2.1
Listing updated
5 days ago

About Longmem

Longmem is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add longmem -- uvx longmem

Add to claude_desktop_config.json

{
  "mcpServers": {
    "longmem": {
      "command": "uvx",
      "args": [
        "longmem"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "longmem": {
      "command": "uvx",
      "args": [
        "longmem"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "longmem": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "longmem"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "longmem": {
      "command": "uvx",
      "args": [
        "longmem"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "longmem": {
      "command": "uvx",
      "args": [
        "longmem"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Pricing

Open source

Longmem FAQ

Is Longmem free?

Yes. Longmem is open source, so you can use and self-host it for free.

How do I add Longmem to Claude Code?

Run this command in your terminal: claude mcp add longmem -- uvx longmem

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers