Skip to main content Switch to mobile version membase-ai 0.4.4 Membase SDK: the memory layer for AI agents, hosted or on your machine. Python client, CLI and MCP server.
pip install membase-ai Copy PIP instructions
One memory. Every AI. Only yours. Teach it once. Every AI remembers.
Website · Docs · Web app · Discord · X
Membase is the memory layer for AI agents. It 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. Memories keep projects apart; search them, ask them 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
Recordings: Python SDK (57 s) · Claude Code (1 min 33 s). The answer above is illustrative.
93.1% on LoCoMo, 92.6% on LongMemEval_S and 92.2% on DMR, using about 3× fewer tokens than the full history on LoCoMo and 11× fewer on LongMemEval_S. Method and results: membase.com/research
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 pip install 'membase-ai[media]' # local + photos, videos and audio npm install @membaseai/membase # TypeScript · Node 18+ npm install -g @membaseai/membase-cli # the `membase` command (hosted) without Python from membase import Membase m = Membase() # hosted # m = Membase(local=True) # local, in ~/.membase m.memories.add("We picked Postgres for the ledger service.", wait=True) # a fact, learned m.search("what database is the ledger on?") # {"items": [...], "partial": [...]} m.add("Design notes …", custom_id="design-1") # a document m.profile_facts.list() # who the user is (Your profile ticked) m.capabilities() # what this key may do, and the rules A write is accepted at once and learned in the background, usually within a few seconds; search finds it once it is learned. wait=True on any add answers only then, with status succeeded, failed, or pending and a reason (credits_used_up when the account's AI credits are spent, which learns nothing until a plan, a model key or a connected Claude or ChatGPT account is added).
No call names a Memory: reads cover every Memory the key reaches, and writes land in its write target (a key that reaches several Memories and has none is refused with WriteTargetRequiredError). Ids are typed (mem_… a fact, doc_… a document, med_… a photo or video), lists are {items, has_more, partial}, and a removal without confirm=True raises ConfirmationRequiredError. Local memory answers the same routes with the same shapes.
Every method, its REST route and MCP tool, and the access it needs: SDK reference. Upgrading from 0.3: see the changelog. The Python package is membase-ai (import membase); membase on PyPI is unrelated.
membase --local add "We picked Postgres for the ledger" membase --local search "what did we pick for the ledger?" membase --local memories list 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 membase --local media add ~/Movies/trip.mp4 # shots, speech and speakers membase --local media search "someone skiing" # any language Without --local (or --store DIR, both before the command) commands use the hosted API; agent, import and serve need membase-ai[local], and media add and media ask (local only) need membase-ai[media]: see Media memory. A local store with several Memories writes where MEMBASE_WRITE_TARGET names.
claude mcp add membase -- membase --local mcp # local claude mcp add --transport http membase https://api.app.membase.com/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.
Gemini CLI, as an extension (it signs you in on first use; /mcp auth membase signs in again):
gemini extensions install https://github.com/membaseai/membase Cline: add the server to cline_mcp_settings.json; llms-install.md has the entry, with and without a developer key.
SDK reference: methods, REST routes, MCP tools, access levels
Memory operations: Memories, facts, documents, media, profile, ask
Authentication: keys and what each one can reach
Connect your AI: per-client MCP setup
Agent framework integrations: LangChain, Microsoft Agent Framework, Dify, Hermes Agent, OpenClaw and Strands Agents
Local engine: what it stores, membase serve, settings
MIT; see LICENSE. membase-ai[local] also installs membase-core, the compiled engine, under its own proprietary license (Membase Core License).
Both files in this release have provenance metadata.
agent-memory agents ai llm llm-memory long-term-memory mcp membase memory
License OSI Approved :: MIT License
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Release files for membase-ai 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 85.9 kB
Release files / membase_ai-0.4.4.tar.gz
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Release files / membase_ai-0.4.4-py3-none-any.whl
Security for membase-ai 0.4.4
Both files in this release have been uploaded with provenance metadata.
With provenance membase_ai-0.4.4.tar.gz Dec 2, 2026
With provenance membase_ai-0.4.4-py3-none-any.whl Dec 2, 2026
Attestation for membase_ai-0.4.4.tar.gz
Attestation for membase_ai-0.4.4-py3-none-any.whl
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
Dec 2, 2026 2 release files Full provenance
Nov 30, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Oct 6, 2026 2 release files No provenance
Oct 5, 2026 2 release files No provenance
Oct 4, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




