universal-memory-mcp
v0.7.0-beta.1
Published
Super personal assistant for any AI CLI - Universal, cross-project, 100% local | 超级个人助理 - 通用、跨项目、100%本地
Maintainers
Readme
Universal Memory MCP Server
MCP Server for persistent AI memory across sessions. Works with any MCP-compatible AI CLI.
Features
- Automatic Setup: Installs MCP server and memory-assistant skill automatically
- Persistent Memory: Remember conversations across sessions
- Smart Recall: AI automatically searches past discussions when relevant
- Long-term Storage: Store preferences, decisions, and important facts
Quick Start
npm install -g universal-memory-mcpThat's it! The installer will:
- Configure MCP server in
~/.claude/settings.json - Install memory-assistant skill to
~/.claude/skills/ - Prompt you to restart Claude Code
After restart, Claude will automatically:
- Search past conversations when you reference them
- Record important conversations for future recall
- Remember your preferences and decisions
Manual Configuration
If automatic setup doesn't work, configure manually:
Claude Code CLI
Edit ~/.claude/settings.json:
{
"mcpServers": {
"universal-memory": {
"command": "npx",
"args": ["-y", "universal-memory-mcp"]
}
}
}Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"universal-memory": {
"command": "npx",
"args": ["-y", "universal-memory-mcp"]
}
}
}How It Works
Memory Assistant Skill
The installed skill guides Claude to use memory tools automatically:
| Trigger | Action | |---------|--------| | User mentions "之前", "上次", "remember", "we talked about" | Search past memories | | End of meaningful conversation | Record the exchange | | User expresses preference or makes decision | Store in long-term memory |
MCP Tools
memory_search
Search through conversation history and long-term memories.
{
"query": "database decision",
"time_range": ["2026-01-01", "2026-01-31"],
"project": "my-project",
"limit": 10
}memory_record
Record conversation for future reference.
{
"user_message": "Help me design a REST API",
"ai_response": "Recommended RESTful patterns with resource-based URLs...",
"project": "my-project"
}memory_update_long_term
Store important information for easy retrieval.
{
"category": "preferences",
"content": "User prefers TypeScript over JavaScript"
}Categories:
preferences- User's working style and preferencesdecisions- Important technical decisionsfacts- Key information about user/projectscontacts- People and teams
Storage
All data stored locally in ~/.ai_memory/:
~/.ai_memory/
├── daily/ # Daily conversation logs (YYYY-MM-DD.md)
├── long_term/ # Important memories (MEMORY.md, preferences.md, etc.)
├── projects/ # Project-specific state
└── config.json # ConfigurationTroubleshooting
MCP tools not available
- Ensure you've restarted Claude Code after installation
- Check
~/.claude/settings.jsoncontains the MCP configuration - Try running
npx universal-memory-mcpdirectly to test
Skill not triggering
- Check
~/.claude/skills/memory-assistant/SKILL.mdexists - Restart Claude Code to reload skills
- Try explicitly asking Claude to "search my memories for X"
Development
git clone https://github.com/slicenferqin/universal-memory-mcp.git
cd universal-memory-mcp
pnpm install
pnpm buildLicense
MIT
