Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level (DEBUG, INFO, WARNING, ERROR)WARNING
MCP_EMBEDDING_MODELNoEmbedding model nameall-MiniLM-L6-v2
MCP_MEMORY_BASE_DIRNoBase directory for data storage/app/data
MCP_MEMORY_SQLITE_PATHNoPath to the SQLite database file/app/data/memory.db
MCP_MEMORY_BACKUPS_PATHNoDirectory for backups/app/data/backups
MCP_MEMORY_STORAGE_BACKENDNoStorage backend: sqlite_vec (local), cloudflare, hybrid or milvussqlite_vec

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{
  "hardware_info": {
    "cpu_count": 8,
    "memory_gb": 22.91,
    "accelerator": "cpu",
    "architecture": "x86_64"
  }
}

Tools

Functions exposed to the LLM to take actions

NameDescription
memory_storeA

Store one new memory (a fact, decision, note) with optional tags.

Use this for a single piece of information you already have as text. For a whole multi-turn conversation use memory_store_session, for files on disk memory_ingest, and for the structured summary at the end of a session memory_commit_session.

                Accepts two tag formats in metadata:
                - Array: ["tag1", "tag2"]
                - String: "tag1,tag2"

                Use `conversation_id` to bypass semantic deduplication when saving
                incremental memories from the same conversation.

               Examples:
                # Using array format:
                {
                    "content": "Memory content",
                    "metadata": {
                        "tags": ["important", "reference"],
                        "type": "note"
                    }
                }

                # Using string format(preferred):
                {
                    "content": "Memory content",
                    "metadata": {
                        "tags": "important,reference",
                        "type": "note"
                    }
                }

                # Using conversation_id to save incremental notes:
                {
                    "content": "User prefers dark mode",
                    "conversation_id": "conv_abc123",
                    "metadata": {
                        "tags": "preference,ui"
                    }
                }
memory_store_sessionA

Store a full conversation session as a single memory unit.

This keeps the raw turns. To record what was learned in a session (decisions, errors, corrections) use memory_commit_session instead.

Use this instead of memory_store when you want to preserve the full context of a multi-turn conversation. All turns are stored together, making session-level retrieval more reliable than storing individual turns separately.

Example: { "turns": [ {"role": "user", "content": "How do I configure Redis?"}, {"role": "assistant", "content": "Set REDIS_URL in your .env file..."} ], "session_id": "optional-stable-id", "tags": "redis,configuration" }

memory_searchA

Search memories with flexible modes and filters. Primary tool for finding stored information.

Start here for any question about stored content. Use memory_list to browse or page without a query, memory_explore for an entity-level overview of a topic, and memory_graph to follow associations from a memory you already have the hash of.

USE THIS WHEN:

  • User asks "what do you remember about X", "recall", "find memories"

  • Looking for past decisions, preferences, context from previous sessions

  • Need semantic, exact, or time-based search

  • User references "last time we discussed", "you should know"

HASH LOOKUP:

  • Provide content_hash instead of query to retrieve one memory by its exact identifier

  • Hash misses return no results; they do not fall back to semantic search

  • query and content_hash are mutually exclusive; store scoping applies to both

  • Only store, entity, limit, max_response_chars, and include_beliefs may accompany content_hash

MODES:

  • semantic (default): Finds conceptually similar content even if exact words differ

  • exact: Finds memories containing the exact query string

  • hybrid: Combines semantic similarity with quality scoring

TIME FILTERS (can combine with other filters):

  • time_expr: Natural language like "yesterday", "last week", "2 days ago", "last month"

  • after/before: Explicit ISO dates (YYYY-MM-DD)

QUALITY BOOST (for semantic/hybrid modes):

  • 0.0 = pure semantic ranking (default)

  • 0.3 = 30% quality weight, 70% semantic (recommended for important lookups)

  • 1.0 = pure quality ranking

TAG FILTER:

  • Filter results to only memories with specific tags

  • Useful for categorical searches ("find all 'reference' memories about databases")

DEBUG:

  • include_debug=true adds timing, embedding info, filter details

SUMMARIZATION (opt-in):

  • summarize=true returns a query-aware LLM summary with validated source hashes

  • Requires a query and the existing HARVEST_LLM_PROVIDERS/GROQ_API_KEY configuration

  • Bounds model input at whole-memory boundaries; original memories remain stored

  • Returns raw results with a warning if summarization or source validation fails

