myAI Memory Sync
Contribute to Jktfe/myAImemory development by creating an account on GitHub.
Jktfe
README
myAI Memory Sync
An MCP server that synchronizes a customizable memory template across Claude interfaces (Claude Desktop, Claude Code, Windsurf).
Features
- Manage a standardized "myAI Memory" template with consistent formatting
- Support editing individual sections without affecting others
- Maintain the -~- prefix for preference items
- Synchronize template across multiple Claude interfaces automatically
- Support for preset profiles
- MCP-compliant server with both stdio and HTTP/SSE transport
- CLI for easy management of templates and presets
Installation
# Clone the repository
git clone https://github.com/yourusername/myai-memory-sync.git
cd myai-memory-sync
# Install dependencies
npm install
# Build the project
npm run build
Usage
MCP Server
Start the direct MCP server with stdio transport (for use with Claude Desktop):
./direct-mcp-server.sh
Or start with HTTP transport for remote connections:
./direct-http-server.sh
Template Format
The template follows a specific markdown format:
# myAI Memory
# User Information
## Use this information if you need to reference them directly
-~- Name: Default User
-~- Location: Default Location
# General Response Style
## Use this in every response
-~- Style: Concise and friendly
Each section starts with a # Section Title and can have an optional description with ## Description. Preferences are formatted as -~- Key: Value.
MCP Tools
The server exposes the following MCP tools:
| Tool Name | Description |
|---|---|
get_template |
Get the full template |
get_section |
Get a specific section of the template |
update_section |
Update a section in the template |
update_template |
Update the entire template |
list_presets |
List available template presets |
load_preset |
Load a template preset |
create_preset |
Create a new preset from current template |
sync_platforms |
Sync template to platform(s) |
list_platforms |
List configured platforms |
Claude Desktop Integration
To add this MCP server to Claude Desktop:
- Open Claude Desktop
- Go to Settings > Developer
- Under "MCP Servers", add a new server:
"myai-memory-sync": { "command": "/path/to/myai-memory-sync/direct-mcp-server.sh", "transport": "stdio" }
Replace /path/to/myai-memory-sync with the actual path to the repository.
Smithery Deployment
To deploy this MCP server to smithery:
-
Ensure all changes are committed to the repository
-
Build the project with
npm run build -
Push to the smithery repository:
git push origin main -
After deployment, update your MCP configuration to point to the correct file path:
"myai-memory-sync": { "command": "node", "args": [ "/path/to/myai-memory-sync/dist/direct-index.js" ], "transport": "stdio" }
Project Structure
myai-memory-sync/
├── data/ # Data storage
│ ├── presets/ # Preset templates
│ └── template.md # Main template file
├── src/ # Source code
│ ├── services/ # Service implementations
│ ├── direct-index.ts # Direct MCP server entry point (stdio)
│ ├── direct-mcp.ts # Direct MCP server implementation
│ ├── direct-server.ts # Direct HTTP server implementation
│ ├── templateParser.ts # Template parser
│ └── types.ts # Type definitions
├── package.json
└── tsconfig.json
Development
# Run in development mode with auto-reload
npm run dev
# Build the project
npm run build
# Type check
npm run typecheck
# Lint the code
npm run lint
License
MIT
Recommended Servers
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.
React MCP
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
Mult Fetch MCP Server
A versatile MCP-compliant web content fetching tool that supports multiple modes (browser/node), formats (HTML/JSON/Markdown/Text), and intelligent proxy detection, with bilingual interface (English/Chinese).
AIO-MCP Server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from
Persistent Knowledge Graph
An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.
OpenRouter MCP Server
Provides integration with OpenRouter.ai, allowing access to various AI models through a unified interface.
Fetch MCP Server
Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
Search1API MCP Server
A Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.
Supabase MCP Server (used by Deploya.dev)
Enables Cursor and Windsurf to safely interact with Supabase databases by providing tools for database management, SQL query execution, and Supabase Management API access with built-in safety controls.