Labsco
Jktfe logo

myAI Memory Sync

β˜… 7

from Jktfe

Synchronizes memory templates across different Claude interfaces.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

myAI Memory Sync

smithery badge

Tired of repeating yourself to Claude every time you start a new chat? myAI Memory Sync is a game-changing MCP tool that seamlessly synchronizes your preferences, personal details, and code standards across ALL your Claude interfaces! Just update once, and your changes instantly appear everywhere - from Claude Desktop to Claude Code, Windsurf, and Claude.ai web. With our cutting-edge caching system, memory-related queries are up to 2000x faster! Stop wasting tokens on repetitive instructions and enjoy a truly personalized AI experience.

How myAImemory-mcp Compares to Other Memory Tools

While several excellent memory tools exist for AI systems, myAImemory-mcp serves a specific purpose as a Model Context Protocol (MCP) tool:

ToolPrimary FocusPrivacy ModelIntegrationUnique Strength
myAImemory-mcpUser preferences across Claude interfacesLocal-first, no data sent to external serversClaude-specific MCPCross-platform synchronization with high-performance caching
GraphitiTemporal knowledge graphsDatabase-dependentGeneral agent frameworkTemporal awareness in knowledge representation
Letta/MemGPTStateful agent frameworkServer-basedMulti-model supportComplete agent architecture
Mem0Personalized AI interactionsAPI-basedMulti-platformMulti-level memory hierarchy
MemaryHuman-like memory for agentsGraph databaseAgent-focusedHuman memory emulation
CogneeReliable memory for AI appsMultiple storage optionsData pipeline focusedExtensive data source integration

Key Advantages of myAImemory-mcp:

  • Privacy-First: All data remains on your device, no personal information sent to external servers
  • Performance: Leverages Claude's caching capabilities for dramatic speed improvements
  • Simplicity: Natural language updates to your preferences across all Claude interfaces
  • MCP Integration: Purpose-built as a Claude MCP for seamless integration

πŸ§™β€β™‚οΈ System Prompt Integration

For best results, add this to your Claude system prompt:

Memory Integration Instructions:
When you receive a command that starts with "use myAI Memory to", you should:

1. Process the rest of the instruction as a memory management command
2. Try to determine the appropriate section to update based on the content
3. Use the myAI Memory Sync MCP to update your memory
4. Confirm the update with a brief acknowledgment

For example:
"use myAI Memory to remember I prefer dark mode" 
β†’ Update the preferences section with dark mode preference

When asked questions about preferences or personal information, first check your memory via the myAI Memory Sync MCP. Always reference information from memory rather than making assumptions.

✨ Features

  • πŸ”„ Cross-Platform Synchronization: Update once, syncs everywhere
  • ⚑ Lightning-Fast Recall: Caching system with up to 2000x performance boost
  • πŸ—£οΈ Natural Language Interface: Just talk naturally to update your preferences
  • 🧩 Multiple Persona Profiles: Switch between different presets with ease
  • πŸ” Security-Focused: Local storage with .gitignore protection
  • πŸ› οΈ Developer-Friendly: Full TypeScript implementation with comprehensive API

🧩 Core Architecture

myAI Memory Sync uses a modular architecture with these key components:

  • Template Parser: Bidirectional conversion between structured memory objects and markdown
  • Template Storage: Persistent storage with in-memory and file-system caching
  • Platform Synchronizers: Implements the PlatformSyncer interface for each target platform
  • Natural Language Processor: Extracts structured data from natural language memory commands
  • Memory Cache Service: Optimizes performance with multi-level caching strategies

πŸ” Detailed Features

Cross-Platform Synchronization

  • ClaudeCodeSyncer: Updates CLAUDE.md files across all repositories
  • WindsurfSyncer: Manages global_rules.md in Windsurf environment
  • ClaudeWebSyncer: Optional Puppeteer-based synchronization with Claude.ai web interface

