local-memory-mcp 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,46 @@
1
+ # Changelog
2
+
3
+ All notable changes to the @local-memory/server npm package will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.0] - 2025-08-26
9
+
10
+ ### Added
11
+ - Initial release of @local-memory/server npm package
12
+ - Cross-platform binary distribution for macOS (Intel/ARM), Linux, and Windows
13
+ - Automatic platform detection and binary download
14
+ - Integration with existing S3 distribution infrastructure
15
+ - Fallback to GitHub Releases for download reliability
16
+ - Comprehensive installation, testing, and uninstall scripts
17
+ - MCP (Model Context Protocol) server integration
18
+ - 20+ MCP tools for memory management and AI analysis
19
+ - License validation integration with existing license system
20
+ - Global binary installation support (`local-memory` command)
21
+ - Complete documentation and troubleshooting guides
22
+
23
+ ### Features
24
+ - **Platform Support**: Automatic detection and installation for all supported platforms
25
+ - **Download Strategy**: Multi-tier download with S3 primary and GitHub fallback
26
+ - **Binary Management**: Automatic permissions setting and validation
27
+ - **License Integration**: Seamless integration with localmemory.co license system
28
+ - **MCP Compatibility**: Full MCP server implementation with stdio protocol
29
+ - **CLI Interface**: Complete command-line interface matching standalone binary
30
+ - **Error Handling**: Comprehensive error messages and troubleshooting guidance
31
+ - **Testing Suite**: Built-in test scripts for installation validation
32
+
33
+ ### Technical Details
34
+ - Node.js 16+ compatibility
35
+ - Cross-platform binary execution wrapper
36
+ - Secure download with integrity verification
37
+ - Automatic executable permissions management
38
+ - Integration with existing GitHub Actions CI/CD pipeline
39
+ - Support for both global and local npm installations
40
+
41
+ ### Documentation
42
+ - Complete README with installation and usage instructions
43
+ - Troubleshooting guide for common issues
44
+ - MCP integration examples
45
+ - Platform-specific guidance
46
+ - Support and contact information
package/README.md ADDED
@@ -0,0 +1,256 @@
1
+ # local-memory-mcp
2
+
3
+ Local Memory MCP Server - AI-powered persistent memory system for Claude Desktop and other MCP-compatible tools.
4
+
5
+ [![npm version](https://img.shields.io/npm/v/local-memory-mcp.svg)](https://www.npmjs.com/package/local-memory-mcp)
6
+ [![License](https://img.shields.io/badge/license-Commercial-blue.svg)](https://localmemory.co/terms)
7
+ [![Platform Support](https://img.shields.io/badge/platforms-macOS%20%7C%20Linux%20%7C%20Windows-green.svg)](#platform-support)
8
+
9
+ ## What is Local Memory?
10
+
11
+ Local Memory is a revolutionary AI memory system that gives Claude Desktop and other AI tools **persistent, searchable memory**. Unlike traditional AI that forgets everything between conversations, Local Memory creates a growing knowledge base that makes your AI smarter over time.
12
+
13
+ ### Key Features
14
+
15
+ - 🧠 **Persistent Memory**: Your AI remembers every conversation, decision, and solution
16
+ - 🔍 **Semantic Search**: AI-powered search that understands context and meaning
17
+ - 🎯 **Vector Database**: High-performance search with Qdrant integration + SQLite fallback
18
+ - 🤖 **20+ MCP Tools**: Complete toolkit for memory management and AI analysis
19
+ - 🔐 **100% Local**: Your data never leaves your machine - complete privacy
20
+ - ⚡ **Production Ready**: Handles 34,466+ memories per second
21
+
22
+ ## Quick Start
23
+
24
+ ### 1. Install
25
+
26
+ ```bash
27
+ npm install -g local-memory-mcp
28
+ ```
29
+
30
+ ### 2. Get Your License
31
+
32
+ Visit [localmemory.co](https://localmemory.co) to purchase your license key.
33
+
34
+ ### 3. Activate License
35
+
36
+ ```bash
37
+ local-memory license activate LM-XXXX-XXXX-XXXX-XXXX-XXXX
38
+ ```
39
+
40
+ ### 4. Start Local Memory
41
+
42
+ ```bash
43
+ local-memory start
44
+ ```
45
+
46
+ ### 5. Install for Claude Desktop
47
+
48
+ ```bash
49
+ local-memory install mcp
50
+ ```
51
+
52
+ That's it! Your AI now has persistent memory.
53
+
54
+ ## Platform Support
55
+
56
+ | Platform | Architecture | Status |
57
+ |----------|-------------|--------|
58
+ | macOS | Intel (x64) | ✅ Fully Supported |
59
+ | macOS | Apple Silicon (ARM64) | ✅ Fully Supported |
60
+ | Linux | x64 | ✅ Fully Supported |
61
+ | Windows | x64 | ✅ Fully Supported |
62
+
63
+ ## MCP Integration
64
+
65
+ Local Memory implements the Model Context Protocol (MCP) and integrates seamlessly with:
66
+
67
+ - **Claude Desktop** - Anthropic's official desktop app
68
+ - **Cline** - VS Code AI coding assistant
69
+ - **Any MCP-compatible tool**
70
+
71
+ ### MCP Configuration
72
+
73
+ After running `local-memory install mcp`, your Claude Desktop config will include:
74
+
75
+ ```json
76
+ {
77
+ "mcpServers": {
78
+ "local-memory": {
79
+ "command": "local-memory",
80
+ "args": ["--mcp"]
81
+ }
82
+ }
83
+ }
84
+ ```
85
+
86
+ ## Available Commands
87
+
88
+ ### Memory Operations
89
+ ```bash
90
+ local-memory remember "Important information to store"
91
+ local-memory search "what was that about databases?"
92
+ local-memory forget <memory-id>
93
+ ```
94
+
95
+ ### System Management
96
+ ```bash
97
+ local-memory start # Start the daemon
98
+ local-memory stop # Stop the daemon
99
+ local-memory status # Check daemon status
100
+ local-memory doctor # Run diagnostics
101
+ ```
102
+
103
+ ### License Management
104
+ ```bash
105
+ local-memory license activate LM-XXXX-XXXX-XXXX-XXXX-XXXX
106
+ local-memory license status
107
+ local-memory license validate <key>
108
+ ```
109
+
110
+ ### Setup & Installation
111
+ ```bash
112
+ local-memory setup # Interactive setup wizard
113
+ local-memory install mcp # Install for Claude Desktop
114
+ ```
115
+
116
+ ## MCP Tools (20+ Available)
117
+
118
+ When connected via MCP, Local Memory provides these tools to your AI:
119
+
120
+ ### Core Memory
121
+ - `store_memory` - Store information with importance scoring
122
+ - `search_memories` - Semantic search across all memories
123
+ - `update_memory` - Modify existing memories
124
+ - `delete_memory` - Remove memories
125
+ - `get_memory_by_id` - Retrieve specific memories
126
+
127
+ ### Advanced Search
128
+ - `search_by_tags` - Find memories by category
129
+ - `search_by_date_range` - Temporal memory queries
130
+ - `get_related_memories` - Find connected information
131
+
132
+ ### AI Analysis
133
+ - `ask_question` - Natural language Q&A about your memories
134
+ - `summarize_memories` - Generate summaries of complex topics
135
+ - `analyze_memories` - Discover patterns and insights
136
+
137
+ ### Relationship Management
138
+ - `create_relationship` - Link related memories
139
+ - `discover_relationships` - Find memory connections
140
+ - `map_memory_graph` - Visualize knowledge connections
141
+
142
+ ### Organization
143
+ - `categorize_memory` - AI-powered automatic categorization
144
+ - `list_categories` - Browse your knowledge structure
145
+ - `create_domain` - Separate knowledge spaces
146
+
147
+ ### Session Intelligence
148
+ - `list_sessions` - Track learning sessions
149
+ - `get_session_stats` - Session analytics
150
+
151
+ ## Dependencies
152
+
153
+ ### Required
154
+ - **Node.js** 16+ (for npm installation only - not needed at runtime)
155
+
156
+ ### Optional (Enhanced Features)
157
+ - **Ollama** - For AI-powered semantic search and categorization
158
+ ```bash
159
+ # Install Ollama
160
+ curl -fsSL https://ollama.ai/install.sh | sh
161
+
162
+ # Pull required models
163
+ ollama pull nomic-embed-text # For embeddings (required for AI features)
164
+ ollama pull qwen2.5:7b # For chat completions (recommended)
165
+ ```
166
+
167
+ - **Qdrant** - For high-performance vector search (10-50x faster than SQLite)
168
+ ```bash
169
+ # macOS
170
+ brew install qdrant
171
+
172
+ # Linux
173
+ snap install qdrant
174
+
175
+ # Docker
176
+ docker run -p 6333:6333 qdrant/qdrant
177
+ ```
178
+
179
+ ## Architecture
180
+
181
+ Local Memory uses a sophisticated multi-layer architecture:
182
+
183
+ - **MCP Protocol Layer**: JSON-RPC over stdio for AI integration
184
+ - **Storage Layer**: SQLite with custom migrations + optional Qdrant vector DB
185
+ - **Services Layer**: Memory, Vector, Analysis, Ollama, and Qdrant services
186
+ - **API Layer**: REST endpoints for web integration
187
+
188
+ ## Data Storage
189
+
190
+ All data is stored locally in `~/.local-memory/`:
191
+
192
+ - `config.json` - Configuration settings
193
+ - `unified-memories.db` - SQLite database with your memories
194
+ - `license.json` - License information
195
+
196
+ **Your data never leaves your machine.**
197
+
198
+ ## Troubleshooting
199
+
200
+ ### Installation Issues
201
+
202
+ **Binary not found or permission denied:**
203
+ ```bash
204
+ # macOS/Linux: Fix permissions
205
+ chmod +x ~/.npm-global/lib/node_modules/local-memory-mcp/bin/*
206
+
207
+ # macOS: Allow in Security & Privacy, or:
208
+ xattr -rd com.apple.quarantine ~/.npm-global/lib/node_modules/local-memory-mcp/bin/*
209
+ ```
210
+
211
+ **Download fails:**
212
+ - Check your internet connection
213
+ - Try again in a few minutes (server issue)
214
+ - Download manually from [localmemory.co](https://localmemory.co)
215
+
216
+ ### Runtime Issues
217
+
218
+ **License activation fails:**
219
+ ```bash
220
+ local-memory doctor # Run diagnostics
221
+ local-memory license status # Check current license
222
+ ```
223
+
224
+ **Claude Desktop not connecting:**
225
+ ```bash
226
+ local-memory install mcp # Reinstall MCP configuration
227
+ local-memory status # Verify daemon is running
228
+ ```
229
+
230
+ **Memory search not working:**
231
+ - Install Ollama for semantic search
232
+ - Check Qdrant installation for performance
233
+ - SQLite fallback always available
234
+
235
+ ## Support
236
+
237
+ - 📖 **Documentation**: [localmemory.co/docs](https://localmemory.co/docs)
238
+ - 💬 **Support**: [localmemory.co/support](https://localmemory.co/support)
239
+ - 🐛 **Issues**: [GitHub Issues](https://github.com/danieleugenewilliams/local-memory-golang/issues)
240
+ - 💼 **Enterprise**: [contact@localmemory.co](mailto:contact@localmemory.co)
241
+
242
+ ## License
243
+
244
+ Local Memory is commercial software. A license key is required for use.
245
+
246
+ - **Individual License**: Available at [localmemory.co](https://localmemory.co)
247
+ - **Enterprise License**: Contact [contact@localmemory.co](mailto:contact@localmemory.co)
248
+ - **Terms**: [localmemory.co/terms](https://localmemory.co/terms)
249
+
250
+ ## Contributing
251
+
252
+ Local Memory is closed-source commercial software. For feature requests or bug reports, please use [GitHub Issues](https://github.com/danieleugenewilliams/local-memory-golang/issues).
253
+
254
+ ---
255
+
256
+ **Transform your AI from goldfish to genius. Get started at [localmemory.co](https://localmemory.co)**
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Local Memory Binary Launcher
5
+ *
6
+ * This script launches the appropriate Local Memory binary for the current platform.
7
+ * It serves as the global binary when the package is installed with -g flag.
8
+ */
9
+
10
+ const path = require('path');
11
+
12
+ // Import and run the main function from index.js
13
+ const { main } = require(path.join(__dirname, '..', 'index.js'));
14
+
15
+ main();
Binary file
Binary file
Binary file
package/index.js ADDED
@@ -0,0 +1,120 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * @local-memory/server
5
+ *
6
+ * Local Memory MCP Server - AI-powered persistent memory system
7
+ *
8
+ * This is the main entry point for the @local-memory/server npm package.
9
+ * It provides a unified interface to the Local Memory binary across platforms.
10
+ *
11
+ * @author Local Memory <contact@localmemory.co>
12
+ * @license SEE LICENSE IN https://localmemory.co/terms
13
+ */
14
+
15
+ const { spawn } = require('child_process');
16
+ const path = require('path');
17
+ const fs = require('fs');
18
+ const os = require('os');
19
+
20
+ /**
21
+ * Get the platform-specific binary name
22
+ */
23
+ function getBinaryName() {
24
+ const platform = os.platform();
25
+ const arch = os.arch();
26
+
27
+ switch (platform) {
28
+ case 'darwin':
29
+ return arch === 'arm64' ? 'local-memory-macos-arm' : 'local-memory-macos-intel';
30
+ case 'linux':
31
+ return 'local-memory-linux';
32
+ case 'win32':
33
+ return 'local-memory-windows.exe';
34
+ default:
35
+ throw new Error(`Unsupported platform: ${platform}-${arch}`);
36
+ }
37
+ }
38
+
39
+ /**
40
+ * Get the path to the local-memory binary
41
+ */
42
+ function getBinaryPath() {
43
+ const binaryName = getBinaryName();
44
+ const binaryPath = path.join(__dirname, 'bin', binaryName);
45
+
46
+ if (!fs.existsSync(binaryPath)) {
47
+ console.error(`Error: Local Memory binary not found at ${binaryPath}`);
48
+ console.error('');
49
+ console.error('This may indicate an installation issue. Please try:');
50
+ console.error('1. Reinstall the package: npm uninstall @local-memory/server && npm install @local-memory/server');
51
+ console.error('2. Check your platform support at: https://localmemory.co/docs/installation');
52
+ console.error('3. If issues persist, contact support: https://localmemory.co/support');
53
+ process.exit(1);
54
+ }
55
+
56
+ return binaryPath;
57
+ }
58
+
59
+ /**
60
+ * Main execution function
61
+ */
62
+ function main() {
63
+ try {
64
+ const binaryPath = getBinaryPath();
65
+ const args = process.argv.slice(2);
66
+
67
+ // Execute the local-memory binary with all arguments
68
+ const child = spawn(binaryPath, args, {
69
+ stdio: 'inherit',
70
+ cwd: process.cwd()
71
+ });
72
+
73
+ // Handle process termination
74
+ child.on('exit', (code, signal) => {
75
+ if (signal) {
76
+ process.exit(128 + os.constants.signals[signal]);
77
+ } else {
78
+ process.exit(code || 0);
79
+ }
80
+ });
81
+
82
+ // Handle errors
83
+ child.on('error', (error) => {
84
+ if (error.code === 'ENOENT') {
85
+ console.error('Error: Local Memory binary not found or not executable.');
86
+ console.error('');
87
+ console.error('Please ensure the binary has proper permissions:');
88
+ console.error(`chmod +x "${binaryPath}"`);
89
+ console.error('');
90
+ console.error('If you\'re on macOS, you may need to allow the binary in System Preferences > Security & Privacy');
91
+ console.error('Or run: xattr -rd com.apple.quarantine "${binaryPath}"');
92
+ } else {
93
+ console.error(`Error executing Local Memory: ${error.message}`);
94
+ }
95
+ process.exit(1);
96
+ });
97
+
98
+ // Handle termination signals
99
+ ['SIGINT', 'SIGTERM'].forEach(signal => {
100
+ process.on(signal, () => {
101
+ child.kill(signal);
102
+ });
103
+ });
104
+
105
+ } catch (error) {
106
+ console.error(`Error: ${error.message}`);
107
+ process.exit(1);
108
+ }
109
+ }
110
+
111
+ // Only run main if this file is executed directly
112
+ if (require.main === module) {
113
+ main();
114
+ }
115
+
116
+ module.exports = {
117
+ getBinaryPath,
118
+ getBinaryName,
119
+ main
120
+ };
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "local-memory-mcp",
3
+ "version": "1.0.2",
4
+ "description": "Local Memory MCP Server - AI-powered persistent memory system for Claude Desktop and other MCP-compatible tools",
5
+ "keywords": [
6
+ "mcp",
7
+ "model-context-protocol",
8
+ "claude",
9
+ "ai",
10
+ "memory",
11
+ "vector-search",
12
+ "local-memory",
13
+ "anthropic",
14
+ "mcp-server"
15
+ ],
16
+ "author": "Local Memory <contact@localmemory.co>",
17
+ "license": "SEE LICENSE IN https://localmemory.co/terms",
18
+ "homepage": "https://localmemory.co",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/danieleugenewilliams/local-memory-golang.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/danieleugenewilliams/local-memory-golang/issues"
25
+ },
26
+ "engines": {
27
+ "node": ">=16.0.0"
28
+ },
29
+ "os": [
30
+ "darwin",
31
+ "linux",
32
+ "win32"
33
+ ],
34
+ "cpu": [
35
+ "x64",
36
+ "arm64"
37
+ ],
38
+ "main": "index.js",
39
+ "bin": {
40
+ "local-memory": "bin/local-memory"
41
+ },
42
+ "scripts": {
43
+ "postinstall": "node scripts/install.js",
44
+ "test": "node scripts/test.js",
45
+ "test:package": "node test/test-npm-package.js",
46
+ "test:integration": "node test/test-integration.js",
47
+ "test:all": "npm run test:package && npm run test:integration",
48
+ "uninstall": "node scripts/uninstall.js"
49
+ },
50
+ "files": [
51
+ "index.js",
52
+ "bin/",
53
+ "scripts/",
54
+ "test/",
55
+ "README.md",
56
+ "CHANGELOG.md"
57
+ ],
58
+ "preferGlobal": true,
59
+ "publishConfig": {
60
+ "access": "public"
61
+ },
62
+ "mcp": {
63
+ "server": true,
64
+ "protocol": "stdio",
65
+ "description": "AI-powered persistent memory system with vector search and semantic analysis",
66
+ "capabilities": [
67
+ "memory_storage",
68
+ "vector_search",
69
+ "ai_analysis",
70
+ "temporal_patterns",
71
+ "relationship_mapping",
72
+ "categorization"
73
+ ]
74
+ },
75
+ "funding": {
76
+ "type": "individual",
77
+ "url": "https://localmemory.co"
78
+ }
79
+ }