Skip to main content
Glama
@memoryrelay/mcp-server

@memoryrelay/mcp-server

Official
by memoryrelay

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEMORYRELAY_TOOLSNoComma-separated tool groups to enable (`core`, `v2`, `sessions`, `decisions`, `patterns`, `projects`, `relationships`, `context`) or `all`.all
MEMORYRELAY_API_KEYYesYour MemoryRelay API key (starts with `mem_`).
MEMORYRELAY_API_URLNoAPI base URL for custom deployments.https://api.memoryrelay.net
MEMORYRELAY_TIMEOUTNoRequest timeout in milliseconds.30000
OPENCLAW_AGENT_NAMENoAgent name when running under OpenClaw, used for agent ID detection.
MEMORYRELAY_AGENT_IDNoAgent identifier. If not set, it is auto-detected from OPENCLAW_AGENT_NAME or generated from the hostname.
MEMORYRELAY_LOG_LEVELNoLogging level (`debug`, `info`, `warn`, `error`).info

Instructions

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

Recommended workflow:

  1. Call project_context(project) to load hot-tier memories for context

  2. Call session_start(project, goal) to begin tracking your work

  3. Call decision_check(project, topic) before making architectural choices

  4. Call pattern_search(query) to find established conventions

  5. Work on the task, using memory_store for important findings

  6. Call session_end(session_id, summary) when done

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
memory_storeB

Store a new memory. Use this to save important information, facts, preferences, or context that should be remembered for future conversations. Tip: Call session_start first to track what you are working on.

memory_searchB

Search memories using natural language. Returns the most relevant memories based on semantic similarity to the query. Omit agent_id to search across all agents.

memory_listB

List recent memories chronologically. Use to review what has been remembered.

memory_getB

Retrieve a specific memory by its ID.

memory_updateB

Update the content of an existing memory. Use to correct or expand stored information.

memory_deleteB

Permanently delete a memory. Use sparingly - memories are valuable context.

entity_createB

Create a named entity (person, place, organization, project, concept) for the knowledge graph. Entities help organize and connect memories.

entity_linkC

Link an entity to a memory to establish relationships in the knowledge graph.

entity_listB

List entities in the knowledge graph with pagination. Entities are people, places, organizations, projects, and concepts extracted from memories.

agent_listB

List all agents with their memory counts. Agents are namespaces that isolate memories.

agent_createA

Create a named agent. Agents are namespaces that isolate memories for different use cases or AI assistants.

agent_getC

Get details of a specific agent by ID, including memory count.

entity_graphB

Explore the knowledge graph around an entity. Returns neighboring entities and their relationships up to N hops away. Useful for understanding connections between people, projects, and concepts.

memory_batch_storeA

Store multiple memories in a single operation. More efficient than calling memory_store repeatedly when saving several related facts or observations.

memory_contextA

Build a formatted context string from relevant memories for a given query. Returns ranked memories with similarity scores, ready for use in prompts. More convenient than memory_search when you need a single context block.

project_registerB

Register a project (codebase/repository) to scope memories, sessions, and decisions. Projects have a unique slug for ergonomic referencing.

project_listC

List registered projects. Shows all projects with their memory counts.

project_infoB

Get detailed information about a specific project by its slug, including memory count and stack metadata.

project_add_relationshipC

Register a relationship between two projects (e.g., depends_on, api_consumer, shares_schema, shares_infra, pattern_source, forked_from).

project_dependenciesA

What does this project depend on? Returns outgoing depends_on and api_consumer relationships.

project_dependentsA

What depends on this project? Returns incoming depends_on and api_consumer relationships.

project_relatedC

All related projects with relationship types and direction indicators.

project_impactB

Impact analysis: given a change description, which dependent projects might be affected? Searches decisions and memories in downstream projects.

project_shared_patternsB

What do two projects have in common? Returns patterns adopted by both projects.

memory_healthB

Check API connectivity and health status.

session_startB

