Skip to content

Claude Code

Membase in Claude Code: over MCP with consent, over MCP with a developer key, or as the skill alone.

Claude Code reads pages and runs commands, so it can take Membase three ways: over MCP with consent, over MCP with a developer key, or as the skill alone. Pick by what you want it to be able to do.

  • Claude Code 2.1.186 or later for claude mcp login; older versions authorize with /mcp inside a session.
  • For anything that writes, a developer key from Connect › Developer keys › Create key at Read & write or Full access.
Terminal window
claude mcp add --transport http --scope user membase https://api.app.membase.com/mcp-http
claude mcp login membase

--scope user makes the server available in every project. The browser opens Membase’s consent screen; tick the Memories Claude Code may use and, if it may read the profile, Profile access. Then ask “Which Membase memories can you use?” This connection is read-only.

No OAuth round-trip, and the key’s level applies, up to Full access:

Terminal window
claude mcp add --transport http --scope user membase https://api.app.membase.com/mcp-http \
--header "Authorization: Bearer ${MEMBASE_API_KEY}"

The token screen right after Connect › Developer keys › Create key writes this command with the key filled in, on its Claude Code tab. The key’s page later shows no snippets, and a key created from the Skills tab shows only the sentence below.

Or the skill alone, with no MCP server at all. Paste the sentence from Connect’s Skills tab:

Install Membase from https://app.membase.com/skill using key mbk_…

Claude Code fetches the skill folder into ~/.claude/skills/membase/, stores the key as MEMBASE_API_KEY in the env block of ~/.claude/settings.json, checks it with one call and reports which Memories it can use. If it already has the MCP tools it uses those and keeps the skill for its rules.

Over MCP, tools/list shows only what the credential holds. No tool takes a Memory: reads cover every Memory in reach, and a write lands in the one text Memory the key reaches.

Way in Tools
consent get_capabilities, search_memories, list_memories, get_memory, list_media, get_media, search_media; list_profile_facts when Profile access was ticked. Read-only
a Read key get_capabilities, search_memories, list_memories, get_memory, list_documents, get_document, list_media, get_media, search_media; list_profile_facts with Your profile ticked
a Read & write key plus add_memory, add_document; add_profile_fact with the profile tick
a Full access key plus forget_memory, delete_document, delete_media; forget_profile_fact with the profile tick; each only with confirm=true after you agreed

The skill alone gets the same operations over REST, at the key’s level.

With consent: the Memories ticked on the consent screen, switchable later under Uses on Claude Code’s page in Connect. With a key: the key’s reach, switchable on the key’s page or under Use in on the Memory. An empty memories list from get_capabilities means nothing is switched on yet.

claude mcp remove membase. Then Disconnect… on Claude Code’s page in Connect, or Revoke… the key: the client does not tell the server.

It says What it means Do
claude mcp list shows membase as needs authentication consent not completed claude mcp login membase, or /mcp in a session
Which memories can you use? answers none connected, no Memory switched on Uses on Claude Code’s page in Connect, or Use in on the Memory
the skill says it has no access no key, or the key reaches nothing Skills tab › Create key; or switch a Memory on for the key
a write comes back as a tool error, token missing required scope the connection is consent-minted (read-only), or the key is Read use a Read & write key
the first search takes a minute the memory was asleep nothing; the next one is quick
the model asks me to confirm a delete a Full access key called delete or forget without confirm=true and got its how sentence decide; only a Full access key can pass confirm=true