memory-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@memory-mcp-server remember that I prefer dark mode"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Memory MCP Server
Universal personal memory system for AI assistants — a Model Context Protocol (MCP) server that gives any AI tool persistent, searchable memory across sessions.
Works with Claude Desktop, Cursor, Windsurf, Cline, Roo Code, OpenCode, Continue and any MCP-compatible client.
100% local. No API keys. No cloud. Your memories stay on your machine.
Features
Hybrid Search — semantic vector search + full-text keyword search, combined for best results
100% Local — uses FastEmbed for embeddings, runs entirely on your machine
Zero Config —
uvx memory-mcp-serverjust worksUniversal — one server, all your AI tools share the same memory
Structured — five memory types:
preference,project,workflow,knowledge,summaryAuto-setup — one command to configure all your AI tools
Fast — SQLite + LanceDB, sub-second queries even with thousands of memories
Related MCP server: aivectormemory
Quick Start
Prerequisites
Python 3.11+
uv (recommended) or pip
Install
# Using uv (recommended)
uv tool install memory-mcp-server
# Or with pip
pip install memory-mcp-serverAuto-Configure All Your AI Tools
memory-mcp-setup setupThis detects your installed AI tools and adds memory-mcp to each one automatically.
Or Configure Manually
See Manual Configuration below.
Supported AI Tools
Tool | Auto-Setup | Manual Config |
Claude Desktop | ✅ | ✅ |
Cursor | ✅ | ✅ |
Windsurf | ✅ | ✅ |
Cline (VS Code) | ✅ | ✅ |
Roo Code (VS Code) | ✅ | ✅ |
OpenCode | ✅ | ✅ |
Continue | — | ✅ |
Any MCP Client | — | ✅ |
Manual Configuration
Claude Desktop
Add to claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"memory": {
"command": "uvx",
"args": ["memory-mcp-server"]
}
}
}Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"memory": {
"command": "uvx",
"args": ["memory-mcp-server"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"memory": {
"command": "uvx",
"args": ["memory-mcp-server"]
}
}
}Cline (VS Code)
Cline auto-detects MCP servers, or add manually in Cline MCP settings:
{
"mcpServers": {
"memory": {
"command": "uvx",
"args": ["memory-mcp-server"],
"disabled": false,
"autoApprove": []
}
}
}Roo Code (VS Code)
Same format as Cline, in Roo MCP settings:
{
"mcpServers": {
"memory": {
"command": "uvx",
"args": ["memory-mcp-server"],
"disabled": false,
"autoApprove": []
}
}
}OpenCode
Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"memory": {
"type": "local",
"command": ["uvx", "memory-mcp-server"],
"enabled": true
}
}
}Any MCP Client (stdio transport)
uvx memory-mcp-serverThe server communicates over stdio using the MCP protocol.
MCP Tools
The server exposes 6 tools:
Tool | Description |
| Store a new memory with kind, tags, priority |
| Hybrid semantic + keyword search |
| List memories with optional filters |
| Update content, tags, or priority |
| Delete a memory by ID |
| Get total count and breakdown |
Memory Kinds
Kind | Use For |
| Personal preferences: coding style, tools, conventions |
| Project-specific: architecture, tech stack, decisions |
| Processes: PR flow, deployment steps, review checklists |
| Technical insights: gotchas, solutions, tips |
| Session summaries: key decisions, outcomes |
Teaching Your AI to Use Memory
Copy the contents of SKILL.md into your AI tool's system prompt, custom instructions, or rules file. This teaches the AI when and how to use the memory tools.
Where to Put It
Tool | Location |
Claude Desktop | Project Instructions or |
Cursor |
|
Windsurf |
|
Cline |
|
Roo Code |
|
OpenCode |
|
Continue |
|
CLI Commands
# Auto-configure all detected AI tools
memory-mcp-setup setup
# Auto-configure a specific tool
memory-mcp-setup setup --tool cursor
# Preview config without writing (dry run)
memory-mcp-setup setup --dry-run
# Show config snippet for manual setup
memory-mcp-setup show-config --tool claude-desktop
# Health check
memory-mcp-setup doctorEnvironment Variables
Variable | Default | Description |
| Platform-specific (see below) | Directory for memory database files |
| System default | Cache directory for embedding model |
Default Data Directory
Platform | Path |
macOS |
|
Linux |
|
Windows |
|
Architecture
┌─────────────────────────────────────────────┐
│ AI Tool (Client) │
│ Claude / Cursor / Windsurf / Cline / ... │
└────────────────┬────────────────────────────┘
│ MCP (stdio)
┌────────────────▼────────────────────────────┐
│ memory-mcp-server │
│ │
│ ┌─────────────┐ ┌──────────────────────┐ │
│ │ FastMCP │ │ EmbeddingManager │ │
│ │ (6 tools) │ │ (FastEmbed/BGE) │ │
│ └──────┬──────┘ └──────────┬───────────┘ │
│ │ │ │
│ ┌──────▼────────────────────▼───────────┐ │
│ │ MemoryStore │ │
│ │ │ │
│ │ ┌──────────┐ ┌─────────────────┐ │ │
│ │ │ SQLite │ │ LanceDB │ │ │
│ │ │ metadata │ │ vector index │ │ │
│ │ │ + FTS │ │ (384-dim BGE) │ │ │
│ │ └──────────┘ └─────────────────┘ │ │
│ └────────────────────────────────────────┘ │
└──────────────────────────────────────────────┘SQLite: stores memory metadata, supports full-text search via FTS5
LanceDB: stores embedding vectors, supports fast approximate nearest neighbor search
FastEmbed: runs BAAI/bge-small-en-v1.5 locally for 384-dimensional embeddings
Development
# Clone
git clone https://github.com/cmdparkour/memory-mcp-server.git
cd memory-mcp-server
# Install with dev dependencies
uv sync
# Run directly
uv run memory-mcp
# Run setup CLI
uv run memory-mcp-setup doctorFAQ
Does it need an API key?
No. Everything runs locally — embedding model included.
Does it support Chinese / non-English languages?
Yes. The BGE embedding model supports multilingual text. SQLite FTS5 also handles CJK characters.
Can multiple AI tools share the same memory?
Yes — that's the whole point. All tools point to the same local database.
Where is my data stored?
See Default Data Directory. You can override with MEMORY_DATA_DIR.
How do I back up my memories?
Copy the data directory. It contains a SQLite database and a LanceDB folder.
How do I reset all memories?
Delete the data directory.
License
MIT — see LICENSE.
Available Tools
6 toolsmemory_deleteC
Delete a memory by ID.
Inputs: memory_id (required). Returns: result
memory_listB
List memories with optional filters. Ordered by creation date descending.
Inputs: kind, project, limit, offset. Returns: result
memory_searchA
Search memories by semantic similarity and keywords. Returns ranked results.
Inputs: query (required), kind, project, limit. Returns: result
memory_statsA
Get memory system statistics: total count, breakdown by kind and project.
Inputs: no named parameters. Returns: result
memory_storeC
Store a memory. kind must be one of: preference, project, workflow, knowledge, summary.
Inputs: content (required), kind (required), tags, source, +2 more. Returns: result
memory_updateB
Update an existing memory's content, tags, or priority.
Inputs: memory_id (required), content, tags, priority. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: delete by ID, list with filters, search by similarity/keywords, get stats, store new, update existing. No overlap.
All tools follow a consistent 'memory_verb' pattern in snake_case, making the operation immediately clear.
6 tools is well-scoped for a memory system, covering core operations without unnecessary bloat.
Covers CRUD (store, list, search, update, delete) plus stats. Minor gap: no explicit get-by-id, but list/search likely return full memory objects.
Maintenance
Related MCP Connectors
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Hosted cloud connector or local Windows install.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to store and semantically recall durable memories across sessions and tools, with local-first privacy and no API key needed.9 npmMIT
- AlicenseBqualityDmaintenanceGives AI coding assistants cross-session persistent memory with semantic search and task management, fully local.8Apache 2.0
- AlicenseCqualityBmaintenanceGives AI coding assistants persistent project memory and semantic code search, running fully locally with no API keys required.56MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to maintain persistent, local memory with retrieval-augmented search, knowledge graphs, and context surfacing, without any cloud dependencies.416 npmMIT