Skip to main content
Membase connects to AI agents via the Model Context Protocol (MCP), providing a standard 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_current_dateGet current date and time in a timezoneAgent calls before date-filtered memory search
Resourcemembase://profileRead-only user settings profileAgent reads when stable profile context matters
Resourcemembase://recentRead-only recent memory timelineAgent reads for latest updates and recency checks
PromptstartGuidance for memory workflow and safetyAgent can load 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-30)NoMax results to return (default: 20)
limitinteger (1-30)NoMax results to return (default: 20)
offsetintegerNoPagination offset (default: 0)
date_fromISO date/datetime stringNoInclusive lower bound for date filtering
date_toISO date/datetime stringNoInclusive upper bound for date filtering
timezoneIANA timezone stringNoDate-only parsing timezone, for example America/Los_Angeles
sourcesarray of stringsNoFilter by source (e.g. ["slack", "gmail", "google-calendar"]). If omitted, all sources are searched.
Each result includes a relevance score (0–1) indicating how closely it matches the query.
Returns the current UTC timestamp. This helps agents resolve ambiguous expressions such as “today”, “this weekend”, or “next week” before building date filters.This tool takes no input parameters.

Resources

MCP resources provide read-only data that agents can pull into their context:
ResourceURIDescription
User Profilemembase://profileUser settings payload (display_name, role, interests, instructions, timezone)
Recent Memoriesmembase://recentTop 10 recent memories sorted by captured_at (created_at) descending, with event_at (valid_at) when available
Membase MCP resources in Claude

Prompts

MCP prompts inject pre-built instructions and context into the agent’s system prompt:
PromptDescription
startTeaches the agent when to use search_memory, when to use resources, when to save memory, and what to avoid storing.
The start prompt can be used at session start to provide:
  1. Workflow guidance for memory retrieval and memory write behavior
  2. Safety guidance for secrets and transient information
  3. Resource usage guidance for profile versus recent timeline reads
Use these patterns for best results:
  1. For personal recall questions, call search_memory first.
  2. For stable user profile context, read membase://profile.
  3. For latest updates or “what changed” questions, read membase://recent.
  4. For date-filtered searches, call get_current_date and then pass explicit date filters to search_memory.
  5. Save durable user context with add_memory, and skip secrets or one-off transient data unless explicitly requested.

Connection Setup

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

Cursor

One-click install

Claude Desktop

CLI command

ChatGPT

Manual config

Next Steps

Dashboard

Explore and manage memories visually.

Memory Management

Learn how memories are created and updated.