memora
기능
핵심 저장소
💾 지속적 저장소 - 선택적 클라우드 동기화(S3, R2, D1)를 지원하는 SQLite
📂 계층적 구성 - 자동 계층 할당을 통한 섹션/하위 섹션 구조
📦 내보내기/가져오기 - 병합 전략을 통한 백업 및 복원
흡수 및 계보
🧬 흡수 - 사실을 입력하면 LLM이 저장소와 비교하여 분류(중복/업데이트/모순/관련/신규)하고, 중복을 건너뛰고, 관계를 연결하며, 관련 사실을 통합 — dry_run 미리보기 지원
🌱 대체 계보 - 업데이트는 이전 지식을 삭제하지 않고 대체합니다. 검색은 기본적으로 현재 버전을 따릅니다(follow 모드: active, latest, full_history)
🗞️ 주제 요약 - memory_digest(topic)이 관련 메모리, 열린 TODO/이슈, 관련 엣지, 출처 ID를 하나의 검색 결과로 묶어 제공
검색 및 지능
🔍 의미 검색 - 벡터 임베딩(TF-IDF, sentence-transformers, OpenAI)
🎯 고급 쿼리 - 전문 검색, 날짜 범위, 태그 필터(AND/OR/NOT), 하이브리드 검색
🔀 상호 참조 - 유사성 기반 자동 연결된 관련 메모리
🤖 LLM 중복 제거 - AI 기반 비교로 중복 항목 찾기 및 병합
🔗 메모리 연결 - 유형화된 엣지, 중요도 부스트, 클러스터 감지
문서 저장소
📄 구조화된 문서 - 마크다운 문서를 검색 가능한 조각 트리(주장, 계획 항목, 참조, 위험)로 저장
🔒 조각 무결성 - 문서 조각의 실수로 인한 삭제/병합/흡수 방지
🔍 세분화된 검색 - 개별 주장과 발견 사항은 의미적으로 검색 가능하며, 전체 문서는 하나의 단위로 검색 가능
도구 및 시각화
⚡ 메모리 자동화 - TODO, 이슈, 섹션을 위한 구조화된 도구
🕸️ 지식 그래프 - Mermaid 렌더링 및 클러스터 오버레이를 통한 대화형 시각화
🌐 라이브 그래프 서버 - 내장 HTTP 서버, 클라우드 호스팅 옵션(D1/Pages)
💬 메모리와 채팅 - RAG 기반 채팅 패널, LLM 도구 호출을 통한 스트리밍 채팅으로 메모리 검색, 생성, 업데이트, 삭제
📡 이벤트 알림 - 에이전트 간 통신을 위한 폴링 기반 시스템
📊 통계 및 분석 - 태그 사용량, 추세, 연결 인사이트
🧠 메모리 인사이트 - 활동 요약, 부실 감지, 통합 제안, LLM 기반 패턴 분석
📜 작업 기록 - 모든 메모리 작업(생성, 업데이트, 삭제, 병합, 부스트, 연결)을 그룹화된 타임라인 보기로 추적
Related MCP server: ClawMem MCP Server
미리보기
설치
pip install memora-mcpPyPI 패키지는 **memora-mcp**입니다(PyPI의 일반 memora는 관련 없는 프로젝트입니다). 클라우드 저장소(S3/R2)와 OpenAI 임베딩이 기본 포함되어 있습니다.
# Optional: local embeddings (offline, ~2GB for PyTorch)
pip install "memora-mcp[local]"
# Latest development version straight from git
pip install "git+https://github.com/agentic-box/memora.git"서버는 Claude Code에서 설정 시 자동으로 실행됩니다. 수동 호출:
# Default (stdio mode for MCP)
memora-server
# With graph visualization server
memora-server --graph-port 8765
# HTTP transport (alternative to stdio)
memora-server --transport streamable-http --host 127.0.0.1 --port 8080Claude Code
프로젝트 루트의 .mcp.json에 추가:
로컬 DB:
{
"mcpServers": {
"memora": {
"command": "memora-server",
"args": [],
"env": {
"MEMORA_DB_PATH": "~/.local/share/memora/memories.db",
"MEMORA_ALLOW_ANY_TAG": "1",
"MEMORA_GRAPH_PORT": "8765"
}
}
}
}클라우드 DB (Cloudflare D1) - 권장:
{
"mcpServers": {
"memora": {
"command": "memora-server",
"args": ["--no-graph"],
"env": {
"MEMORA_STORAGE_URI": "d1://<account-id>/<database-id>",
"CLOUDFLARE_API_TOKEN": "<your-api-token>",
"MEMORA_ALLOW_ANY_TAG": "1"
}
}
}
}D1 사용 시 --no-graph를 사용하여 로컬 시각화 서버를 비활성화하세요. 대신 Cloudflare Pages URL에서 호스팅된 그래프를 사용하세요(클라우드 그래프 참조).
클라우드 DB (S3/R2) - 동기화 모드:
{
"mcpServers": {
"memora": {
"command": "memora-server",
"args": [],
"env": {
"AWS_PROFILE": "memora",
"AWS_ENDPOINT_URL": "https://<account-id>.r2.cloudflarestorage.com",
"MEMORA_STORAGE_URI": "s3://memories/memories.db",
"MEMORA_CLOUD_ENCRYPT": "true",
"MEMORA_ALLOW_ANY_TAG": "1",
"MEMORA_GRAPH_PORT": "8765"
}
}
}
}Codex CLI
~/.codex/config.toml에 추가:
[mcp_servers.memora]
command = "memora-server" # or full path: /path/to/bin/memora-server
args = ["--no-graph"]
env = {
AWS_PROFILE = "memora",
AWS_ENDPOINT_URL = "https://<account-id>.r2.cloudflarestorage.com",
MEMORA_STORAGE_URI = "s3://memories/memories.db",
MEMORA_CLOUD_ENCRYPT = "true",
MEMORA_ALLOW_ANY_TAG = "1",
}변수 | 설명 |
MEMORA_DB_PATH | 로컬 SQLite 데이터베이스 경로 (기본값: ~/.local/share/memora/memories.db) |
MEMORA_STORAGE_URI | 저장소 URI: d1:/// (D1) 또는 s3://bucket/memories.db (S3/R2) |
CLOUDFLARE_API_TOKEN | D1 데이터베이스 접근을 위한 API 토큰 (d1:// URI에 필요) |
MEMORA_CLOUD_ENCRYPT | 클라우드 업로드 전 데이터베이스 암호화 (true/false) |
MEMORA_CLOUD_COMPRESS | 클라우드 업로드 전 데이터베이스 압축 (true/false) |
MEMORA_CACHE_DIR | 클라우드 동기화 데이터베이스의 로컬 캐시 디렉터리 |
MEMORA_ALLOW_ANY_TAG | 허용 목록 검증 없이 모든 태그 허용 (1로 활성화) |
MEMORA_TAG_FILE | 허용된 태그 배열을 포함하는 JSON 파일 경로 (예: ["plan", "memora/issues"]) |
MEMORA_TAGS | 쉼표로 구분된 허용 태그 목록 |
MEMORA_GRAPH_PORT | 지식 그래프 시각화 서버 포트 (기본값: 8765) |
MEMORA_STALE_DAYS | memory_insights에서 열린 TODO/이슈가 부실로 간주되는 일수 (기본값: 14) |
MEMORA_EMBEDDING_MODEL | 임베딩 백엔드: openai (기본값), sentence-transformers, 또는 tfidf |
SENTENCE_TRANSFORMERS_MODEL | sentence-transformers 모델 (기본값: all-MiniLM-L6-v2) |
MEMORA_EMBEDDING_API_KEY | 임베딩 제공자 API 키 (기본 URL과 함께 사용 — 아래 참조) |
MEMORA_EMBEDDING_BASE_URL | 임베딩 제공자 기본 URL (API 키와 함께 사용 — 아래 참조) |
MEMORA_EMBEDDING_STRICT | 1 권장. 임베딩 오류 시 자동 TF-IDF 대신 강제 실패. 설정하지 않으면 깨진 엔드포인트가 계속 응답하면서 모든 벡터가 키워드 모음이 됩니다 (756개의 메모리가 눈에 띄지 않게 저하된 사례). |
OPENAI_API_KEY | MEMORA_EMBEDDING_*가 설정된 경우 LLM 전용 (중복 제거/채팅). MEMORA_EMBEDDING_API_KEY와 MEMORA_EMBEDDING_BASE_URL가 모두 설정되지 않은 경우에만 임베딩이 이 키로 대체됩니다. |
OPENAI_BASE_URL | LLM 기본 URL (OpenRouter, Azure 등). 키와 동일한 원자적 대체 규칙 적용 — 분할 구성을 사용할 때 임베딩 URL이 아닙니다. |
OPENAI_EMBEDDING_MODEL | OpenAI 임베딩 백엔드용 모델 ID. 임베딩 호스트에 존재해야 함 (기본값 text-embedding-3-small은 OpenAI 전용; Cloudflare는 예: @cf/baai/bge-m3 필요) |
MEMORA_LLM_ENABLED | LLM 기반 중복 제거 비교 활성화 (true/false, 기본값: true) |
MEMORA_LLM_MODEL | 중복 제거 비교용 모델 (기본값: gpt-4o-mini) |
CHAT_MODEL | 채팅 패널용 모델 (기본값: deepseek/deepseek-chat, MEMORA_LLM_MODEL으로 대체) |
AWS_PROFILE | ~/.aws/credentials의 AWS 자격 증명 프로필 (R2에 유용) |
AWS_ENDPOINT_URL | R2/MinIO용 S3 호환 엔드포인트 |
R2_PUBLIC_DOMAIN | R2 이미지 URL용 공개 도메인 |
Memora는 세 가지 임베딩 백엔드를 지원합니다:
백엔드 | 설치 | 품질 | 속도 |
| 포함됨 | 고품질 | API 지연 |
|
| 양호, 오프라인 실행 | 중간 |
| 포함됨 | 기본 키워드 매칭 | 빠름 |
임베딩과 LLM은 별도로 구성됩니다.
역할 | 변수 |
LLM (중복 제거, 채팅) |
|
임베딩 |
|
폴백 | 둘 다 |
부분 분할(MEMORA_EMBEDDING_* 중 하나만 설정)은 거부되어 한 공급자의 비밀이 다른 호스트로 전송되지 않습니다.
주의 — OpenRouter에는 임베딩 엔드포인트가 없습니다. OpenRouter의 카탈로그는 채팅/멀티모달 전용입니다(임베딩 모델 없음). OPENAI_BASE_URL(또는 MEMORA 기본 URL)을 통해 임베딩 경로를 OpenRouter로 지정하지 마십시오. 해당 조합은 모든 임베딩 호출에서 404 오류가 발생합니다. MEMORA_EMBEDDING_STRICT=1이 없으면 Memora는 TF-IDF로 폴백하여 계속 응답하므로, 저장소는 정상으로 보이면서 키워드 가방으로 채워집니다. OpenRouter는 LLM에만 적합합니다.
작동 예시 (LLM은 OpenRouter, 임베딩은 Cloudflare Workers AI):
@cf/baai/bge-m3는 1024차원입니다. 토큰에 Workers AI 권한이 필요합니다. 엔드포인트 형태:
https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1
{
"env": {
"MEMORA_EMBEDDING_MODEL": "openai",
"OPENAI_API_KEY": "<openrouter-key>",
"OPENAI_BASE_URL": "https://openrouter.ai/api/v1",
"MEMORA_LLM_MODEL": "deepseek/deepseek-chat",
"MEMORA_EMBEDDING_API_KEY": "<cloudflare-api-token-with-workers-ai>",
"MEMORA_EMBEDDING_BASE_URL": "https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1",
"OPENAI_EMBEDDING_MODEL": "@cf/baai/bge-m3",
"MEMORA_EMBEDDING_STRICT": "1"
}
}이 수정이 하는 일(과장 없이): 임베딩과 LLM이 다른 공급자를 사용할 수 있습니다. 부분 분할은 거부됩니다. 엄격 모드는 무음 성능 저하를 하드하고 명명된 실패로 전환합니다.
자동: memory_create, memory_update 또는 memory_create_batch를 호출할 때 임베딩과 교차 참조가 자동으로 계산됩니다.
저장소 지문이 변경될 때 수동 재구축 필요 — MEMORA_EMBEDDING_MODEL뿐만 아니라:
임베딩 엔드포인트 (
MEMORA_EMBEDDING_BASE_URL/ 호스트)실제 모델 ID (
OPENAI_EMBEDDING_MODEL, 예:@cf/baai/bge-m3로 전환)벡터 종류 또는 차원 (단어 키 TF-IDF 가방 vs 밀집 1024차원; 또는 384 vs 1024)
혼합 저장소 (일부 행은 밀집, 일부는 희소) — 코사인 유사도는 키만 공유하므로 혼합 종류는 이전 행에 대해 0.0 재현율을 초래합니다.
지문 형식: backend|model|repr (예: openai|@cf/baai/bge-m3|dense:1024). 레거시 메타 값 openai 단독은 불일치로 처리됩니다.
# After changing embedding model/endpoint, rebuild all embeddings
memory_rebuild_embeddings
# Then rebuild cross-references to update the knowledge graph
memory_rebuild_crossrefs내장 HTTP 서버가 MCP 서버와 함께 자동으로 시작되어 대화형 지식 그래프 시각화를 제공합니다.
로컬 접속:
http://localhost:8765/graphSSH를 통한 원격 접속:
ssh -L 8765:localhost:8765 user@remote
# Then open http://localhost:8765/graph in your browser구성:
{
"env": {
"MEMORA_GRAPH_PORT": "8765"
}
}비활성화하려면 MCP 구성의 인수에 "--no-graph"를 추가하세요.
그래프 UI 기능
세부 정보 패널 - 기억 내용, 메타데이터, 태그 및 관련 기억 보기
타임라인 패널 - 기억을 시간순으로 탐색하고 클릭하여 그래프에서 강조 표시
히스토리 패널 - 모든 작업의 작업 로그, 연속 항목 그룹화 및 클릭 가능한 기억 참조(삭제된 기억은 취소선으로 표시)
채팅 패널 - RAG 기반 LLM 채팅을 사용하여 기억에 대해 질문하고 스트리밍 응답 및 클릭 가능한
[Memory #ID]참조 제공시간 슬라이더 - 날짜 범위로 기억 필터링, 드래그하여 기록 탐색
실시간 업데이트 - 기억이 변경될 때 SSE를 통해 그래프, 타임라인 및 히스토리 업데이트
필터 - 태그/섹션 드롭다운, 확대/축소 컨트롤
Mermaid 렌더링 - 코드 블록이 다이어그램으로 렌더링
노드 색상
🟣 태그 - 태그별 보라색 음영
🔴 이슈 - 빨간색(열림), 주황색(진행 중), 초록색(해결됨), 회색(수정 안 함)
🔵 TODO - 파란색(열림), 주황색(진행 중), 초록색(완료됨), 빨간색(차단됨)
노드 크기는 연결 수를 반영합니다.
Cloudflare D1을 데이터베이스로 사용하는 경우 그래프 시각화가 Cloudflare Pages에서 호스팅됩니다. 로컬 서버가 필요하지 않습니다.
이점:
어디서나 접속 가능 (SSH 터널링 불필요)
WebSocket을 통한 실시간 업데이트
?db=매개변수를 통한 다중 데이터베이스 지원Cloudflare Zero Trust를 통한 안전한 접속
설정:
D1 데이터베이스 생성:
npx wrangler d1 create memora-graph npx wrangler d1 execute memora-graph --file=memora-graph/schema.sqlPages 배포:
cd memora-graph npx wrangler pages deploy ./public --project-name=memora-graphCloudflare 대시보드에서 바인딩 구성:
Pages → memora-graph → 설정 → 바인딩
D1 추가:
DB_MEMORA→ 데이터베이스R2 추가:
R2_MEMORA→ 버킷 (이미지용)
D1 URI로 MCP 구성:
{ "env": { "MEMORA_STORAGE_URI": "d1://<account-id>/<database-id>", "CLOUDFLARE_API_TOKEN": "<your-token>" } }
접속: https://memora-graph.pages.dev
Zero Trust로 보안 설정:
Cloudflare 대시보드 → Zero Trust → Access → 애플리케이션
memora-graph.pages.dev에 대한 애플리케이션 추가허용된 이메일로 정책 생성
Pages → 설정 → 액세스 정책 활성화
자세한 설정 및 다중 데이터베이스 구성은 memora-graph/를 참조하세요.
그래프 UI에서 직접 지식 베이스에 대해 질문하세요. 채팅 패널은 RAG(Retrieval-Augmented Generation)를 사용하여 관련 기억을 검색하고 도구 호출 지원과 함께 LLM 응답을 스트리밍합니다.
전환은 우측 하단의 플로팅 채팅 아이콘을 통해
의미 검색이 가장 관련성 높은 기억을 컨텍스트로 찾습니다.
스트리밍 응답에는 그래프 노드에 초점을 맞추는 클릭 가능한
[Memory #ID]참조가 포함됩니다.도구 호출 — LLM이 채팅에서 직접 기억을 생성, 업데이트, 삭제할 수 있습니다 (예: "이것을 기억으로 저장", "기억 #42 삭제", "기억 #10을 ...로 업데이트")
로컬 서버와 Cloudflare Pages 배포 모두에서 작동합니다.
채팅 모델 구성:
백엔드 | 변수 | 기본값 |
로컬 서버 |
|
|
Cloudflare Pages |
|
|
OpenAI 호환 API가 필요합니다 (로컬의 경우 OPENAI_API_KEY + OPENAI_BASE_URL, Cloudflare의 경우 OPENROUTER_API_KEY 비밀). 채팅 모델은 도구 사용(함수 호출)을 지원해야 합니다.
AI 기반 의미 비교를 사용하여 중복 기억을 찾고 병합합니다:
# Find potential duplicates (uses cross-refs + optional LLM analysis)
memory_find_duplicates(min_similarity=0.7, max_similarity=0.95, limit=10, use_llm=True)
# Merge duplicates (append, prepend, or replace strategies)
memory_merge(source_id=123, target_id=456, merge_strategy="append")LLM 비교는 기억 쌍을 분석하고 다음을 반환합니다:
verdict: "duplicate", "similar", 또는 "different"confidence: 0.0-1.0 점수reasoning: 간단한 설명suggested_action: "merge", "keep_both", 또는 "review"
모든 OpenAI 호환 채팅 API(OpenAI, OpenRouter, Azure 등)와 함께 OPENAI_BASE_URL을 통해 작동합니다. OpenRouter는 이 LLM 경로에 적합합니다. 임베딩을 제공하지 않습니다 — 임베딩은 별도로 구성하세요 (의미 검색 및 임베딩 참조).
구조화된 문서(연구 보고서, 아키텍처 결정, 사후 분석)를 검색 가능한 조각 트리로 저장합니다:
# Store a markdown document — auto-parsed into typed fragments
memory_store_document(
content="# Research Report\n\n## Evidence Table\n| Claim | Confidence |\n...",
document_key="research/memora-enhancements-2026-04-08",
tags=["memora/research"]
)
# Returns: {root_id: 230, fragment_count: 100, node_map: {claim: [...], plan_item: [...], ...}}
# Retrieve the full document or specific fragment types
memory_get_document(document_key="research/memora-enhancements-2026-04-08")
memory_get_document(document_key="...", node_kinds=["claim"], content_mode="full")
# Delete a document and all its fragments
memory_delete_document(document_key="research/memora-enhancements-2026-04-08")작동 방식: 파서가 마크다운을 구조별로 분할합니다 — 테이블은 개별 주장이 되고, 번호 목록은 계획 항목이 되며, URL 목록은 참조가 되고, 위험 섹션은 위험 조각이 됩니다. 각 조각은 memory_semantic_search를 통해 독립적으로 검색 가능하며, 전체 문서는 하나의 단위로 검색 가능합니다.
조각 유형: claim, plan_item, reference, section_chunk, risk
무결성 보호: 문서 조각은 실수로 인한 수정으로부터 보호됩니다:
memory_delete는 조각에 대해force=True필요memory_merge는 조각 병합을 거부memory_absorb는 유사성 매칭에서 조각 제외memory_find_duplicates및memory_detect_supersessions는 조각 건너뜀그래프 UI는 조각을 숨기고 문서 루트 노드만 표시
일반적인 기억 유형을 위한 구조화된 도구:
# Create a TODO with status and priority
memory_create_todo(content="Implement feature X", status="open", priority="high", category="backend")
# Create an issue with severity
memory_create_issue(content="Bug in login flow", status="open", severity="major", component="auth")
# Create a section placeholder (hidden from graph)
memory_create_section(content="Architecture", section="docs", subsection="api")저장된 기억을 분석하고 실행 가능한 인사이트를 표시합니다:
# Full analysis with LLM-powered pattern detection
memory_insights(period="7d", include_llm_analysis=True)
# Quick summary without LLM (faster, no API key needed)
memory_insights(period="1m", include_llm_analysis=False)반환:
활동 요약 — 해당 기간에 생성된 기억, 유형 및 태그별 그룹화
열린 항목 — 열린 TODO 및 이슈, 오래된 항목 감지 (
MEMORA_STALE_DAYS로 구성 가능, 기본값 14)통합 후보 — 병합할 수 있는 유사한 기억 쌍
LLM 분석 — 주제, 초점 영역, 지식 격차 및 요약 (
OPENAI_API_KEY필요)
기억 간의 관계 관리:
# Create typed edges between memories
memory_link(from_id=1, to_id=2, edge_type="implements", bidirectional=True)
# Edge types: references, implements, supersedes, extends, contradicts, related_to
# Remove links
memory_unlink(from_id=1, to_id=2)
# Boost memory importance for ranking
memory_boost(memory_id=42, boost_amount=0.5)
# Detect clusters of related memories
memory_clusters(min_cluster_size=2, min_score=0.3)오프라인 보기를 위해 기억을 정적 HTML 파일로 내보냅니다:
memory_export_graph(output_path="~/memories_graph.html", min_score=0.25)이는 선택 사항입니다 - 실시간 그래프 서버가 실시간 업데이트와 함께 동일한 시각화를 제공합니다.
Telescope로 Neovim에서 직접 기억을 탐색합니다. 플러그인을 구성에 복사하세요:
# For kickstart.nvim / lazy.nvim
cp nvim/memora.lua ~/.config/nvim/lua/kickstart/plugins/사용법: <leader>sm을 눌러 퍼지 검색 및 미리보기가 있는 기억 브라우저를 엽니다.
필요 사항: Python 환경에 telescope.nvim, plenary.nvim, memora가 설치되어 있어야 합니다.
Available Tools
44 toolsmemory_absorbA
Intelligently absorb facts into memory with dedup and consolidation.
For each fact: searches for similar existing memories, classifies the relationship via LLM (duplicate/update/contradict/related/new), then takes the appropriate action. Related new facts are automatically consolidated into single, richer memories via LLM synthesis.
Args: facts: List of fact strings to absorb (can be granular — related ones get merged) source: Origin of facts — "manual", "session_end", "post_tool", "import" confidence: Caller's certainty about these facts (0.0-1.0, default: 0.8) context: Optional surrounding context to help disambiguate facts metadata: Optional metadata to attach to created memories tags: Optional tags to attach to created memories dry_run: If True, preview what would happen without writing anything project: Optional project these facts belong to (e.g. "clmux"). Recorded on every created memory as metadata.project and used for section and tag prefixing; suggested tags naming a different configured project are dropped. Without it, the project comes only from metadata.project or a tag naming a project configured in MEMORA_PROJECTS; it is never guessed from the text (issue #47).
Inputs: facts (required), tags, source, context, +4 more. Returns: result
memory_backfill_tagsA
Re-tag existing memories with project-prefixed tags.
Uses deterministic normalization to prefix generic tags (e.g. "plan" → "memora/plan") when the memory content clearly belongs to a specific project. No LLM calls.
Idempotent: re-running produces the same result.
Args: dry_run: If True, preview changes without writing (default: True)
Returns: Dictionary with processed count, changed count, and list of changes.
Rate limited: 120s cooldown.
Inputs: dry_run. Returns: result
memory_boostA
Boost a memory's importance score.
Manually increase a memory's base importance to make it rank higher in importance-sorted searches. The boost is permanent and cumulative.
Args: memory_id: ID of the memory to boost boost_amount: Amount to add to base importance (default: 0.5) Common values: 0.25 (small), 0.5 (medium), 1.0 (large)
Returns: Updated memory with new importance score, or error if not found
Inputs: memory_id (required), boost_amount. Returns: result
memory_clustersA
Detect clusters of related memories.
Args: min_cluster_size: Minimum memories to form a cluster (default: 2) min_score: Minimum similarity score to consider connected (default: 0.3) algorithm: "connected_components" (default) or "louvain" Louvain uses embedding similarity for content-based clustering.
Returns: List of clusters with member IDs, sizes, and common tags
Inputs: algorithm, min_score, min_cluster_size. Returns: result
memory_createA
Create a new memory entry.
Args: content: The memory content text metadata: Optional metadata dictionary tags: Optional list of tags suggest_similar: If True, find similar memories and suggest consolidation (default: True) similarity_threshold: Minimum similarity score for suggestions (default: 0.2) response_mode: "full" (default) or "minimal" response payload size project: Optional project this memory belongs to (e.g. "clmux"). Recorded as metadata.project and used for section and tag prefixing. Without it, the project comes only from metadata.project or a tag naming a project configured in MEMORA_PROJECTS; it is never guessed from the text (issue #47).
Inputs: content (required), tags, project, metadata, +3 more. Returns: result
memory_create_batchC
Create multiple memories in one call.
Inputs: entries (required). Returns: result
memory_create_issueA
Create a new issue/bug memory.
Args: content: Description of the issue status: Issue status - "open" (default) or "closed" closed_reason: If closed, the reason - "complete" or "not_planned" severity: Issue severity - "critical", "major", "minor" (default) component: Component/area affected (e.g., "graph", "storage", "api") category: Issue category (e.g., "bug", "enhancement", "performance") project: Optional project the issue belongs to; its tag becomes "/issues", or bare "issues" without a project
Returns: Created issue memory with auto-assigned tag "/issues" or "issues"
Inputs: content (required), status, project, category, +3 more. Returns: result
memory_create_sectionA
Create a new section/subsection header memory.
Section memories are organizational placeholders that:
Are NOT visible in the graph visualization
Are NOT included in duplicate detection
Do NOT compute embeddings or cross-references
Args: content: Title/description of the section section: Parent section name (e.g., "Architecture", "API") subsection: Subsection path (e.g., "endpoints/auth") project: Optional project the section belongs to; its tag becomes "/sections", or bare "sections" without a project
Returns: Created section memory with auto-assigned tag "/sections" or "sections"
Inputs: content (required), project, section, subsection. Returns: result
memory_create_todoA
Create a new TODO/task memory.
Args: content: Description of the task status: Task status - "open" (default) or "closed" closed_reason: If closed, the reason - "complete" or "not_planned" priority: Task priority - "high", "medium" (default), "low" category: Task category (e.g., "cloud-backend", "graph-visualization", "docs") project: Optional project the task belongs to; its tag becomes "/todos", or bare "todos" without a project
Returns: Created TODO memory with auto-assigned tag "/todos" or "todos"
Inputs: content (required), status, project, category, +2 more. Returns: result
memory_deleteA
Delete a memory by id.
Args: memory_id: Memory ID to delete force: If True, allow deleting document fragments/roots. Use memory_delete_document() instead for clean document removal. reason: Optional tombstone reason (default "deleted")
Inputs: memory_id (required), force, reason. Returns: result
memory_delete_batchC
Delete multiple memories by id.
Args: ids: Memory IDs to delete reason: Optional tombstone reason (default "deleted")
Inputs: ids (required), reason. Returns: result
memory_delete_documentA
Delete a stored document and all its fragments.
Args: document_key: The document identifier version: Optional — delete only this version. If omitted, deletes all versions.
Returns: {deleted_roots: count, deleted_fragments: count, deleted_ids: [...]}
Inputs: document_key (required), version. Returns: result
memory_detect_supersessionsA
Detect memories that supersede (update/replace) other memories.
Scans existing memories for pairs where one is an evolved/updated version of another, then creates 'supersedes' edges between them. Complements memory_absorb which only catches supersessions at write time.
Uses neutral LLM classification (not biased by timestamps) to determine both the relationship type and direction.
Args: min_similarity: Minimum embedding similarity to consider (default: 0.55) limit: Maximum pairs to analyze with LLM (default: 20) dry_run: If True, preview detections without creating edges (default: True) tags_any: Only consider memories with any of these tags min_confidence: Minimum LLM confidence to accept (default: 0.75)
Returns: Dictionary with candidates found, analyzed count, detected supersessions, and detailed results for each pair.
Rate limited: 120s cooldown.
Inputs: limit, dry_run, tags_any, min_confidence, +1 more. Returns: result
memory_digestA
Return a deterministic digest of memories related to a topic.
The digest is an aggregation surface for agents that need current context, not a narrative generator. It combines active hybrid-search hits, optional supersession lineage, related memory ids, and matching TODO/issue memories. Raw source ids are always returned so callers can inspect primitives if the digest is too broad or too narrow.
Args: topic: Subject to digest. k: Maximum active search hits and TODO/issue matches to include. include_lineage: Include supersession history for active hits. include_todos: Include matching todos and issues: metadata.type todo/issue, or a todos/issues tag, bare or with any project prefix (the legacy memora/todos and memora/issues included). include_related_hops: Number of cross-reference hops to collect, capped at 3. synthesize: Reserved for future LLM synthesis. False by default. preview_chars: Preview length per returned memory. tags_any: Restrict hybrid search and discovered TODO/issue matches to memories with any of these tags. tags_all: Restrict hybrid search and discovered TODO/issue matches to memories with all of these tags. metadata_filters: Optional metadata filters. date_from: Optional created_at lower bound (ISO or relative like "7d"). date_to: Optional created_at upper bound (ISO or relative like "7d"). seed_ids: Explicit memory ids to include as source memories and expand lineage/related from. debug: Include ranked candidates, applied filters, and seed/filter notes.
Inputs: topic (required), k, debug, date_to, +10 more. Returns: result
memory_events_clearB
Mark events as consumed.
Args: event_ids: List of event IDs to mark as consumed
Returns: Dictionary with count of cleared events
Inputs: event_ids (required). Returns: result
memory_events_pollA
Poll for memory events (e.g., shared-cache notifications).
Args: since_timestamp: Only return events after this timestamp (ISO format) tags_filter: Only return events with these tags (e.g., ["shared-cache"]) unconsumed_only: Only return unconsumed events (default: True)
Returns: Dictionary with count and list of events
Inputs: tags_filter, since_timestamp, unconsumed_only. Returns: result
memory_exportA
Export all memories to JSON format for backup or transfer. Rate limited: 60s cooldown.
Inputs: no named parameters. Returns: result
memory_export_graphA
Export memories as interactive HTML knowledge graph.
Args: output_path: Path to save HTML file (default: ~/memories_graph.html) min_score: Minimum similarity score for edges (default: 0.25)
Returns: Dictionary with path, node count, edge count, and tags
Inputs: min_score, output_path. Returns: result
memory_find_duplicatesA
Find potential duplicate memory pairs with optional LLM-powered comparison.
Scans cross-references to find memory pairs with similarity >= threshold, then optionally uses LLM to semantically compare them. Uses the same threshold (0.85) as the graph UI duplicate detection.
Args: min_similarity: Minimum similarity score to consider (default: 0.85) max_similarity: Maximum similarity score (default: 1.0, kept for backward compatibility) limit: Maximum pairs to analyze (default: 10) use_llm: Whether to use LLM for semantic comparison (default: True)
Returns: Dictionary with: - pairs: List of potential duplicate pairs with analysis - total_candidates: Total pairs found - analyzed: Number of pairs analyzed with LLM - llm_available: Whether LLM comparison was available
Rate limited: 120s cooldown.
Inputs: limit, use_llm, max_similarity, min_similarity. Returns: result
memory_getA
Retrieve a single memory by id (full content by default).
Args:
memory_id: ID of the memory to retrieve
include_images: If False, strip image data from metadata to reduce response size
fields: Optional list of fields to return (e.g. ["id","content","tags"]). None returns all fields.
follow: Lineage mode. Default latest (resolve superseded id to the current leaf).
full_history adds a history key with all versions root-to-leaf;
all returns the exact requested id with no chain walk (forensic).
Omitting follow is NOT unfiltered — it means resolve to latest.
Inputs: memory_id (required), fields, follow, include_images. Returns: result
memory_get_documentA
Retrieve a stored document and its fragments by document key.
Args: document_key: The document identifier used during storage content_mode: "preview" (default) or "full" for fragment content preview_chars: Max chars for preview mode (default: 120) node_kinds: Optional filter — e.g. ["claim", "plan_item"] for specific fragment types version: Optional version filter. If omitted, returns the latest version.
Returns: {root: {...}, fragments: [...] ordered by ordinal, document_key, version}
Inputs: document_key (required), version, node_kinds, content_mode, +1 more. Returns: result
memory_hierarchyC
Return memories organised into a hierarchy derived from their metadata.
Args: compact: If True (default), return only id, preview (first 80 chars), and tags per memory to reduce response size. Set to False for full memory data.
Inputs: query, compact, date_to, tags_all, +5 more. Returns: result
memory_hybrid_searchA
Perform a hybrid search combining keyword (FTS) and semantic (vector) search.
Uses Reciprocal Rank Fusion (RRF) to merge results from both search methods, providing better results than either method alone.
Returns compact previews by default. Use content_mode="full" for complete content. Use memory_get to fetch full content for specific IDs.
Args:
query: Search query text
semantic_weight: Weight for semantic results (0-1). Higher values favor semantic similarity.
Keyword weight = 1 - semantic_weight. Default: 0.6 (60% semantic, 40% keyword)
top_k: Maximum number of results (legacy name; default 10 if neither limit nor top_k)
limit: Alias for top_k — preferred name; honored so callers matching memory_list work
min_score: Minimum combined score threshold (default: 0.0)
metadata_filters: Optional metadata filters
date_from: Optional date filter (ISO format or relative like "7d", "1m", "1y")
date_to: Optional date filter (ISO format or relative)
tags_any: Match memories with ANY of these tags (OR logic)
tags_all: Match memories with ALL of these tags (AND logic)
tags_none: Exclude memories with ANY of these tags (NOT logic)
content_mode: "preview" (default) returns truncated content_preview; "full" returns complete content
preview_chars: Max chars for preview (default: 300, ignored when content_mode="full")
fields: Optional list of fields to return. Include "score" to keep {memory, score} envelope;
omit "score" for flat list of memory dicts.
follow: Lineage mode. Default active (excludes superseded memories).
latest / full_history as documented on memory_list;
all is the explicit unfiltered forensic escape hatch.
Omitting follow is NOT unfiltered — it means the safe default.
Returns: Dictionary with count and list of results, each containing score and memory
Inputs: query (required), limit, top_k, fields, +11 more. Returns: result
memory_importA
Import memories from JSON format. Rate limited: 60s cooldown.
Args: data: List of memory dictionaries with content, metadata, tags, created_at strategy: "replace" (clear all first), "merge" (skip duplicates), or "append" (add all)
Inputs: data (required), strategy. Returns: result
memory_import_sweepA
Admin: finish or remove rows an interrupted import left behind.
A D1 import marks each row it writes (metadata.import_attempt) until the
row is complete. A crash, or a cleanup that failed, can leave a marked
row; reads hide it. A row whose import still holds a live lease is never
touched. Otherwise this completes each marked row older than
older_than_minutes that has its embedding (the marker is stripped) and
removes each one that has none; younger markers are left alone. Also runs at the start of every import
and at server startup. Returns counts: scanned, completed, removed,
pending (of which live_lease), failed (ids).
Inputs: older_than_minutes. Returns: result
memory_insightsB
Analyze stored memories and produce actionable insights.
Returns activity summary, open items, consolidation suggestions, and optional LLM-powered pattern detection.
Args: period: Time period to analyze (e.g., "7d", "1m", "1y") include_llm_analysis: If True, use LLM to detect patterns and themes
Returns: Dictionary with: - activity_summary: Created counts by type and tag - open_items: Open TODOs and issues with stale detection - consolidation_candidates: Similar memory pairs that could be merged - llm_analysis: Themes, focus areas, gaps, and summary (or null) Rate limited: 120s cooldown.
Inputs: period, include_llm_analysis. Returns: result
memory_linkA
Create an explicit typed link between two memories.
Args: from_id: Source memory ID to_id: Target memory ID edge_type: Type of relationship. Options: - "references" (default): General reference - "implements": Source implements/realizes target - "supersedes": Source replaces/updates target - "extends": Source builds upon target - "contradicts": Source conflicts with target - "related_to": Generic relationship bidirectional: If True, also create reverse link (default: True)
Returns: Dict with created links and their types
Inputs: to_id (required), from_id (required), edge_type, bidirectional. Returns: result
memory_listA
List memories, optionally filtering by substring query or metadata.
Returns compact previews by default to reduce context usage.
Use content_mode="full" when you need the complete content.
Use memory_get to fetch full content for specific IDs.
Args:
query: Optional text search query
metadata_filters: Optional metadata filters
limit: Maximum results (default: 20). Pass -1 for unlimited.
offset: Number of filtered results to skip (default: 0)
date_from: Optional date filter (ISO format or relative like "7d", "1m", "1y")
date_to: Optional date filter (ISO format or relative like "7d", "1m", "1y")
tags_any: Match memories with ANY of these tags (OR logic)
tags_all: Match memories with ALL of these tags (AND logic)
tags_none: Exclude memories with ANY of these tags (NOT logic)
sort_by_importance: Sort results by importance score (default: False, sorts by date)
content_mode: "preview" (default) returns truncated content_preview; "full" returns complete content
preview_chars: Max chars for preview (default: 120, ignored when content_mode="full")
fields: Optional list of fields to return (e.g. ["id","content_preview","tags"]). None returns all fields.
follow: Lineage mode. Default active (excludes superseded memories).
latest resolves each hit to its current version;
full_history expands supersession chains;
all is the explicit unfiltered forensic escape hatch (includes superseded).
Omitting follow is NOT unfiltered — it means the safe default.
Inputs: limit, query, fields, follow, +10 more. Returns: result
memory_list_compactA
[Deprecated] List memories in compact format (id, preview, tags only).
Prefer memory_list which now defaults to compact previews with richer
fields and configurable content_mode/preview_chars.
Returns minimal fields: id, content preview (first 80 chars), tags, and created_at.
Args: query: Optional text search query metadata_filters: Optional metadata filters limit: Maximum number of results to return (default: unlimited) offset: Number of results to skip (default: 0) date_from: Optional date filter (ISO format or relative like "7d", "1m", "1y") date_to: Optional date filter (ISO format or relative like "7d", "1m", "1y") tags_any: Match memories with ANY of these tags (OR logic) tags_all: Match memories with ALL of these tags (AND logic) tags_none: Exclude memories with ANY of these tags (NOT logic)
Inputs: limit, query, offset, date_to, +5 more. Returns: result
memory_mergeA
Merge source memory into target, then delete source.
Combines two memories into one, preserving content and metadata.
Args: source_id: Memory ID to merge from (will be deleted) target_id: Memory ID to merge into (will be updated) merge_strategy: How to combine content: - "append": Append source content to target (default) - "prepend": Prepend source content to target - "replace": Replace target content with source
Returns: Updated target memory and deletion confirmation
Inputs: source_id (required), target_id (required), merge_strategy. Returns: result
memory_migrate_imagesA
Migrate existing base64 images to R2 storage.
Scans all memories and uploads any base64-encoded images to R2, replacing the data URIs with R2 URLs.
Args: dry_run: If True, only report what would be migrated without making changes
Returns: Dictionary with migration results including count of migrated images
Rate limited: 300s cooldown.
Inputs: dry_run. Returns: result
memory_rebuild_crossrefsA
Recompute cross-reference links for all memories. Rate limited: 300s cooldown.
Use this periodically (or after bulk imports) to close the eventual-consistency
gap in the related graph — see memory_related for the consistency model.
Inputs: no named parameters. Returns: result
memory_rebuild_embeddingsA
Recompute embeddings for all memories. Rate limited: 300s cooldown.
Inputs: no named parameters. Returns: result
memory_semantic_searchA
Perform a semantic search using vector embeddings.
Returns compact previews by default. Use content_mode="full" for complete content.
Args:
query: Search query text
top_k: Maximum number of results (legacy name; default 5 if neither limit nor top_k)
limit: Alias for top_k — preferred name; honored so callers matching memory_list work
metadata_filters: Optional metadata filters
min_score: Minimum similarity score threshold
content_mode: "preview" (default) returns truncated content_preview; "full" returns complete content
preview_chars: Max chars for preview (default: 300, ignored when content_mode="full")
fields: Optional list of fields to return. Include "score" to keep {memory, score} envelope;
omit "score" for flat list of memory dicts.
follow: Lineage mode. Default active (excludes superseded memories).
latest / full_history as documented on memory_list;
all is the explicit unfiltered forensic escape hatch.
Omitting follow is NOT unfiltered — it means the safe default.
Inputs: query (required), limit, top_k, fields, +5 more. Returns: result
memory_statsA
Get statistics and analytics about stored memories.
Also reports WHICH DATABASE this session is bound to (memora #997). A valid-but-wrong database name in a workspace's .mcp.json is otherwise undetectable: every tool works, reads succeed, and writes land silently in another project's store. Reporting the bound identity is what makes that drift visible to an agent or an operator at all.
Inputs: no named parameters. Returns: result
memory_store_documentA
Store a structured document as a root memory + searchable fragments.
Parses markdown into typed fragments (claims, plan items, references, risks, section chunks) that are individually searchable while the full document remains retrievable as a unit.
Args: content: Full markdown document content document_key: Stable identifier (e.g. "research/memora-enhancements-2026-04-08") version: Document version (default: 1). If >1, supersedes previous version. tags: Tags applied to root and fragments metadata: Additional metadata merged into root and fragments skip_fragment_crossrefs: If True, fragments skip crossref computation (default: True) project: Optional project the document belongs to: recorded on the root and every fragment, whose tag becomes "/documents" (bare "documents" without a project)
Returns: {document_key, root_id, fragment_count, node_map: {node_kind: [ids]}}
Inputs: content (required), document_key (required), tags, project, +3 more. Returns: result
memory_tag_hierarchyB
Return stored tags organised as a namespace hierarchy.
Inputs: include_root. Returns: result
memory_tagsB
Return the allowlisted tags.
Inputs: no named parameters. Returns: result
memory_unlinkA
Remove a link between two memories.
Args: from_id: Source memory ID to_id: Target memory ID bidirectional: If True, also remove reverse link (default: True)
Returns: Dict with removed links
Inputs: to_id (required), from_id (required), bidirectional. Returns: result
memory_updateB
Update an existing memory.
Metadata updates merge into existing metadata by default. Set a metadata key to null/None to delete that key. Pass replace_metadata=True only when intentionally replacing the whole metadata object.
Inputs: memory_id (required), tags, content, metadata, +1 more. Returns: result
memory_upload_imageA
Upload an image file directly to R2 storage.
Uploads a local image file to R2 and returns the r2:// reference URL that can be used in memory metadata.
Args: file_path: Absolute path to the image file to upload memory_id: Memory ID this image belongs to (used for organizing in R2) image_index: Index of image within the memory (default: 0) caption: Optional caption for the image
Returns: Dictionary with r2_url (the r2:// reference) and image object ready for metadata
Inputs: file_path (required), memory_id (required), caption, image_index. Returns: result
memory_validate_tagsC
Validate stored tags against the allowlist and report invalid entries.
Inputs: include_memories. Returns: result
memory_verify_integrityA
Read-only embedding integrity doctor with bounded offending ids.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 44 tools
Most tools have clearly distinct purposes: specialized create variants for issues, todos, sections, and documents, plus separate search modes. A few clusters overlap (memory_list vs memory_list_compact vs semantic/hybrid search; memory_create vs absorb vs create_batch), but the descriptions clarify their intents well enough.
The memory_ prefix and snake_case are used consistently throughout, and mutations mostly follow verb_noun (create_issue, delete_document, rebuild_crossrefs). Some informational tools use bare nouns (memory_stats, memory_insights, memory_clusters) and a few deprecated/legacy names (memory_list_compact, top_k alias) break the pattern slightly, but the overall scheme remains predictable.
44 tools is well above the 25+ threshold, making the selection surface very heavy for an agent even though the domain is broad. Many maintenance, admin, and analytics tools could be consolidated or hidden behind fewer entry points.
The tool surface is remarkably complete: full CRUD for memories and documents, specialized issue/todo types, multiple search modes, deduplication, merging, supersession detection, tags, hierarchy, stats, import/export, image handling, and events. Minor gaps like the lack of dedicated todo/issue update tools are covered by generic memory_update, so there are no real dead ends.
Maintenance
Related MCP Connectors
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Shared long-term memory for AI agents: save and recall context as a searchable knowledge graph.
Persistent memory and knowledge graph for AI assistants — keyword + vector + graph search.
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.
Related MCP Servers
AlicenseNot gradedqualityDmaintenancePersistent AI memory server with hybrid search and embedded sync. Enables AI agents to store, retrieve, and manage information across sessions with temporal knowledge graph support.MIT- AlicenseNot gradedqualityDmaintenanceEnables AI agents to maintain persistent, local memory with retrieval-augmented search, knowledge graphs, and context surfacing, without any cloud dependencies.MIT
- AlicenseNot gradedqualityDmaintenanceProvides persistent memory for AI tools by building a local knowledge graph from conversations, enabling cross-session recall and context awareness without cloud dependencies.9MIT
- AlicenseNot gradedqualityDmaintenancePersistent memory and knowledge graph server that fuses keyword, vector, and graph search into a single query, enabling AI assistants to recall typed entities and relationships across sessions.MIT