Skip to main content

Memory Bank

A FastMCP-based service for storing and retrieving project files in a SQLite database.

Overview

Memory Bank provides a simple file storage system organized by projects, allowing you to:

  • List all available projects
  • List files within a project
  • Read file contents
  • Write new files
  • Update existing files

All data is stored in a SQLite database for persistence.

Installation

From PyPI

pip install memory-bank-mcp

From Source

  1. Clone this repository
  2. Install dependencies:
uv sync --dev

Configuration

Environment variables can be set in a .env file in the project root:

# .env file
DB_PATH=./data/memory_bank.db

Running the Server

python main.py

By default, the server runs on stdio. To run on SSE (Server-Sent Events) over network, modify main.py:

mcp.run(transport="sse", host="0.0.0.0", port=8000)

API Tools

List Projects

Lists all projects in the memory bank.

List Project Files

Lists all files in a specific project.

Read File

Reads the content of a specific file from a project.

Write File

Creates a new file in a project. Will not overwrite existing files.

Update File

Updates the content of an existing file in a project.

Project Structure

memory_bank/
├── .env                    # Environment variables configuration
├── README.md               # Project documentation 
├── main.py                 # Application entry point
├── db_init.py              # Database initialization scripts
├── config.py               # Configuration settings
├── database/
│   └── database.py         # Database connection and operations
└── api/
    ├── __init__.py         # API package initialization
    └── tools.py            # FastMCP tool definitions

Metadata

Release files for memory-bank-mcp 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for memory-bank-mcp 0.0.1
File Size Uploaded
memory_bank_mcp-0.0.1.tar.gz 52.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for memory-bank-mcp 0.0.1
File Interpreter ABI Platform
memory_bank_mcp-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 62.6 kB

Release files / memory_bank_mcp-0.0.1.tar.gz

Download URL memory_bank_mcp-0.0.1.tar.gz
Size 52.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4f9727044b7d759068195632bf1a5d8df4878a7618d08d3bfcf55425f206679f
BLAKE2b-256 checksum
How to use checksums
71d09e6f65808e483825bb9cac8678f056a1105dc49b472c18a674ca6a8e6a15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / memory_bank_mcp-0.0.1-py3-none-any.whl

Download URL memory_bank_mcp-0.0.1-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b71f63645246e5959cadd98481699514781dd71e300d6c11d0bea887e94f39a
BLAKE2b-256 checksum
How to use checksums
106395111e8789d4976fc918b0366e6fa3c17881dacee5581ed0d0113dcf8111
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page