About Lightmem
Lightmem is an MCP server published by zjunlp in the AI category: [ICLR 2026] LightMem: Lightweight and Efficient Memory-Augmented Generation. Conduid read 5 tools from its source: add_memory, get_timestamp, offline_update, retrieve_memory and show_lightmem_instance. It is published to PyPI as lightmem and runs with uvx.
The repository has 1.2K stars and 119 forks, is licensed MIT, and its last commit was on 17 Nov 2026. Conduid has no tagged release on record for it. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include large-language-models, chatbot, lightmem, artificial-intelligence and knowledge.
Install
uvx lightmempip install lightmemgit clone https://github.com/zjunlp/LightMemTools (5)
add_memoryAdd new memory (user input and assistant reply pair) to the LightMem.| Parameter | Type | Description |
|---|---|---|
| assistant_reply * | string | Assistant role's response or reply |
| force_extract | boolean | Whether to force memory extraction, regardless of thresholds |
| force_segment | boolean | Whether to force segmentation, regardless of buffer conditions |
| timestamp | string | Timestamp (optional, format: "YYYY-MM-DDTHH:MM:SS.sss") |
| user_input * | string | User role's input or question |
get_timestampGet the current time and return it in the specified format (YYYY-MM-DDTHH:MM:SS.sss).offline_updateUpdate all memory entries by using LightMem's update strategy.| Parameter | Type | Description |
|---|---|---|
| keep_top_n | integer | Number of top entries to keep in update_queue |
| score_threshold | number | Minimum similarity score for considering update candidates |
| top_k | integer | Number of nearest neighbors to consider for each entry |
retrieve_memoryRetrieve relevant memory entries from LightMem based on a query.| Parameter | Type | Description |
|---|---|---|
| filters | any | Optional filters to narrow down the search, usually metadata filters supported by the vector database. |
| limit | integer | Number of similar results to return (top-k for vector retrieval) |
| query * | string | The natural language query string to search for relevant memories |
show_lightmem_instanceShow the current LightMem instance's status.Security checks
Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.3K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by web/frontend/package-lock.json.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
README
The repository's README runs to about 4.3K words, fetched 4 days ago. The original in the repository is authoritative.
Read full README