← Package Index
mcp-memory mcp
v1.0.1 · MCP Tool · storage · registry.pascalai.org
Simple in-memory key-value store with JSON file persistence. Storage file: mcp_memory.json in Documents folder by default. Operations: store, retrieve, delete, list, list_all, clear, search, append, count. Pure RTL, no external dependencies.
memory kv key-value storage persistence json cache
Input Parameters
Parameter Type Description
operationrequired
string
store/retrieve/delete/append: key required. store/append: memvalue required. search: query required. One of: store, retrieve, delete, list, list_all, clear, search, append, count.
keyoptional
string
Memory key. Required for store, retrieve, delete, append.
memValueoptional
string
Value to store. Required for store and append.
queryoptional
string
Substring search query. Required for search.
storagePathoptional
string
Directory path for the JSON storage file. Default: Documents folder.
Output Fields
Field Type Description
ok
boolean
key
string
value
string
found
boolean
existed
boolean
deleted
string
keys
array[string]
entries
object
matches
object
count
integer
cleared
integer
query
string
error
string
Examples
Store a value
// Input
{
"operation": "store",
"key": "user_name",
"memvalue": "Alice"
}
// Output
{
"ok": true,
"key": "user_name",
"value": "Alice"
}
Retrieve a value
// Input
{
"operation": "retrieve",
"key": "user_name"
}
// Output
{
"ok": true,
"key": "user_name",
"found": true,
"value": "Alice"
}
Search for entries
// Input
{
"operation": "search",
"query": "user"
}
// Output
{
"ok": true,
"query": "user",
"matches": {
"user_name": "Alice"
},
"count": 1
}
Install & Discovery
Install
ppm install mcp-memory
Get JSON Schema
GET /v1/packages/mcp-memory/1.0.1/schema
Discover by keyword
GET /v1/mcp/discover?q=memory
Discovery hint: Install with ppm install mcp-memory or invoke remotely via POST /v1/invoke/mcp-memory on the MCP Service.
PascalAI Usage
uses toolslib;
var Tool := LoadTool('mcp-memory');
Tool.Call(JsonObj(['operation','store','key','step','memvalue','3']));
var R := Tool.Call(JsonObj(['operation','retrieve','key','step']));
var V := R['value'];