A Python-based memory plugin that uses SQLite for persistent storage
Project description
Memory Plugin
A Python-based memory plugin that uses SQLite for persistent storage.
Overview
This plugin provides memory storage functionality using SQLite as the backend database. It's designed to store and manage data persistently across sessions.
Setup
-
Environment Configuration
Create a
.envfile in the root directory with the following configuration:MEMORY_DB_PATH=/path/to/your/memory.sqliteYou can use the provided
.env.exampleas a template:cp .env.example .env
-
Dependencies
The project requires Python and uses SQLite for data storage. Make sure you have Python installed on your system.
Configuration
-
rename .env.example to .env and edit the values to your needs:
-
Locate claude_desktop_config.json and use the template below to add "MQTT Bridge" to the mcpServers section. MacOs: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: C:\Users<username>\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"memory_recall": {
"command": "/path/to/python3",
"args": [
"/path/2/your/cloned/repository/memory_plugin.py"
]
}
}
}
The SQLite database path is configured through the MEMORY_DB_PATH environment variable. This should point to where you want the SQLite database file to be stored.
Current configuration:
MEMORY_DB_PATH=/path/to/your/dabatase.sqlite
Usage
Basic Usage
Refer to the @mcp.resource and @mcp.tool decorated functions in the memory_plugin.py file
Examples to type in the chat:
memory://loadto load the saved memories at new chat startSave into the memory, under aNewName category, the following: a new message with important info to rememberSave the relevant points of the conversation into the memory under aNewName category
Development
When contributing to this project:
- Make sure to not commit sensitive information
- Keep your
.envfile private - Use
.env.examplefor sharing template configurations
License
This project is licensed under the MIT License.
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_mekanixms_mcp_memory_plugin-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_mekanixms_mcp_memory_plugin-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
671dc51b8e616b197f58dd4f49292d02b16beb13cab690ec589452c25773604c
|
|
| MD5 |
9de8e9cc107219952320047234a3a98b
|
|
| BLAKE2b-256 |
13b455444c94190bd13cd8bc5c5efbe01d954f6793db34fba2b4aa9e903d1daf
|
File details
Details for the file iflow_mcp_mekanixms_mcp_memory_plugin-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_mekanixms_mcp_memory_plugin-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
900f2a31292e03b6ba5f967a36dbfd1f26853b3e7bca4122cffd99d4efa9daaa
|
|
| MD5 |
1d94fad225ba19ec8c9e0b1a548ee891
|
|
| BLAKE2b-256 |
c7f20ee15784f7c02b9597b9b4d5c2303b9723f56288dbcb86385ac81787a9fa
|