Start a new session to group related memories. Sessions track bounded interaction periods (e.g., a coding session, a conversation). Use session_recall to see what happened in previous sessions.

session_endB

End an active session with an optional summary of what was accomplished.

session_recallA

Recall a session by ID, including all memories created during it. Use this to review what happened in a past session.

session_listB

List recent sessions, optionally filtered by project or status. Shows session summaries to understand what happened in previous sessions.

decision_recordB

Record an architectural decision with rationale. Use to log important technical choices, design decisions, or policy changes so they can be referenced later.

decision_listA

List recorded decisions, optionally filtered by project, status, or tags.

decision_supersedeA

Supersede an existing decision with a new one. Marks the old decision as superseded and creates a new active decision.

decision_checkA

Check if there are existing decisions about a topic using semantic search. Use this before making a new decision to see if the topic has already been addressed.

pattern_createA

Create a reusable development pattern or convention. Use to document patterns like "always use Zod for validation" or "error responses follow RFC 7807" so they can be discovered and adopted across projects.

pattern_searchA

Search for development patterns using semantic similarity. When working on a project, shows both global patterns and patterns adopted by that project.

pattern_adoptB

Mark a pattern as adopted by a project. This links the pattern to the project so it shows up in project-scoped searches.

pattern_suggestA

Suggest relevant patterns for a project based on what similar projects have adopted. Returns patterns not yet adopted by the target project, ranked by popularity.

project_contextB

Get full project context for LLM consumption. Returns hot-tier memories, active decisions, adopted patterns, and a pre-formatted markdown context string.

memory_promoteA

Update a memory's importance and tier. Use to promote critical memories to hot tier (always in context) or demote them to cold tier (archived).

memory_store_asyncA

Store a memory asynchronously using V2 API. Returns immediately (<50ms) with 202 Accepted and a job ID. Background workers generate the embedding. Use memory_status to poll for completion. Prefer this over memory_store for high-throughput or latency-sensitive applications.

memory_statusA

Check the processing status of a memory created via memory_store_async. Poll this endpoint to determine when embedding generation is complete. Status values: pending (waiting for worker), processing (generating embedding), ready (searchable), failed (error occurred).

context_buildB

Build a ranked context bundle from memories using V2 API with optional AI summarization. Searches for relevant memories, ranks them by composite score, and optionally generates an AI summary. Useful for building token-efficient context windows for LLM prompts. Supports custom LLM endpoints (Ollama, llama.cpp, vLLM, etc.).

memory_forgetB

Delete a memory by ID, or search by query to find candidates. Alias for memory_delete. Provide memoryId for direct deletion, or query to search first.

memory_recallB

Search memories using natural language. Alias for memory_search with default project scoping. Returns the most relevant memories based on semantic similarity.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 44 tools

Disambiguation3/5

Most tool families are distinct (memory_, entity_, decision_, pattern_, session_, project_), but several overlaps exist: memory_recall/memory_search, memory_forget/memory_delete are explicit aliases, and memory_context/context_build/project_context all build context bundles with subtle differences. memory_status vs memory_health could also confuse. Descriptions help but the boundaries are not crisp.

Naming Consistency4/5

Almost all tools follow a consistent {domain}_{verb} snake_case pattern (memory_store, entity_create, project_register, session_start), which is readable and predictable. Minor deviations like project_shared_patterns and project_dependencies use noun phrases rather than verbs, but the overall convention is coherent.

Tool Count2/5

44 tools is well beyond comfortable scope for an agent to select from, and the surface contains redundant aliases (memory_recall, memory_forget) and near-duplicate context builders. While the domain is large, several tools could be merged or folded into parameters.

Completeness4/5

Coverage is broad: full CRUD for memories and agents, plus entities, projects, decisions, patterns, and sessions with relationships and lifecycle operations. Minor gaps exist (no entity_update/entity_delete, no project_update, no pattern/decision delete), but core workflows are fully supported.

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues