Membase logo

Membase

Shared hosted or local memory for AI agents, exposed through MCP, SDKs, and a command-line interface.

Install Membase

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "membase-2": {
      "command": "uvx",
      "args": [
        "membase-ai"
      ],
      "env": {
        "MEMBASE_API_KEY": "YOUR_VALUE_HERE",
        "OPENAI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MEMBASE_API_KEY=YOUR_VALUE_HERE --env OPENAI_API_KEY=YOUR_VALUE_HERE --transport stdio membase-2 -- uvx membase-ai

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx membase-ai

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

membase MCP server connects AI clients to a shared Membase memory that can store facts, documents, media, profile information, and chat-derived knowledge. It supports hosted access through Membase accounts or local memory through the Python package, with MCP transports for local stdio and hosted HTTP connections. Agents can search memory, add information, ask questions, manage memory collections, and inspect available capabilities. Use it when several AI tools need to read and update the same user or project context.

Use cases

  • Share project facts across Claude Code, Cursor, and Codex
  • Search imported Claude or ChatGPT conversations
  • Store documents and retrieve them through MCP clients
  • Keep separate Memories for different projects
  • Run a local memory store for agent workflows

Key features

  • Hosted and local MCP operation
  • Fact, document, media, and profile memory
  • Cross-client search and question answering
  • Chat export import through the CLI
  • Memory access and write-target controls
  • Python, TypeScript, and CLI interfaces

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · membase-ai (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars144Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Membase works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Membase

membase is an MCP server that connects AI clients to hosted or local Membase memory. Its main tools cover adding and searching facts and documents, asking questions, managing Memories, handling profile facts, and inspecting access capabilities. It lets supported agents share the same user and project context.

Install the Python package or CLI, then register either the local command or hosted HTTP endpoint with your MCP client. Local Claude Code setup uses `claude mcp add membase -- membase --local mcp`; hosted access uses the Membase MCP HTTP URL and a bearer API key.

Yes, membase documents Cursor as a supported MCP client. Configure Cursor with the local stdio server or the hosted HTTP endpoint, depending on where the memory should live and whether the client should authenticate with a Membase API key.

Yes, local operation is available with `membase-ai[local]` and stores memory on the machine, using `~/.membase` by default. Local setup requires Python 3.12 or 3.13 and `OPENAI_API_KEY`; the MCP process can be started with `membase --local mcp`.

The documented clients include Claude, ChatGPT, Cursor, Codex, Gemini CLI, and Cline. Gemini CLI can install Membase as an extension, while Cline uses its MCP settings file; other MCP-compatible clients can use the local or hosted server transports.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMembase AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/membase-2?style=directory)](https://allmcps.com/mcp/membase-2)
HTML Embed
<a href="https://allmcps.com/mcp/membase-2"><img src="https://allmcps.com/api/badge/membase-2?style=directory" alt="Membase on AllMCPs" /></a>