Skip to main content

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

  1. Environment Configuration

    Create a .env file in the root directory with the following configuration:

    MEMORY_DB_PATH=/path/to/your/memory.sqlite
    
    

    You can use the provided .env.example as a template:

    cp .env.example .env
    
  2. Dependencies

    The project requires Python and uses SQLite for data storage. Make sure you have Python installed on your system.

Configuration

  1. rename .env.example to .env and edit the values to your needs:

  2. 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://load to load the saved memories at new chat start
  • Save into the memory, under aNewName category, the following: a new message with important info to remember
  • Save the relevant points of the conversation into the memory under aNewName category

Development

When contributing to this project:

  1. Make sure to not commit sensitive information
  2. Keep your .env file private
  3. Use .env.example for sharing template configurations

License

This project is licensed under the MIT License.

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

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

Hashes for iflow_mcp_mekanixms_mcp_memory_plugin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 671dc51b8e616b197f58dd4f49292d02b16beb13cab690ec589452c25773604c
MD5 9de8e9cc107219952320047234a3a98b
BLAKE2b-256 13b455444c94190bd13cd8bc5c5efbe01d954f6793db34fba2b4aa9e903d1daf

See more details on using hashes here.

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

Hashes for iflow_mcp_mekanixms_mcp_memory_plugin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 900f2a31292e03b6ba5f967a36dbfd1f26853b3e7bca4122cffd99d4efa9daaa
MD5 1d94fad225ba19ec8c9e0b1a548ee891
BLAKE2b-256 c7f20ee15784f7c02b9597b9b4d5c2303b9723f56288dbcb86385ac81787a9fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page