Synaptic
Decentralized AI Memory Connection Protocol - Making AI Truly Yours. A revolutionary protocol that gives you complete control over your AI memories and interactions across all platforms.
Install / Use
/learn @Synaptic-MCP/SynapticREADME
🧠 Synaptic - Decentralized MCP
</div> <div align="center"> <img src="./assets/logo.png" alt="Synaptic Logo" width="200" height="200"> </div> <div align="center"> </div>🚀 Making AI Truly Yours - A revolutionary decentralized protocol that gives you complete control over your AI memories and interactions across all platforms.
🌟 What is Synaptic?
Synaptic is the world's first Decentralized MCP that solves the fundamental problem of AI memory fragmentation. Instead of your conversations and insights being trapped in isolated AI platforms, Synaptic creates a unified, encrypted, and user-owned memory layer that works across all AI tools.
🎯 Core Problems We Solve
- 🔗 Memory Fragmentation: Your AI conversations are scattered across different platforms
- 👤 Data Ownership: You don't control your AI interaction data
- 🔒 Privacy Concerns: Your sensitive conversations are stored on corporate servers
- 🧠 Context Loss: AI tools can't learn from your previous interactions on other platforms
- 💰 No Incentives: You don't get rewarded for contributing quality data to AI ecosystems
✨ Key Features
🔐 Privacy-First Architecture
- End-to-end encryption with AES-256-GCM
- Local-first storage - your data stays on your devices
- Zero-knowledge architecture - we can't see your data even if we wanted to
- Granular privacy controls with 4-level privacy system
🤖 Universal AI Integration
- Claude (Anthropic) - Full conversation memory extraction
- OpenAI (GPT) - Complete interaction history
- Google Gemini - Native integration support
- Cursor - Development conversation memory
- Windsurf - AI coding assistant integration
- Custom APIs - Extensible adapter framework
🧠 Intelligent Memory Management
- Semantic search with vector embeddings
- Automatic categorization of memories by type and context
- Quality assessment with AI-powered scoring
- Smart context injection for relevant memory retrieval
- Cross-platform memory synthesis
💰 Token Economics & Rewards
- $SYNA Token - Native ecosystem currency on Solana
- Quality-based mining - earn tokens for valuable contributions
- Decentralized governance - token holders control protocol evolution
🏗️ System Architecture
📊 High-Level Architecture Diagram
graph TB
subgraph "User Interface Layer"
A[Desktop App<br/>Electron]
B[Mobile App<br/>React Native]
C[Browser Extension<br/>Chrome/Firefox]
D[Web Dashboard<br/>React]
end
subgraph "API Gateway Layer"
E[REST API Server<br/>Express.js]
F[WebSocket Server<br/>Socket.io]
G[Rate Limiter<br/>Redis]
H[Authentication<br/>JWT]
end
subgraph "Core Protocol Layer"
I[MemoryConnectionProtocol<br/>Central Orchestrator]
J[CrossMindBridge<br/>AI Integration]
K[PrivacyGuard<br/>Encryption & Privacy]
L[MemoryMiner<br/>Token Mining]
end
subgraph "Storage Layer"
M[MemoryVault<br/>Encrypted Storage]
N[Vector Database<br/>Semantic Search]
O[Cache Layer<br/>Redis/Memory]
P[Backup System<br/>IPFS]
end
subgraph "Blockchain Layer"
Q[Solana Network<br/>$SYNA Token]
R[Smart Contracts<br/>Rust/Anchor]
S[Mining Rewards<br/>Quality Assessment]
end
subgraph "External AI Platforms"
T[Claude API<br/>Anthropic]
U[OpenAI API<br/>GPT Models]
V[Gemini API<br/>Google]
W[Custom APIs<br/>Extensible]
end
A --> E
B --> E
C --> E
D --> E
E --> G
E --> H
E --> F
G --> I
H --> I
F --> I
I --> J
I --> K
I --> L
I --> M
M --> N
M --> O
M --> P
L --> Q
L --> R
L --> S
J --> T
J --> U
J --> V
J --> W
🔧 Core Components Architecture
1. 🧠 MemoryConnectionProtocol (Central Orchestrator)
// Location: src/core/MemoryConnectionProtocol.ts (498 lines)
class MemoryConnectionProtocol {
private memoryVault: MemoryVault;
private crossMindBridge: CrossMindBridge;
private privacyGuard: PrivacyGuard;
private memoryMiner: MemoryMiner;
// Core memory operations
async createMemory(content: string, type: MemoryType, category: MemoryCategory): Promise<Memory>
async searchMemories(query: string, options?: SearchOptions): Promise<Memory[]>
async processAIInteraction(platform: AIPlatform, prompt: string, response: AIResponse): Promise<void>
async getMemoryStats(): Promise<MemoryStats>
}
2. 🗄️ MemoryVault (Intelligent Storage)
// Location: src/storage/MemoryVault.ts (428 lines)
class MemoryVault {
private storage: StorageAdapter;
private encryption: EncryptionService;
private vectorSearch: VectorSearchEngine;
// Storage operations with encryption
async storeMemory(memory: Memory): Promise<string>
async retrieveMemory(id: string): Promise<Memory | null>
async searchSemantic(query: string, options: SearchOptions): Promise<SearchResult[]>
async updateMemory(id: string, updates: Partial<Memory>): Promise<Memory>
}
3. 🌉 CrossMindBridge (AI Integration)
// Location: src/ai/CrossMindBridge.ts (290 lines)
class CrossMindBridge {
private adapters: Map<AIPlatform, AIAdapter>;
// AI platform integration
async processInteraction(platform: AIPlatform, interaction: AIInteraction): Promise<ProcessedInteraction>
async extractMemories(conversation: Conversation): Promise<Memory[]>
async injectContext(platform: AIPlatform, memories: Memory[]): Promise<ContextInjection>
}
4. 🛡️ PrivacyGuard (Security & Privacy)
// Location: src/privacy/PrivacyGuard.ts (258 lines)
class PrivacyGuard {
private encryption: EncryptionService;
private anonymizer: AnonymizationService;
// Privacy protection
async encryptMemory(memory: Memory): Promise<EncryptedMemory>
async anonymizeContent(content: string): Promise<AnonymizedContent>
async detectPII(text: string): Promise<PIIDetectionResult>
}
🔄 Data Flow Architecture
📈 Memory Creation Flow
sequenceDiagram
participant U as User
participant API as API Server
participant MCP as MemoryConnectionProtocol
participant PG as PrivacyGuard
participant MV as MemoryVault
participant VS as VectorSearch
participant BC as Blockchain
U->>API: POST /api/memory
API->>API: Validate Request
API->>MCP: createMemory()
MCP->>PG: encryptMemory()
PG->>PG: Detect PII
PG->>PG: Apply Encryption
PG-->>MCP: Encrypted Memory
MCP->>MV: storeMemory()
MV->>VS: Generate Embeddings
VS-->>MV: Vector Embeddings
MV->>MV: Store to Database
MV-->>MCP: Memory ID
MCP->>BC: Mine Quality Score
BC-->>MCP: Mining Result
MCP-->>API: Created Memory
API-->>U: HTTP 201 Response
🔍 Memory Search Flow
sequenceDiagram
participant U as User
participant API as API Server
participant MCP as MemoryConnectionProtocol
participant MV as MemoryVault
participant VS as VectorSearch
participant Cache as Cache Layer
U->>API: GET /api/memory/search?query=...
API->>API: Validate & Rate Limit
API->>MCP: searchMemories()
MCP->>Cache: Check Cache
alt Cache Hit
Cache-->>MCP: Cached Results
else Cache Miss
MCP->>MV: searchSemantic()
MV->>VS: Vector Search
VS->>VS: Similarity Calculation
VS-->>MV: Ranked Results
MV->>MV: Apply Privacy Filters
MV-->>MCP: Filtered Results
MCP->>Cache: Store Results
end
MCP-->>API: Search Results
API-->>U: HTTP 200 Response
🤖 AI Interaction Processing Flow
sequenceDiagram
participant AI as AI Platform
participant CMB as CrossMindBridge
participant MCP as MemoryConnectionProtocol
participant MV as MemoryVault
participant MM as MemoryMiner
participant BC as Blockchain
AI->>CMB: New Interaction
CMB->>CMB: Extract Memories
CMB->>MCP: processAIInteraction()
MCP->>MV: Store Interaction
MCP->>MM: Assess Quality
MM->>MM: AI Quality Analysis
MM->>BC: Submit for Mining
BC->>BC: Validate & Mine
BC-->>MM: Mining Rewards
MM-->>MCP: Quality Score
MCP->>MV: Update Memory Quality
MCP-->>CMB: Processing Complete
CMB-->>AI: Context Injection
🛠️ Technical Implementation
🔧 Core Technology Stack
| Layer | Technology | Purpose | |-------|------------|---------| | Frontend | React, Electron, React Native | Multi-platform user interfaces | | Backend | Node.js, Express.js, TypeScript | API server and business logic | | Database | SQLite, PostgreSQL, Redis | Data storage and caching | | Search | Vector embeddings, Semantic search | Intelligent memory retrieval | | Blockchain | Solana, Rust, Anchor | Token economics and mining | | AI Integration | OpenAI, Anthropic, Google APIs | Multi-platform AI support | | Security | AES-256-GCM, JWT, bcrypt | Encryption and authentication | | DevOps | Docker, Docker Compose | Containerization and deployment |
📁 Project Structure
synaptic/
├── 📁 src/ # Source code
│ ├── 📁 core/ # C
