Skip to main content
Membase connects to AI agents via the Model Context Protocol (MCP), providing a standardized way for agents to store, search, and retrieve memories.

At a Glance

TypeNameWhat it doesWho uses it
Tooladd_memorySave context to long-term memoryAgent calls automatically when it learns something worth remembering
Toolsearch_memorySearch past memories by meaningAgent calls when past context would help its response
Toolget_about_meGet a broad overview of the userAgent calls at the start of a session
ResourceUser ProfileRead-only user profile from memoriesAgent reads to understand who you are
ResourceRecent MemoriesRead-only list of recent memoriesAgent reads to see latest context
PromptcontextInstructions + recent memories injected into system contextLoaded automatically at session start
You don’t need to call any of these yourself. Your agent handles everything automatically based on the conversation.

MCP Server

Membase runs a remote MCP server accessible at:
https://mcp.membase.so/mcp
PropertyValue
TransportStreamable HTTP
AuthenticationOAuth (browser-based)
Packagemembase (npm)
The npx -y membase@latest --client <client> CLI command handles registration and auth automatically for supported clients. See the Agents guide for per-client setup.

Tools

Membase exposes 3 tools that agents can call during conversations:
Stores long-term memory that persists across sessions. Agents use this proactively when the user shares durable context worth remembering: preferences, recurring habits, ongoing projects, goals, constraints, etc. Transient one-off information is skipped unless the user explicitly asks to save it.
ParameterTypeRequiredDescription
contentstring (max 50,000 chars)YesThe memory content to store
metadataobjectNoOptional metadata for categorization (e.g., tags, source)
Searches stored memories by semantic similarity. Agents use this when the user asks to recall something from a previous session, or proactively when past context would improve their response. Results are returned as episode-centric bundles with related context.
ParameterTypeRequiredDescription
querystring (max 1,000 chars)YesNatural-language search query. Use empty string to fetch recent memories.
limitinteger (1-100)NoMax results to return (default: 10)
offsetintegerNoPagination offset (default: 0)
Retrieves the user’s profile and related memories as an overview. Typically used at the start of a new session to give the agent a broad understanding of who the user is. For targeted lookups, agents use search_memory instead.No parameters.

Resources

MCP resources provide read-only data that agents can pull into their context:
ResourceURIDescription
User Profilemembase://profileYour recent memories formatted as a user profile overview
Recent Memoriesmembase://recentThe 10 most recently created or updated memories with details
Membase MCP resources in Claude

Prompts

MCP prompts inject pre-built instructions and context into the agent’s system prompt:
PromptDescription
contextTeaches the agent how to use Membase (when to save, what to save, what to skip) and includes your recent memories so the agent has immediate context about you.
The context prompt is loaded at the start of a session and gives the agent two things:
  1. Instructions on when to proactively call add_memory (preferences, goals, projects, constraints) and what to avoid (transient info, secrets)
  2. Your recent memories so the agent already knows about you before you say anything

How It All Works Together

When a connected agent starts a conversation:
  1. The context prompt gives the agent background about the user and instructions on when to save memories
  2. The agent uses search_memory to find relevant past context for the current topic
  3. As the conversation progresses, the agent proactively calls add_memory when it learns something durable about the user
  4. All saved memories become instantly available to every connected agent

Connection Setup

For detailed setup instructions for each agent, see the Agents guide.

Next Steps