Skip to main content

MemBannk

One memory shared by all your AI assistants. Start a thread in Claude, pick it up in ChatGPT, then finish it in Gemini, without pasting the history across.

MemBannk is a small desktop app that runs on your Mac. It keeps:

  • Conversation checkpoints. An assistant saves a structured snapshot (topic, summary, decisions, open questions, next steps). Any other assistant can resume it later, by exact topic name or just by describing it ("where was I with the launch plan?").
  • A personal knowledge base. Drop in Markdown, text, PDFs, folders, .zip archives, or even video and audio (transcribed locally with Whisper). Everything is searchable by meaning.

Assistants reach it over the Model Context Protocol (MCP). Data stays on your machine in SQLite and a txtai vector index. The optional ngrok tunnel only lets web assistants talk to your machine; nothing is stored in the cloud.

Install

pip install git+https://github.com/BharanitharanR/membannk

Python 3.10+ is required, and a virtual environment is recommended. The first launch downloads about 500 MB of models (MiniLM embeddings, Docling, Whisper base).

Run

membannk

A window opens and the MCP server starts at http://127.0.0.1:8000/mcp. Leave the window open while you work.

Make it reachable from ChatGPT, Gemini and claude.ai (ngrok)

Web assistants can't see 127.0.0.1, so they need a public HTTPS URL. The ngrok tunnel is built in, with no separate binary to install:

membannk --set-ngrok-token <your-ngrok-authtoken>   # once; free at dashboard.ngrok.com
membannk --tunnel --domain <your-static-domain>.ngrok-free.app

The window shows a public MCP URL like https://<domain>/<secret>/mcp. The secret path is generated once and saved in ~/.membannk/path_token. Every other path returns 404, so treat the whole URL like a password. To rotate it, run membannk --new-secret. membannk --show-url prints the URL again.

Connect your assistants

Assistant How
Claude Code claude mcp add --transport http membannk http://127.0.0.1:8000/mcp
Cursor / VS Code Add an MCP server with URL http://127.0.0.1:8000/mcp
Claude (desktop / claude.ai) Settings → Connectors → Add custom connector → paste the public URL
ChatGPT Settings → Apps & Connectors → Advanced → Developer mode → Create connector → paste the public URL
Gemini Settings → Connectors / MCP servers → Connect to an MCP server → paste the public URL

Menu names move around as these apps update. Look for "custom connector" or "MCP server".

Use it

Just talk normally:

  • "Save this as MemBannk launch plan." The assistant calls save_context.
  • In another assistant: "Resume the MemBannk launch plan" or "where was I with the launch?" The assistant calls resume and continues from the latest checkpoint, with earlier checkpoints and related KB material attached.
  • "What did my notes say about pricing?" The assistant calls search_kb.

Tools

Tool What it does
save_context(topic, summary, decisions, open_questions, next_steps, source) Save a checkpoint
resume(query, history=3, include_kb=True) Load the latest checkpoint(s) for a topic, matched by name, meaning or keyword
list_topics() List saved threads
search_kb(query, limit=3) Semantic search over ingested files
ingest_paths(paths) Ingest files, folders or .zip archives from disk
kb_stats() Count indexed chunks

REST endpoints are also available: POST /ingest, GET /search?query=, GET /health.

Claude Code: pull memory at session start (optional)

hooks/membannk-session-start.sh is a SessionStart hook that tells Claude to check MemBannk for the current project before it starts work. Add it to ~/.claude/settings.json:

{
  "hooks": {
    "SessionStart": [
      { "hooks": [{ "type": "command", "command": "/path/to/membannk/hooks/membannk-session-start.sh" }] }
    ]
  }
}

Configuration

Env var Default Meaning
MEMBANNK_PORT 8000 Port (--port overrides it)
MEMBANNK_HOST 127.0.0.1 Listen address
MEMBANNK_DATA_DIR ~/Library/Application Support/LocalKB Where the index and contexts.db live
MEMBANNK_PATH_TOKEN (auto with --tunnel) Secret path prefix
NGROK_AUTHTOKEN ~/.membannk/ngrok_auth ngrok authtoken
MEMBANNK_NGROK_DOMAIN ~/.membannk/ngrok_domain Static ngrok domain

Security notes

  • Without --tunnel, the server only listens on 127.0.0.1.
  • With --tunnel, anyone who has the full URL can read your checkpoints and KB. They can also call ingest_paths to index files from your disk. Keep the URL private, rotate it with --new-secret if it leaks, and stop the app when you don't need remote access.

License

MIT

Metadata

Release files for membannk 0.1.0

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

Source distribution (sdist)

Source distribution for membannk 0.1.0
File Size Uploaded Provenance Actions
membannk-0.1.0.tar.gz 18.1 kB Without provenance Details for membannk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for membannk 0.1.0
File Interpreter ABI Platform Actions
membannk-0.1.0-py3-none-any.whl Python 3 none any Details for membannk-0.1.0-py3-none-any.whl

Total release size: 37.6 kB

Release files / membannk-0.1.0.tar.gz

Download URL membannk-0.1.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c1bd873d9a2a3a1d0b7e778b19f84650f221dabd4cbd692aec090f71c8b60a43
BLAKE2b-256 checksum
How to use checksums
81460cdf2f2c0e03c3d1453e9bfb3d359a4a49ee69b503e2bbfd83e18fe260ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / membannk-0.1.0-py3-none-any.whl

Download URL membannk-0.1.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e97cdc9567578189a6cfac43bf918125180586cf82071b4ee79ef0d339ac508a
BLAKE2b-256 checksum
How to use checksums
95108b883f46faef8b9d8085d4ee992d683e6512e875d2ec6739e1bbe31db296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for membannk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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