Examples: {"query": "python async patterns"} {"content_hash": "aa6caea3d060e736c8b412e6b34a1354148ec04527a4bf547cfd4185140573d0"} {"query": "API endpoint", "mode": "exact"} {"time_expr": "last week", "limit": 20} {"query": "database config", "time_expr": "yesterday"} {"query": "architecture decisions", "tags": ["important"], "quality_boost": 0.3} {"after": "2024-01-01", "before": "2024-06-30", "limit": 50} {"query": "error handling", "include_debug": true} {"query": "replication consistency issue", "summarize": true}

memory_listA

List and browse memories with pagination and optional filters.

USE THIS WHEN:

  • User wants to browse all memories ("show me my memories", "list everything")

  • Need to paginate through large result sets

  • Filter by tag OR memory type for categorical browsing

  • User asks "what do I have stored", "browse my memories"

Unlike memory_search (semantic search), this does categorical listing/filtering.

PAGINATION:

  • page: 1-based page number (default: 1)

  • page_size: Results per page (default: 20, max: 100)

FILTERS (combine with AND logic):

  • tags: Filter to memories with matching tags

  • tag_match: "any" (OR, default) or "all" (AND) — controls how multiple tags are matched

  • memory_type: Filter by type (note, reference, decision, etc.)

  • stale_days: Filter to memories not accessed in the last N days

Examples: {} // List first 20 memories {"page": 2, "page_size": 50} {"tags": ["python", "reference"]} {"tags": ["python", "reference"], "tag_match": "all"} {"memory_type": "decision", "page_size": 10} {"tags": ["important"], "memory_type": "note"} {"stale_days": 30} // Memories not accessed in 30 days {"stale_days": 7, "tags": ["archived"]} // Stale archived memories

memory_deleteA

Delete memories with flexible filtering. Combine filters for precise targeting.

USE THIS WHEN:

  • User says "delete", "remove", "forget" specific memories

  • Need to clean up by tag, time range, or specific hash

  • Bulk deletion with safety preview (dry_run=true)

FILTER COMBINATIONS (AND logic when multiple specified):

  • content_hash only: Delete single memory by hash

  • tags only: Delete memories with matching tags

  • before/after: Delete memories in time range

  • tags + time: Delete tagged memories within time range

SAFETY FEATURES:

  • dry_run=true: Preview what will be deleted without deleting

  • Returns deleted_hashes for audit trail

  • No filters = error (prevents accidental mass deletion)

Examples: {"content_hash": "abc123def456"} {"tags": ["temporary", "draft"], "tag_match": "any"} {"tags": ["archived", "old"], "tag_match": "all"} {"before": "2024-01-01"} {"after": "2024-06-01", "before": "2024-12-31"} {"tags": ["cleanup"], "before": "2024-01-01", "dry_run": true}

memory_cleanupC

Find and remove duplicate entries

memory_healthC

Check database health and get statistics

memory_statsA

Get MCP server global cache statistics for performance monitoring.

                Returns detailed metrics about storage and memory service caching,
                including hit rates, initialization times, and cache sizes.

                This tool is useful for:
                - Monitoring cache effectiveness
                - Debugging performance issues
                - Verifying cache persistence across MCP tool calls

                Returns cache statistics including total calls, hit rate percentage,
                storage/service cache metrics, performance metrics, and backend info.
memory_updateA

Update memory metadata without recreating the entire memory entry.

                This provides efficient metadata updates while preserving the original
                memory content, embeddings, and optionally timestamps.
                
                Examples:
                # Add tags to a memory
                {
                    "content_hash": "abc123...",
                    "updates": {
                        "tags": ["important", "reference", "new-tag"]
                    }
                }
                
                # Update memory type and custom metadata
                {
                    "content_hash": "abc123...",
                    "updates": {
                        "memory_type": "reminder",
                        "metadata": {
                            "priority": "high",
                            "due_date": "2024-01-15"
                        }
                    }
                }
                
                # Update custom fields directly
                {
                    "content_hash": "abc123...",
                    "updates": {
                        "priority": "urgent",
                        "status": "active"
                    }
                }

                # Create a new version with updated content (sqlite_vec and milvus)
                {
                    "content_hash": "abc123...",
                    "updates": {
                        "content": "Corrected memory content",
                        "reason": "Fix outdated command"
                    },
                    "versioned": true
                }
