MCP server for persistent, semantic memory across AI sessions
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP server for persistent, semantic memory across AI sessions. Store context, decisions, and learnings β recall them later with natural language search.
AI assistants forget everything between sessions. Collective Memory fixes that. Store what matters, search by meaning, build context that compounds.
decision, milestone, context, learning, or session_summaryOr clone and build:
Required for embeddings. Get one at platform.openai.com.
Add to ~/.claude/settings.json under mcpServers:
Or if installed from source:
Add to your global ~/.claude/CLAUDE.md:
Store a memory with semantic embedding.
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | yes | The memory to store β be specific and self-contained |
project | string | no | Project context (e.g., "myapp", "client-x") |
type | string | no | One of: decision, milestone, context, learning, session_summary |
tags | string[] | no | Tags for categorization |
Returns the stored memory ID, or existing ID if deduplicated.
Search memories by semantic similarity.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | Natural language search query |
project | string | no | Filter to specific project |
type | string | no | Filter to specific memory type |
limit | number | no | Max results (default: 10) |
Returns array of matching memories with similarity scores.
Also usable from command line:
| Environment Variable | Default | Description |
|---|---|---|
OPENAI_API_KEY | (required) | OpenAI API key for embeddings |
COLLECTIVE_MEMORY_PATH | ~/.collective-memory/data | Storage location |
text-embedding-3-small (768 dimensions)Memories are stored locally at ~/.collective-memory/data (or COLLECTIVE_MEMORY_PATH). It's a LanceDB database β portable, no server process.
To export memories:
To visualize:
MIT
Built by The Victor Collective.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/collective-memory)<a href="https://allmcps.com/mcp/collective-memory"><img src="https://allmcps.com/api/badge/collective-memory?style=directory" alt="Collective Memory on AllMCPs" /></a>