Skip to main content

Membase

membase-ai

One memory. Every AI.
Teach it once. Every AI remembers.

PyPI npm Proprietary

Website · Docs · Web app · Discord · X

Add sources, manage one memory, use it from every AI and app

Membase keeps one memory for everything you and your agents know, and every AI you use reads it. You stop re-explaining yourself each time you switch models or tools.

  • Add. Facts, documents, web pages and chat exports from Claude or ChatGPT go into one memory.
  • Manage. Containers keep projects apart; search it, ask it questions, forget what should go.
  • Use. Your code, Claude Code, Cursor, Codex and ChatGPT read the same memory through the SDK or MCP.

This repository is the developer side: Python and TypeScript clients, the membase command line and an MCP server. The memory lives in your Membase account, which the web app and browser extension also fill, or on your machine with membase-ai[local].

Write once, read from any AI

Your app writes a memory; any AI reads it, here Claude Code

Recordings: Python SDK (57 s) · Claude Code (1 min 33 s). The answer above is illustrative.

Accuracy

LoCoMo 93.1%, LongMemEval_S 92.6%, DMR 92.2%

On three public long-term memory benchmarks, with a few thousand tokens of context per question.

Quickstart

Hosted, local in process, or local over HTTP

pip install membase-ai              # hosted · Python 3.10+ · needs MEMBASE_API_KEY
pip install 'membase-ai[local]'     # local  · Python 3.12 or 3.13 · needs OPENAI_API_KEY
npm install membase-ai              # TypeScript · Node 18+
from membase import Membase

m = Membase()                    # hosted
# m = Membase(local=True)        # local, in ~/.membase

m.memories.add("We picked Postgres for the ledger service.", container="Engineering")
m.search("what database is the ledger on?")
m.add("Design notes …", container="Engineering", custom_id="design-1")   # a document
m.ask("Which database did we choose for the ledger?")

Every method, its REST route and MCP tool, and the access it needs: SDK reference. The package is membase-ai; membase on PyPI is unrelated.

Command line

membase --local add "We picked Postgres for the ledger" --container Engineering
membase --local search "what did we pick for the ledger?"
membase --local ask "Which database is the ledger on?"
membase --local import ~/Downloads/claude-export.json     # Claude, ChatGPT, markdown or JSON chats
membase --local agent ingest trace.json --agent coder
membase --local agent search "fix flaky deploy" --agent coder

Without --local (or --store DIR, both before the command) commands use the hosted API; agent, import and serve need membase-ai[local].

MCP

MCP clients, hosted or local server, same tools

claude mcp add membase -- membase --local mcp                                   # local
claude mcp add --transport http membase https://api.app.membase.io/mcp-http \
  --header "Authorization: Bearer $MEMBASE_API_KEY"                             # hosted

Hosted without the header, the connection signs you in and is read-only. Setup for Claude, ChatGPT, Cursor, Codex and other clients: Connect your AI.

Docs

License

Copyright © 2026 Unibase. All rights reserved. Proprietary; see LICENSE. membase-ai[local] also installs membase-core, the compiled engine, under its own Unibase license.

Metadata

Release files for membase-ai 0.2.23

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

Source distribution (sdist)

Source distribution for membase-ai 0.2.23
File Size Uploaded
membase_ai-0.2.23.tar.gz 25.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for membase-ai 0.2.23
File Interpreter ABI Platform
membase_ai-0.2.23-py3-none-any.whl Python 3 none any Details

Total release size: 56.3 kB

Release files / membase_ai-0.2.23.tar.gz

Download URL membase_ai-0.2.23.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f36e3c41ade9c7321a6dd49eb2fe54bd63660727b94fc4e59b903c8fe42e2fca
BLAKE2b-256 checksum
How to use checksums
42017e56e99e0087c747f38ba719c14a7ec8cfc1c6e8d9ea32e215a6505c04ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / membase_ai-0.2.23-py3-none-any.whl

Download URL membase_ai-0.2.23-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1e9733cae4a263cb2ece0781cf5295bb064318dc02c012422c7fe8afc99c7af
BLAKE2b-256 checksum
How to use checksums
6d722b8a3bf4793f0c45f7432a632120e23e9f5d730c07ae8eeab170f0cc1883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12
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