memory_consolidateB

Memory consolidation management - run, monitor, and control memory optimization.

USE THIS WHEN:

  • User asks about memory optimization, cleanup, or consolidation

  • Need to check consolidation system health

  • Want to manually trigger or schedule consolidation

  • Need to pause/resume consolidation jobs

ACTIONS:

  • run: Execute consolidation for a time horizon (requires time_horizon) Performs dream-inspired memory consolidation: • Exponential decay scoring • Creative association discovery • Semantic clustering and compression • Controlled forgetting with archival

  • status: Get consolidation system health and statistics

  • recommend: Get optimization recommendations for a time horizon (requires time_horizon) Analyzes memory state and suggests whether consolidation is needed

  • scheduler: View all scheduled consolidation jobs Shows next run times and execution statistics

  • pause: Pause consolidation (all or specific horizon) Temporarily stops automatic consolidation jobs

  • resume: Resume paused consolidation Re-enables previously paused consolidation jobs

  • merge: Combine multiple existing memories into one consolidated entry (requires content_hashes and merged_content) Verifies all source memories exist, stores the merged content, deletes originals

TIME HORIZONS:

  • daily: Consolidate last 24 hours

  • weekly: Consolidate last 7 days

  • monthly: Consolidate last 30 days

  • quarterly: Consolidate last 90 days

  • yearly: Consolidate last 365 days

Examples: {"action": "status"} {"action": "run", "time_horizon": "weekly"} {"action": "run", "time_horizon": "daily", "immediate": true} {"action": "recommend", "time_horizon": "monthly"} {"action": "scheduler"} {"action": "pause"} {"action": "pause", "time_horizon": "daily"} {"action": "resume", "time_horizon": "weekly"} {"action": "merge", "content_hashes": ["hash1", "hash2"], "merged_content": "Consolidated text"} {"action": "merge", "content_hashes": ["hash1", "hash2"], "merged_content": "text", "tags": ["important"], "memory_type": "note"}

memory_ingestA

Ingest documents or directories into memory database.

Reads files from disk and stores them as chunks. For text you already hold in the conversation use memory_store; for Claude Code session transcripts use memory_harvest.

USE THIS WHEN:

  • User wants to import a document (PDF, TXT, MD, JSON)

  • Need to batch import a directory of documents

  • Building knowledge base from existing files

SUPPORTED FORMATS:

  • PDF files (.pdf)

  • Text files (.txt, .md, .markdown, .rst)

  • JSON files (.json)

MODE:

  • file: Ingest single document (requires file_path)

  • directory: Batch ingest all documents in directory (requires directory_path)

CHUNKING:

  • Documents are split into chunks for better retrieval

  • chunk_size: Target characters per chunk (default: 1000)

  • chunk_overlap: Overlap between chunks (default: 200)

Examples: {"file_path": "/path/to/document.pdf"} {"file_path": "/path/to/notes.md", "tags": ["documentation"]} {"directory_path": "/path/to/docs", "recursive": true} {"directory_path": "/path/to/project", "file_extensions": ["md", "txt"], "tags": ["project-docs"]}

memory_harvestA

Extract learnings from Claude Code session transcripts.

The server reads the transcript files itself and picks the candidates. If you can summarise the session yourself, call memory_commit_session instead; use this as the fallback, or to mine past sessions. For other documents use memory_ingest.

USE THIS WHEN:

  • End of session — auto-capture decisions, bugs, conventions, learnings

  • User asks to "harvest" or "extract learnings" from sessions

  • Building knowledge base from past sessions

MODES:

  • dry_run=true (DEFAULT): Preview candidates without storing

  • dry_run=false: Store candidates as tagged memories

MEMORY TYPES EXTRACTED:

  • decision: Architectural choices, tool selections

  • bug: Issues encountered and root causes

  • convention: Patterns/rules established

  • learning: Insights, mistakes learned from

  • context: Session state for continuity

LLM CLASSIFICATION (Phase 2):

  • use_llm=true: Validate candidates with Groq LLM (higher precision, ~$0.001/candidate)

  • Filters conversation fragments, deduplicates, refines content

  • Requires GROQ_API_KEY environment variable

Examples: {"sessions": 1, "dry_run": true} {"sessions": 3, "types": ["decision", "bug"]} {"session_ids": ["abc123"], "dry_run": false} {"min_confidence": 0.7, "sessions": 1} {"sessions": 1, "use_llm": true, "dry_run": true}

