# membase [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/membaseai/membase  
**GitHub Stars:** 144  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/membase-2

## Description
Memory layer for AI agents — SDKs, CLI and MCP server for Membase

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "membase": {
    "command": "uvx",
    "args": ["membase-ai"],
    "env": {
      "MEMBASE_API_KEY": "",
      "OPENAI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `MEMBASE_API_KEY`, `OPENAI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What membase does

Membase provides a shared memory layer for AI agents. The MCP server lets compatible clients read from and write to memory that can also be accessed through the Python SDK, TypeScript package, CLI, web app, and browser extension. Hosted memory lives in a Membase account; local memory can be kept on the machine with the local Python extra.

Supported content includes individual facts, documents, photos, videos, audio, profile facts, and imported Claude or ChatGPT conversations. Memories can separate projects or other contexts. Search spans the Memories reachable by the active key, while writes use the configured write target. A key that reaches multiple Memories without a selected write target cannot write.

## How it works

The server can run locally through the `membase --local mcp` command or be accessed through Membase's hosted MCP HTTP endpoint. Local and hosted operation expose the same general routes and response shapes. Hosted access uses an API key for authenticated operation; a hosted connection without the authorization header signs the user in and is read-only.

Membase assigns typed identifiers to stored items, including fact, document, and media identifiers. List responses contain items and pagination information, and may include partial results. Destructive operations require explicit confirmation. Local storage is available through `membase-ai[local]`, while media processing requires the media extra.

## Setup and configuration

For hosted Python-backed operation, install `membase-ai` with Python 3.10 or newer and provide `MEMBASE_API_KEY`. Local operation uses `membase-ai[local]`, supports Python 3.12 or 3.13, and requires `OPENAI_API_KEY`. The TypeScript package requires Node.js 18 or newer. The CLI is available from the `@membaseai/membase-cli` npm package or the Python package.

A local Claude Code connection can be registered with:

```bash
claude mcp add membase -- membase --local mcp
```

For hosted HTTP access, configure the endpoint at `https://api.app.membase.com/mcp-http` and pass the API key as a bearer token. Gemini CLI can install the repository as an extension, and Cline uses its MCP settings file. Client-specific setup is also available for Claude, Cursor, Codex, ChatGPT, and other MCP clients.

## Tools and capabilities

The MCP interface provides access to operations represented by the Membase SDK, including:

- Adding facts and documents to memory.
- Searching memories and asking questions about stored information.
- Listing and managing Memories.
- Reading and managing profile facts.
- Importing Claude, ChatGPT, Markdown, or JSON chat exports through the local CLI.
- Adding and searching media with the local media extra.
- Inspecting the capabilities and access rules associated with an API key.
- Removing stored information with confirmation.

The same memory can be written by one client and read by another, provided both credentials can reach the relevant Memory. Agent-specific ingest and search are available through the local CLI for supported workflows.

## Limitations and notes

Hosted and local modes have different requirements and storage locations. Local memory is stored under `~/.membase` by default, while hosted data belongs to the connected Membase account. Some CLI commands, including agent and import operations, require the local extra; media commands require the media extra and are local-only.

Access depends on the API key and its reachable Memories. Writes may be rejected when several Memories are accessible but no write target is selected. Removing data requires `confirm=True` in SDK-style calls. The main repository is MIT licensed, but the compiled `membase-core` dependency installed for local use has its own proprietary Membase Core License.

_Full upstream README: https://allmcps.com/mcp/membase-2/readme_

