A knowledge-graph-based memory system for AI agents that enables persistent information storage between conversations
Project description
Memory MCP
A knowledge-graph-based memory system for AI agents that enables persistent information storage between conversations.
Features
- Persistent memory storage using a knowledge graph structure
- Entity-relation model for organizing information
- Tools for adding, searching, and retrieving memories
Tools
The system provides the following MCP tools:
load_knowledge_graph(): Retrieves the entire knowledge graphget_knowledge_graph_size(): Returns the current size category of the graph ("small", "medium", or "large")add_entities(entities): Adds new entities to the memoryadd_relations(relations): Creates relationships between entitiesadd_observations(entity_name, observations): Adds observations to existing entitiesdelete_entities(entity_names): Removes entities from memorydelete_relations(relations): Removes relationshipssearch_nodes(query, search_mode): Searches for entities and relations matching a query. Supports three search modes:- "exact_phrase": Matches the entire query as a substring
- "any_token": Matches if any word in the query matches (default)
- "all_tokens": Matches if all words in the query match
open_nodes(names): Retrieves specific entities and their relationships between them
Usage
Run the agent with:
uv run memory_agent.py
The agent will automatically:
- Load its memory at the start of conversations
- Reference relevant information during interactions
- Update its memory with new information when the conversation ends
Exit a conversation by typing q.
Configuration
Set the memory storage location with the MEMORY_FILE_PATH environment variable (defaults to memory.json).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_memory-0.1.1.tar.gz.
File metadata
- Download URL: iflow_mcp_memory-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e2449341d2c5b5cb07765a433d1472984c36d9973ce35d26fbec3fb9b9219f5
|
|
| MD5 |
98b925fc43858eb77ba2e952ca7bbfa1
|
|
| BLAKE2b-256 |
0c71f9ed41278efe50308ea57347101cf65e63240117293c790646186976063e
|
File details
Details for the file iflow_mcp_memory-0.1.1-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_memory-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37962a2512e110ddd3a363ba96d17495b9e723c47243d2eab75fb8e2650de55f
|
|
| MD5 |
c1805ed66358f91123081ccf4da60e3c
|
|
| BLAKE2b-256 |
049def2e7caca97eafddaf7dc4bf30f379f13e6625d6bde31688c2fbfcea9e9f
|