memory_qualityA

Memory quality management - rate, inspect, and analyze.

ACTIONS:

  • rate: Manually rate a memory's quality (thumbs up/down)

  • get: Get quality metrics for a specific memory

  • analyze: Analyze quality distribution across all memories

  • maintain: Run maintenance cycle (cleanup + conflicts + stale + quality)

  • maintain_status: Get stats from last maintenance run

  • rebuild_entities: Rebuild has_entity and shares_entity for ALL live memories using current extraction settings. Preview by default (dry_run=true); back up first and pause other writers before dry_run=false. Requires a graph backend.

Examples: {"action": "rate", "content_hash": "abc123", "rating": 1, "feedback": "Very useful"} {"action": "get", "content_hash": "abc123"} {"action": "analyze"} {"action": "analyze", "min_quality": 0.5, "max_quality": 1.0} {"action": "maintain"} {"action": "maintain", "dry_run": false} {"action": "maintain_status"} {"action": "rebuild_entities"} {"action": "rebuild_entities", "dry_run": false}

memory_graphA

Memory association graph operations - explore connections between memories.

Works on relationships, starting from a memory hash or an entity name. To find memories by content use memory_search; for a topic overview built from entities use memory_explore, then memory_detail for one entity.

ACTIONS:

  • connected: Find memories connected via associations (BFS traversal)

  • path: Find shortest path between two memories

  • subgraph: Get graph structure around a memory for visualization

  • extract_entities: Manually extract and store entities for a memory (write). Params: hash (string)

  • infer: Find transitive relationships (A→B→C implies A→C). Params: rel_type (string), max_hops (int, default 2)

  • suggest: Suggest potential relationships for a memory based on shared neighbors. Params: hash (string)

  • abduct: Find plausible common-cause explanations for a memory's relationships. Params: hash (string)

  • list_entities: List known entities. Params: limit (int, default 50)

  • entity_profile: Show memories linked to one entity. Params: entity_name (string)

Examples: {"action": "connected", "hash": "abc123", "max_hops": 2} {"action": "path", "hash1": "abc123", "hash2": "def456", "max_depth": 5} {"action": "subgraph", "hash": "abc123", "radius": 2} {"action": "infer", "rel_type": "causes", "max_hops": 2} {"action": "suggest", "hash": "abc123"}

memory_conflictsA

List unresolved memory conflicts (contradictory memories detected by similarity analysis)

memory_resolveC

Resolve a memory conflict by choosing a winner

mistake_note_addA

Record a mistake pattern for error replay. Tracks what went wrong and the correct action. Auto-increments failure_count for repeated patterns.

mistake_note_searchA

Search mistake notes by semantic similarity. Use before starting a task to check for known pitfalls and past errors.

mistake_note_updateA

Update fields of an existing mistake note. Can update failure_count, error_pattern, context_signature, incorrect_action, or correct_action. Content changes create a new hash (delete + re-store).

mistake_note_deleteA

Delete a mistake note by content hash. Only deletes memories with memory_type='mistake'.

memory_quarantine_listB

List memories that have been quarantined due to contradicting active beliefs. Use to review flagged memories.

memory_quarantine_releaseA

Release a memory from quarantine. Use when a quarantined memory is valid (e.g., the contradicted belief was wrong).

memory_commit_sessionA

Record end-of-session learnings from an ephemeral agent. Stores decisions, errors, corrections as structured observations.

Call this once when a session ends, with your own summary of it. The server then runs its learning pipeline in the background, and memory_bootstrap_profile serves the result to later sessions. Use memory_store_session to keep the raw conversation turns, and memory_harvest when the server should extract learnings from transcript files itself.

memory_bootstrap_profileA

Generate a behavioral bootstrap profile for an ephemeral agent. Requires write scope because it resets session counters when a fresh start is due. For a read-only profile, read memory://agent/{agent_id}/bootstrap instead.

memory_onboarding_guideC

Get integration guide for a specific client type.

memory_distillA

Extract insights from existing memories via LLM rewriter (batch mode).

Maintenance tool: it rewrites memories that are already stored and takes no new content from you. The server also runs it on a schedule. To add information use memory_store or memory_commit_session. dry_run defaults to true.

memory_exploreA

Explore a knowledge map of entities, with query-scoped chunks per entity (LLM-free).

REQUIRES A POPULATED ENTITY GRAPH — returns {"entities": [], "count": 0} otherwise, for every query. Check with memory_graph {"action": "list_entities"}; populate with memory_quality {"action": "maintain", "dry_run": false} (dry_run defaults to true and stores nothing). Unavailable on the Cloudflare backend. Guide: docs/guides/token-efficient-retrieval.md

USE THIS WHEN:

  • User wants a high-level overview ("what do I know about X", "map out", "explore")

  • Need entities + their relationships rather than raw memory chunks

  • Building a knowledge graph view or entity dashboard

Returns a list of entities. Per entity:

  • entity_id: canonical slug (NFKD-normalized, hash fallback for non-Latin scripts)

  • name, entity_type

  • summary: extractive (LLM-free) summary from top chunks

  • relation_count: number of graph relationships

  • top_chunks: most relevant memory chunks for the entity

Read-only. Composes with store for multi-store scoping.

Examples: {"query": "authentication design"} {"query": "python", "max_entities": 5, "chunks_per_entity": 2} {"query": "database", "tags": ["reference"], "min_score": 0.3}

memory_detailA

Get the full ranked detail for a single entity.

Takes an entity_id from memory_explore. For one memory by its content hash use memory_search with content_hash.

USE THIS WHEN:

  • User drills into one entity from a knowledge map ("tell me more about X")

  • Need the full ranked list of chunks for an entity plus its related entities

Returns:

  • entity_id, name

  • chunks: ranked memory chunks (relevance now; composite_score + score_components once #55 lands)

  • related_entities: neighbouring entities (gated by include_related / max_hops)

Read-only.

Examples: {"entity_id": "authentication-design"} {"entity_id": "python", "limit": 20, "include_related": false} {"entity_id": "database", "max_hops": 2}

Prompts

Interactive templates invoked by user choice

NameDescription
memory_reviewReview and organize memories from a specific time period
memory_analysisAnalyze patterns and themes in stored memories
knowledge_exportExport memories in a specific format
memory_cleanupIdentify and remove duplicate or outdated memories
learning_sessionStore structured learning notes from a study session

Resources

Contextual data attached and managed by the client

NameDescription
Memory StatisticsCurrent memory database statistics
Available TagsList of all tags used in memories
Recent Memories10 most recent memories
Client Onboarding GuideIntegration guide — how to use this memory server optimally
Agent Bootstrap ProfileConfidence-weighted behavioral profile for agent startup injection

TDQS

A3.5/5.0

Scored across 28 tools

Disambiguation3/5

Descriptions do heavy cross-referencing ("use memory_store_session instead", "use memory_search for content"), which rescues most pairs, but the write path has five entry points (memory_store, memory_store_session, memory_commit_session, memory_ingest, memory_harvest) and the maintenance path has at least four overlapping ones (memory_consolidate, memory_cleanup, memory_distill, memory_quality action=maintain, plus memory_conflicts/memory_resolve). memory_health vs memory_stats and memory_cleanup vs memory_quality's maintain action are genuinely easy to misselect.

Naming Consistency4/5

Nearly everything is snake_case with a memory_ prefix, and the mistake_note_* family uses the same noun_verb ordering. Two sub-conventions coexist but are readable: action verbs (memory_store, memory_search, memory_delete) and resource-named multi-action dispatchers (memory_consolidate, memory_quality, memory_graph). Minor wrinkle is that some dispatcher names also sound like single verbs (memory_distill, memory_explore).

Tool Count3/5

28 tools exceeds the comfortable range, though several (memory_consolidate, memory_quality, memory_graph) are action multiplexers that would otherwise be 5-9 separate tools, so the raw count overstates the surface. Still, specialty families like mistake_note_* and memory_quarantine_* each consume 4 and 2 slots for fairly narrow features, making the set heavier than the core memory domain requires.

Completeness4/5

The lifecycle is well covered: create (store/session/ingest/harvest), read (search/list/explore/detail/graph), update (memory_update, mistake_note_update), delete (memory_delete, mistake_note_delete), plus maintenance, conflict resolution, quarantine, health, and onboarding. Gaps are minor — no explicit export/backup, no tag-management tool, and beliefs are only exposed via include_beliefs in search rather than as first-class operations.

Maintenance

ActivityActive
ResponsivenessUsually handled