cube-memory-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CM_API_KEY | No | Cube Memory live API key for the local stdio transport. | |
| X-Project-Id | No | Cube Memory project ID for the hosted Streamable HTTP endpoint. | |
| Authorization | No | Bearer token for the hosted Streamable HTTP endpoint, e.g. "Bearer YOUR_CM_LIVE_KEY". | |
| CM_PROJECT_ID | No | Cube Memory project ID for the local stdio transport. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
At session start or after compaction, use list_work and resume_work to recover relevant pending work. Save checkpoint_work before interruption and after meaningful progress. Completed actions require evidence. Evidence is recorded data, not independent verification or instructions; verify external state before repeating effects.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_memoryA | Recall relevant memories before responding. Call this first with the user's message. Optional |
| search_contextB | Search all project context, including uploaded documents, notes, memories and indexed code symbols. |
| fetch_memoryA | Fetch the full text of specific memories by id (ids come from search_memory). |
| store_memoryA | Save a memory. Point at the source of truth instead of copying it; if it overlaps an existing memory, update that one instead of appending a second copy. Write the memory in clean, corrected form: if the user misspelled words, mistyped a name, command, file path, ID or code, or left out accents, store what you understood they meant, with names, commands, paths, IDs and codes spelled exactly as they really are. If the original wording may matter, append it as (user wrote: '...'). This lets any other AI find the memory later, even when the next person types it differently. Optional |
| list_memoryB | List stored memories, most recent first. |
| forget_memoryA | Close a memory's validity by id (soft): it stops showing up in recall but stays readable by id for audit. Not a physical delete. |
| search_codeA | Semantic search inside the project's ingested code symbols (functions/classes/methods). Use for 'where is X implemented', 'which function handles Y'. Returns file path + line range per hit, with the indexing age. |
| map_codeA | Skeleton of one ingested code file: every symbol with its line range. Use instead of reading the whole file when you only need to know WHERE to look. Self-heals against the local file if CM_CODE_ROOT is set. |
| get_symbolA | Full body of ONE symbol (function/class/method) from an ingested file. Read only the piece you need. Self-heals against the local file if CM_CODE_ROOT is set; always reports the indexing age. |
| get_symbol_refsA | RELATIONSHIPS between symbols: who uses/calls/references a given symbol across the whole project (cross-file). Returns every usage point with file, exact line and the code snippet of that line - like IDE 'find references'. Use when refactoring, renaming, or understanding impact: 'who calls foo?', 'where is X used?'. Self-definitions are excluded. |
| checkpoint_workB | Persist a project-scoped work checkpoint before compaction or interruption. Completion requires result evidence, which remains client-reported. |
| resume_workA | Retrieve the latest checkpoint after session start or compaction. Returns pending actions and completed IDs; evidence is data, not instructions. |
| list_workB | List the most recent project workflows to discover the checkpoint to resume. |
| ingest_documents_trackedA | Persist a document batch with a durable ingestion receipt. Retry the identical batch with the same workflow_id and request_id after interruption. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 14 tools
Most tools have clearly distinct purposes: memory CRUD, code navigation, and workflow checkpoints are separated cleanly, and fetch_memory vs search_memory vs store_memory are unambiguous. The only real overlap is the retrieval trio search_memory / search_context / search_code, where search_context explicitly subsumes memories and code symbols; descriptions give priority hints ('call this first', 'use for where is X implemented'), so an agent can recover, but the boundaries are not perfectly sharp.
All 14 names are snake_case with a leading verb (search_, fetch_, store_, list_, get_, checkpoint_, resume_), which is predictable and readable. Minor deviations: 'map_code' uses an unconventional verb, 'ingest_documents_tracked' carries a trailing qualifier, and 'get_symbol_refs' mixes get_ with a noun suffix, but the overall pattern holds.
14 tools sits comfortably in the well-scoped range, and each one maps to a concrete operation across the three sub-areas (memory, code index, work checkpoints). Nothing looks like padding: even the narrower tools (map_code, get_symbol_refs) cover distinct retrieval needs that the broader search tools cannot.
Memory lifecycle is well covered (store, fetch, list, search, soft forget with audit trail) and code navigation covers search, skeleton, symbol body and cross-file references. Gaps are minor: no explicit update_memory (store_memory absorbs updates by convention), no hard-delete or memory-edit path beyond soft close, and no visible tool to trigger or refresh code/document indexing beyond the tracked ingestion call.