Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEMORY_MCP_DB_PATHNoSQLite database location~/.memory-mcp/memory.db
MEMORY_MCP_MAX_TAGSNoMax tags per memory20
MEMORY_MCP_DEMOTION_DAYSNoDays without access before demotion14
MEMORY_MCP_EMBEDDING_DIMNoEmbedding vector dimension (must match model)384
MEMORY_MCP_MINING_ENABLEDNoEnable pattern miningtrue
MEMORY_MCP_EMBEDDING_MODELNoSentence transformer modelsentence-transformers/all-MiniLM-L6-v2
MEMORY_MCP_MAX_RECALL_LIMITNoMax results per recall query100
MEMORY_MCP_LOG_RETENTION_DAYSNoDays to retain output logs7
MEMORY_MCP_MAX_CONTENT_LENGTHNoMax characters per memory/log100000
MEMORY_MCP_HOT_CACHE_MAX_ITEMSNoMaximum items in hot cache20
MEMORY_MCP_PROMOTION_THRESHOLDNoAccess count for auto-promotion3
MEMORY_MCP_DEFAULT_RECALL_LIMITNoDefault results per recall5
MEMORY_MCP_HIGH_CONFIDENCE_THRESHOLDNoThreshold for high confidence0.85
MEMORY_MCP_DEFAULT_CONFIDENCE_THRESHOLDNoMinimum similarity for results0.7

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": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
rememberC

Store a new memory. Returns the memory ID.

recallA

Semantic search with confidence gating and composite ranking.

Modes:

  • 'precision': High threshold (0.8), few results (3), prioritizes similarity

  • 'balanced': Default settings, good for general use

  • 'exploratory': Low threshold (0.5), more results (10), diverse ranking

Returns memories with confidence level and hallucination-prevention guidance.

forgetB

Delete a memory permanently.

list_memoriesC

List stored memories with pagination.

memory_statsC

Get memory statistics.

hot_cache_statusB

Show current hot cache contents, stats, and observability metrics.

Returns items sorted by hot_score (highest first), along with:

  • metrics.hits: Times hot cache resource was read with content

  • metrics.misses: Times hot cache resource was empty

  • metrics.evictions: Items removed to make space for new ones

  • metrics.promotions: Items added to hot cache

  • effectiveness: Value metrics (hit rate, tool calls saved, most/least used)

  • avg_hot_score: Average hot score of items (for LRU ranking)

promoteB

Manually promote a memory to hot cache for instant recall.

demoteA

Remove a memory from hot cache (keeps in cold storage).

pinA

Pin a hot cache memory to prevent auto-eviction.

Pinned memories stay in hot cache even when space is needed for new items. Only works on memories already in hot cache.

unpinA

Unpin a memory, making it eligible for auto-eviction from hot cache.

db_maintenanceB

Run database maintenance (vacuum, analyze, auto-demote stale).

Compacts the database to reclaim unused space, updates query planner statistics, and demotes stale hot memories (if auto_demote is enabled).

link_memoriesA

Create a typed relationship between two memories.

Use this to build a knowledge graph connecting related concepts. Relationships are directional: from_memory -[relation_type]-> to_memory.

Examples:

  • "Python 3.12 features" -[supersedes]-> "Python 3.11 features"

  • "Auth implementation" -[depends_on]-> "Database schema"

  • "API endpoint details" -[elaborates]-> "API overview"

  • "Project notes" -[mentions]-> "PostgreSQL" (entity extraction)

get_related_memoriesA

Get memories related to a given memory.

Returns related memories along with their relationship information. Use this to explore the knowledge graph around a specific concept.

mark_memory_usedA

Mark a memory as actually used/helpful after recall.

Call this when a recalled memory was useful in your response. Helps improve ranking by tracking which memories are valuable.

bootstrap_projectA

Bootstrap hot cache from project documentation files.

Scans for common project documentation files (README.md, CLAUDE.md, etc.), parses them into memories, and optionally promotes to hot cache.

This is ideal for quickly populating the hot cache when starting work on a new codebase.

Edge cases handled gracefully:

  • Empty repo: Returns success with files_found=0 and helpful message

  • No markdown files: Returns success with message

  • File read errors: Logged in errors list, continues with other files

  • Empty files: Skipped silently

  • Binary files: Skipped with warning

  • All content already exists: Returns memories_skipped count

end_sessionA

End a session and consolidate episodic memories.

Mirrors human memory consolidation: short-term (episodic) memories that prove valuable get promoted to long-term (semantic) storage.

Top episodic memories are selected by salience score (combining importance, trust, access count, and recency). Only memories above the threshold are promoted.

Use this at the end of a conversation to preserve valuable learnings.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
promoted_memories_resourceAll promoted memories (~20 items) - the backing store for hot cache. Disabled by default. The hot-cache resource (session-aware ~10 items) is the recommended injection. Enable this with MEMORY_MCP_PROMOTED_RESOURCE_ENABLED=true. Contains all frequently-used memories that have been auto-promoted based on access patterns or manually promoted. The hot-cache resource draws from this. If empty and documentation files exist, auto-bootstraps from README.md, CLAUDE.md, etc. Project-aware: If project awareness is enabled, filters to current project plus global memories.
hot_cache_resourceSession-aware active memory context - instant recall (0ms). The primary context injection. Provides a compact set (~10 items) of contextually relevant memories: 1. Recently recalled memories (that were actually used) 2. Predicted next memories (from access pattern learning) 3. Top items from promoted memories (to fill remaining slots) This is what "hot cache" means - instantly available, no tool call needed. Semantic clustering groups related items together. Logs injections for feedback loop analysis (7-day retention).
project_context_resourceProject-specific memory context for the current git repository. Returns: - Current project ID (from git remote URL) - Project-specific hot cache memories - Recent project activity Use this to understand what memories are associated with the current project.

TDQS

B3.4/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target distinct actions: remember/recall/forget cover core CRUD, while hot-cache operations (promote, demote, pin, unpin, hot_cache_status) form a coherent group. The subtle pairs (forget vs demote, promote vs pin) could be momentarily confused, but the descriptions clearly disambiguate permanent deletion, eviction eligibility, and eviction prevention.

Naming Consistency3/5

The set mixes bare verbs (remember, recall, forget, pin, unpin, promote, demote) with verb_noun patterns (list_memories, link_memories, get_related_memories, mark_memory_used, bootstrap_project, end_session) and pure noun forms (memory_stats, hot_cache_status, db_maintenance). It's readable and predictable-ish within sub-groups, but not a single consistent convention.

Tool Count4/5

16 tools is on the heavier side, but the surface is divided into legitimate subsystems (core memory, hot cache, knowledge graph, session consolidation, bootstrap, maintenance), each contributing distinct operations. Nothing feels obviously redundant, though trimming hot-cache bookkeeping could tighten it.

Completeness4/5

Coverage is broad: create/read/delete memories, semantic recall, graph linking and traversal, hot-cache lifecycle, statistics, maintenance, and session consolidation. The main gap is an explicit update/edit operation for memory content or importance, which agents must work around by forgetting and re-remembering.

Maintenance

ActivityNo data
ResponsivenessOutdated data