Intelligent Memory Management

  • Pattern-Based Extraction: Converts natural language to structured key-value pairs
  • Section Detection Algorithm: Automatically determines appropriate section for new memories
  • Memory Template Format: Markdown-based structure with sections, descriptions, and key-value items
  • Context Preservation: Updates memory sections while preserving other template content

Performance Optimization

  • Multi-Level Caching: In-memory caching at both template and section levels
  • TTL-Based Cache Management: Configurable Time-To-Live for cached content
  • Pre-Warming: Cache pre-population after template updates
  • Optional Anthropic API Integration: Accelerates memory-related queries up to 2000x

Security

  • Local-First Architecture: All data remains on your device
  • Gitignore Management: Automatically adds CLAUDE.md to .gitignore in all repositories
  • File Permission Handling: Fixes permissions issues for maximum compatibility
  • Encrypted Storage: Compatible with encrypted file systems

πŸ“‹ Memory Template Format

The system uses a structured markdown format to organize your preferences:

# myAI Memory

# User Information

## Use this information if you need to reference them directly

-~- Name: Your Name
-~- Location: Your Location
-~- Likes: Reading, Hiking, Technology

# General Response Style

## Use this in every response

-~- Style: Friendly and concise
-~- Use UK English Spellings: true
-~- Include emojis when appropriate: true

# Coding Preferences

## General Preference when responding to coding questions

-~- I prefer TypeScript over JavaScript
-~- Show step-by-step explanations

πŸ› οΈ Technical Implementation

MemoryTemplate Schema

interface MemoryTemplate {
  sections: TemplateSection[];
}

interface TemplateSection {
  title: string;
  description: string;
  items: TemplateItem[];
}

interface TemplateItem {
  key: string;
  value: string;
}

Platform Synchronization Interface

interface PlatformSyncer {
  sync(templateContent: string): Promise<SyncStatus>;
}

type PlatformType = 'claude-web' | 'claude-code' | 'windsurf' | 'master';

interface SyncStatus {
  platform: PlatformType;
  success: boolean;
  message: string;
}

πŸ”Œ MCP Integration API

The myAI Memory Sync tool implements the Model Context Protocol (MCP) with the following functions:

FunctionDescriptionParameters
get_templateRetrieves the full memory templateNone
get_sectionRetrieves a specific sectionsectionName: string
update_sectionUpdates a specific sectionsectionName: string, content: string
update_templateReplaces the entire templatecontent: string
list_presetsLists available presetsNone
load_presetLoads a specific presetpresetName: string
create_presetCreates a new presetpresetName: string
sync_platformsSynchronizes across platformsplatform?: string
list_platformsLists available platformsNone

Natural Language Interface

Users can interact with the system through natural language commands:

You: Use myAI Memory to remember I prefer TypeScript over JavaScript
Claude: βœ… Added to your Coding Preferences! I'll remember you prefer TypeScript over JavaScript.

You: Use myAI Memory to load preset developer
Claude: βœ… Loaded developer preset! I'll now use your developer preferences.

⚑ Performance Benchmarks

Our caching system delivers incredible performance improvements:

OperationWithout CacheWith CacheImprovement
Memory Query~2000ms~1ms2000x
Section Lookup~1600ms~0.8ms2000x
Template Parse~120ms~0.1ms1200x
Platform Sync~850ms~350ms2.4x

πŸ”’ Security & Privacy

We take your privacy seriously:

  • All data remains locally on your device
  • CLAUDE.md files are automatically added to .gitignore
  • No data is sent to external servers (except when using the optional Anthropic API integration)
  • Works with encrypted file systems for maximum security

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

We follow a standard Git workflow and CI process:

  • All PRs require passing tests and linting
  • New features should include tests
  • Major changes should update documentation
  • Follow existing code style and patterns

πŸ“š Documentation

For more detailed documentation, see the Wiki.

API documentation is available in the /docs directory:

# Generate API documentation
npm run docs

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ“¬ Contact

Project Link: https://github.com/Jktfe/myaimemory-mcp


<p align="center"> Made with ❀️ for the AI community </p>