@t0ken.ai/memoryx-mcp-server 2.0.2 â 2.0.3
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/README.md +77 -53
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,44 +1,28 @@
|
|
|
1
|
-
# MemoryX MCP Server
|
|
1
|
+
# đ§ MemoryX MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@t0ken.ai/memoryx-mcp-server)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
**Give your AI assistants long-term memory via Model Context Protocol.**
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
MemoryX MCP Server enables Cursor, VS Code, Claude Desktop, and other MCP clients to store and retrieve memories across conversations.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
- **search_memory**: Search historical memories
|
|
11
|
-
- **get_account_info**: Get account information
|
|
10
|
+
## ⨠Features
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
- đ **Zero Config** - Auto-registers on first use, no API key needed
|
|
13
|
+
- đ **save_memory** - Store important information with automatic categorization
|
|
14
|
+
- đ **search_memory** - Semantic search across all historical memories
|
|
15
|
+
- âšī¸ **get_account_info** - Check connection status and agent info
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
- MCP mode: LLM summarizes and sends single memory additions
|
|
17
|
-
- Server extracts entities directly without LLM summarization
|
|
18
|
-
- Trigger: 20k tokens or 1 minute idle
|
|
19
|
-
- Automatic retry mechanism
|
|
20
|
-
- Offline support
|
|
17
|
+
## đ Quick Start
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Option 1: NPM Install
|
|
19
|
+
### Install
|
|
25
20
|
|
|
26
21
|
```bash
|
|
27
22
|
npm install -g @t0ken.ai/memoryx-mcp-server
|
|
28
23
|
```
|
|
29
24
|
|
|
30
|
-
###
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
cd plugins/memoryx-mcp-server
|
|
34
|
-
npm install
|
|
35
|
-
npm run build
|
|
36
|
-
npm link
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Configuration
|
|
40
|
-
|
|
41
|
-
### Cursor / VS Code
|
|
25
|
+
### Configure Cursor / VS Code
|
|
42
26
|
|
|
43
27
|
Add to `~/.cursor/mcp.json` or VS Code MCP config:
|
|
44
28
|
|
|
@@ -46,61 +30,101 @@ Add to `~/.cursor/mcp.json` or VS Code MCP config:
|
|
|
46
30
|
{
|
|
47
31
|
"mcpServers": {
|
|
48
32
|
"memoryx": {
|
|
49
|
-
"command": "memoryx-mcp-server"
|
|
50
|
-
"env": {
|
|
51
|
-
"MEMORYX_API_KEY": "your_api_key_here",
|
|
52
|
-
"MEMORYX_URL": "https://t0ken.ai/api"
|
|
53
|
-
}
|
|
33
|
+
"command": "memoryx-mcp-server"
|
|
54
34
|
}
|
|
55
35
|
}
|
|
56
36
|
}
|
|
57
37
|
```
|
|
58
38
|
|
|
59
|
-
|
|
39
|
+
**That's it!** The server auto-registers on first use - no additional configuration needed.
|
|
60
40
|
|
|
61
|
-
|
|
41
|
+
### Configure Claude Desktop
|
|
62
42
|
|
|
63
43
|
**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
44
|
+
|
|
64
45
|
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
65
46
|
|
|
66
47
|
```json
|
|
67
48
|
{
|
|
68
49
|
"mcpServers": {
|
|
69
50
|
"memoryx": {
|
|
70
|
-
"command": "memoryx-mcp-server"
|
|
71
|
-
"env": {
|
|
72
|
-
"MEMORYX_API_KEY": "your_api_key_here"
|
|
73
|
-
}
|
|
51
|
+
"command": "memoryx-mcp-server"
|
|
74
52
|
}
|
|
75
53
|
}
|
|
76
54
|
}
|
|
77
55
|
```
|
|
78
56
|
|
|
79
|
-
##
|
|
57
|
+
## đ Tools
|
|
80
58
|
|
|
81
|
-
###
|
|
59
|
+
### save_memory
|
|
82
60
|
|
|
83
|
-
|
|
61
|
+
Save information to long-term memory.
|
|
84
62
|
|
|
85
|
-
|
|
63
|
+
**When to call (automatic triggers):**
|
|
64
|
+
1. User explicitly says "remember", "note this", "don't forget"
|
|
65
|
+
2. User corrects your error (store the correct version)
|
|
66
|
+
3. User expresses preferences (I like/hate/usually...)
|
|
67
|
+
4. User mentions important experiences or future plans
|
|
68
|
+
5. End of conversation - generate a 100-word summary
|
|
86
69
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
70
|
+
**Categories (use in metadata.category):**
|
|
71
|
+
- `semantic` - facts, knowledge, user preferences
|
|
72
|
+
- `episodic` - specific events, experiences
|
|
73
|
+
- `procedural` - skills, methods, how-to steps
|
|
74
|
+
- `emotional` - feelings, emotional states
|
|
75
|
+
- `reflective` - insights, patterns, lessons learned
|
|
90
76
|
|
|
91
|
-
|
|
77
|
+
**Example:**
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"content": "User prefers dark theme in VS Code",
|
|
81
|
+
"metadata": {
|
|
82
|
+
"category": "semantic",
|
|
83
|
+
"tags": ["preference", "editor"]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### search_memory
|
|
89
|
+
|
|
90
|
+
Search historical memories before responding.
|
|
91
|
+
|
|
92
|
+
**Always call BEFORE:**
|
|
93
|
+
- Answering questions about user preferences/history
|
|
94
|
+
- Topics that might relate to past conversations
|
|
95
|
+
- Any personalized response needed
|
|
96
|
+
|
|
97
|
+
**Workflow:** `search` â `review results` â `generate informed response`
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
### get_account_info
|
|
94
100
|
|
|
95
|
-
|
|
101
|
+
Get current connection status including:
|
|
102
|
+
- API Key (masked)
|
|
103
|
+
- Agent ID
|
|
104
|
+
- Queue length
|
|
105
|
+
|
|
106
|
+
## đ Local Storage
|
|
107
|
+
|
|
108
|
+
Data stored in `~/.memoryx/sdk/` (managed by SDK):
|
|
109
|
+
- `memoryx.db` - SQLite database with agent info, queue, and cached data
|
|
110
|
+
|
|
111
|
+
## đ MCP Mode vs OpenClaw Mode
|
|
96
112
|
|
|
97
113
|
| Feature | MCP Server | OpenClaw Plugin |
|
|
98
114
|
|---------|------------|-----------------|
|
|
99
115
|
| Data Source | LLM summarized single additions | Bidirectional conversation flow |
|
|
100
116
|
| Server Processing | Direct entity extraction | LLM summarization then extraction |
|
|
101
|
-
| Trigger
|
|
117
|
+
| Trigger | 20k tokens / 1 min idle | 30k tokens / 5 min idle |
|
|
102
118
|
| Use Case | Cursor/Claude Desktop | OpenClaw Gateway |
|
|
103
119
|
|
|
104
|
-
##
|
|
120
|
+
## đ More Resources
|
|
121
|
+
|
|
122
|
+
- [MemoryX Platform](https://t0ken.ai)
|
|
123
|
+
- [Documentation](https://docs.t0ken.ai)
|
|
124
|
+
- [Node.js SDK](https://www.npmjs.com/package/@t0ken.ai/memoryx-sdk)
|
|
125
|
+
- [Python SDK](https://pypi.org/project/t0ken-memoryx/)
|
|
126
|
+
- [GitHub](https://github.com/t0ken-ai/MemoryX)
|
|
127
|
+
|
|
128
|
+
## đ License
|
|
105
129
|
|
|
106
|
-
MIT
|
|
130
|
+
MIT Š MemoryX Team
|