Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

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

agent-memory-mcp (v3.1) provides persistent per-project memory, centralized global knowledge graph (global.db), dead-end taxonomy, and machine-wide token budget guardrails.

  • Always pass an absolute workspace directory path as project_path (never "./").

  • Skip memory tool calls when no active project workspace is open.

  • check_memory_status hydrates status, core architecture index, dead-end warnings, and recent timeline in a single call.

  • Before modifying shared utilities or hooks, call get_file_memories for those paths.

  • Before retrying a compiler/test error, call check_dead_ends; record failed fixes via record_dead_end (error_loop or architectural).

  • Search cross-project patterns via search_global_knowledge, promote reusable solutions via promote_to_global.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_memory_statusB

Check if project memory is initialized and retrieve core architecture index, dead-end count, and recent session timeline in one call. Auto-migrates legacy .ag-memory.json if present.

get_session_timelineA

Retrieve a chronological feed of past work sessions, decisions, and architectural notes for this project workspace.

save_project_memoryA

Save a single memory note, session log, or atomic batch of foundational architecture nodes (via entries array). Automatically updates existing nodes matching slug or id, preserving revisions in SQLite.

search_project_memoryB

Full-text search across project titles, tags, summaries, anchored files, and active anti-loop dead-ends with contextual match snippets.

read_memory_nodeA

Read full markdown content of single or multiple memory nodes by id/slug (or global ID 'g-...'). Warns if referenced workspace files were modified on disk after memory was saved.

update_memory_nodeA

Update title, summary, tags, category, or files of an existing memory node. Automatically saves prior version to revisions history.

delete_memory_nodeA

Soft-archives a memory node (default, preserves history) or permanently deletes it along with its revisions.

record_dead_endA

Record a failed debugging attempt or intentional architectural constraint so future turns and sessions never repeat the same dead-end.

check_dead_endsA

Check the anti-loop dead-end registry by error text, keyword, or file path before attempting fixes.

get_file_memoriesB

Retrieve all architectural invariants, past gotchas, and dead-ends anchored to specific workspace file or directory paths.

save_global_knowledgeB

Save or update a cross-project architecture pattern or library quirk into the centralized ~/.ag-memory-mcp/global.db.

search_global_knowledgeA

Search machine-wide patterns, library quirks, and cross-project invariants in ~/.ag-memory-mcp/global.db using BM25 ranking.

promote_to_globalB

Promote a proven project-specific memory node to the machine-wide global knowledge graph in ~/.ag-memory-mcp/global.db.

reopen_dead_endB

Reopen a previously recorded dead-end when external constraints, dependencies, or requirements change.

get_token_metricsB

Query machine-wide token savings, budgeting statistics, and audit logs from ~/.ag-memory-mcp/global.db.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
projectsJSON registry of all workspaces managed by agent-memory-mcp v3.1

TDQS

A3.6/5.0

Scored across 15 tools

Disambiguation4/5

Most tools have clearly distinct purpose: project CRUD (save/read/update/delete/search), the project-specific dead-end registry, and the machine-wide global graph. The clearest overlaps are check_memory_status vs get_session_timeline (status already returns a 'recent session timeline'), check_dead_ends vs search_project_memory (which also searches active dead-ends), and read_memory_node vs get_file_memories (both surface file-anchored notes via different keys). These are workable given the descriptions but could cause misselection.

Naming Consistency5/5

Every tool is snake_case with a leading verb (check_, get_, save_, search_, read_, update_, delete_, record_, reopen_, promote_), which is a fully predictable pattern. Scope is encoded consistently too (project vs global vs dead-end suffixes), so names alone reveal domain and action.

Tool Count4/5

15 tools is within a reasonable range for a memory/knowledge server, and each has a stated job. It is slightly heavy because the surface mirrors project tools into global tools (save/search_global_knowledge, promote_to_global) and splits dead-end handling across three dedicated tools, which adds breadth not strictly required.

Completeness4/5

Core lifecycle is covered: save, read, update, soft/hard delete, search, status, timeline, plus dead-end tracking and promotion to a global graph. Gaps are minor but present: no delete or read-by-id for global knowledge (only save/search), no bulk export/import or reindex, and no explicit session-boundary tool despite session logs being a first-class concept.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues