MemoryAI
コア原則
MemoryAIは、大量の永続的知識をローカルに保存し、LLMコンテキストには制限付きで関連性の高いサブセットのみを取得することで、事実上無制限の永続メモリを提供します。
従来のAIワークフローは、生の会話ログ(80,000+トークン)をコンテキストウィンドウにそのまま流し込むため、APIコストの高騰、注意力の低下、プロンプトの逸脱を引き起こします。MemoryAIは自律的な認知レイヤーとして動作し、会話イベントを捕捉して永続的な決定を抽出し、厳格なトークン予算の下でコンテキストを動的に階層化します:
User Request / IDE Event
↓
Event Normalizer (session.*, task.*, file.*, decision.*)
↓
Policy Evaluator (ignore, observe, capture, review, immediate)
↓
Memory Orchestrator (Two-Phase Writes & Privacy Redaction)
↓
SQLite Engine (FTS5 BM25 + Dense Vectors + Version Ledger)
↓
Hybrid Retrieval & Multi-Factor Reranking
↓
Progressive Disclosure Context (Level 1 → Level 2 → Level 3 → Level 4)
↓
Strict Token Budget (300 / 500 / 1,000 / 2,000 tokens)
↓
LLMRelated MCP server: ContextKeep
主な特長
手動操作ゼロ: MemoryAIは、Git/パッケージマニフェストを介してプロジェクトの識別情報を自動検出し、関連するコンテキストを想起して、永続的な決定を捕捉し、セッションの引き継ぎを生成します。
ユニバーサルなクロスクライアント互換性: 正規化された会話イベント(
MemoryAIConversationEvent)が、Claude Code、Cursor、Codex、Gemini CLI、ChatGPT、MCPクライアントをシームレスに橋渡しします。MCP 2026ステートレスコアとTasks拡張: ステートレス実行、明示的なアプリケーションハンドル(
memoryContextId、taskId、handoffId、snapshotId)、バックグラウンドタスク管理を備えたMCP 2026仕様に完全準拠。4段階のプログレッシブ開示: レベル1(150トークンの要約) とレベル2(正準的事実) から、レベル3(裏付けとなる根拠) とレベル4(会話トレース) へと、コンテキストが段階的に構築されます。
メモリスナップショットと履歴差分: 特定時点のプロジェクトスナップショット(
memoryai snapshot create)を取得し、アーキテクチャ上の意思決定をまたぐ履歴差分(memoryai diff)を確認できます。プロジェクトメモリヘルス診断: 鮮度、信頼度、競合率、出所、引き継ぎの完全性を評価するリアルタイムの0〜100ヘルススコア(
memoryai health)。プライバシーと2相書き込み: RSA秘密鍵、AWSアクセスキー、JWTトークン、接続文字列、PIIを、永続保存前に自動検出して墨消しします。
無停止の埋め込みマイグレーション: 安全なロールバック機能を備えたアトミックなシャドウテーブル・ベクターインデックス化(
memoryai embeddings migrate)。ポータブルな
.memorypack形式: SHA-256整合性チェックにより、永続メモリのエクスポート、バックアップ、リストアが可能。
クイックスタート
1. インストール
# Clone the repository
git clone https://github.com/memoryai/memoryai.git
cd memoryai
# Install dependencies and build monorepo packages
npm install
npm run build2. 14項目の診断ドクターを実行
# Verify database, vector indexes, encryption, SSRF protection, and MCP tools
node cli/dist/bin.js doctor3. 基本的な使い方(記憶と想起)
# Store a durable architectural decision
node cli/dist/bin.js remember "Architectural decision: Standardized on Fastify v4 and SQLite with WAL mode" --type decision --importance 0.95
# Recall bounded context with a 500 token budget
node cli/dist/bin.js recall "Fastify and SQLite database decisions" --max-tokens 500アーキテクチャ
MemoryAI Platform
│
┌────────────────────────┼────────────────────────┐
▼ ▼ ▼
AI Clients MCP 2026 Layer Local SDK & CLI
(Claude, Cursor, (Stateless HTTP/Stdio, (Node, Shell, API)
Gemini, Codex, GPT) Explicit Handles)
│ │ │
└────────────────────────┼────────────────────────┘
▼
Event Normalizer
(session.*, task.*, file.*, memory.*)
│
▼
Event Policy Engine
(ignore, observe, capture, review, immediate)
│
▼
Memory Orchestrator
┌────────────────────────┼────────────────────────┐
▼ ▼ ▼
Memory Brain & Memory Job & Tasks Progressive Context
Two-Phase Write Engine (Async Long-Running) (Level 1 - 4 Layers)
│ │ │
▼ ▼ ▼
Privacy Classifier & Integrity Checker & Semantic Cache &
Selective Encryption Health Monitor (0-100) Model Router
│ │ │
└────────────────────────┼────────────────────────┘
▼
SQLite Storage Engine
(Memories, Vectors, Versions, Snapshots, Tasks, Events, Sync Queue)イベント駆動メモリ
MemoryAIは、手動での操作を必要とせず、IDEおよびエージェントのライフサイクルイベントに自動的に反応します:
# Emit an event to the MemoryAI pipeline
node cli/dist/bin.js remember "Project migrated to Angular 21 with standalone components" --type decisionイベント種別 | ポリシーアクション | デフォルトの処理 |
|
| 重要度が高いものとして即座に永続化 |
|
| Memory Brainの評価を経て処理 |
|
| 以前の依存関係バージョンを置き換える |
|
| 構造化されたセッション継続レコードとして保存 |
|
| 信頼度が低い場合はレビューキューに隔離 |
|
| コンテキストを増やさずローカルイベントログに記録 |
|
| プロジェクトの識別情報を自動検出し、引き継ぎを準備 |
プログレッシブ開示コンテキスト
現在のプロンプトに必要な深さの情報だけを取得します:
レベル1(要約): 目的と主要な事実を150トークン以内に収めたエグゼクティブサマリー。
レベル2(正準的): 重複排除された重要度の高いメモリレコードを、安全な
<MEMORY_DATA>コンテナに整形したもの。レベル3(根拠): 正準的レコードに、ソースの出所、フアイルリンク、タイムスタンプのメタデータを付随させたもの。
レベル4(会話): 明示的な要求に応じて、生のセグメントを深くトレースしたもの。
# Recall Level 1 summary context
node cli/dist/bin.js recall "OAuth architecture" --max-tokens 300MCP 2026 とTasks拡張
MemoryAIは、Claude Desktop、Claude Code、Cursor、Codex、およびあらゆるMCPクライアント向けに、stdio上で完全準拠のMCPサーバーを提供します。
コアMCPツール(30のアクティブツール):
memory_auto_context: プロジェクトの自動検出、意図の評価、制限付きメモリの想起。memory_recall: トークン制限付きハイブリッド検索。memory_progressive_recall: 多段階のプログレッシブ・コンテキスト開示。memory_remember: 自律的な永続メモリの捕捉。task_create、task_get、task_cancel、task_list: バックグラウンドジョブ向けのノンブロッキングなMCP 2026 Tasks拡張。memory_snapshot_create、memory_snapshot_list、memory_snapshot_compare: 特定時点の状態管理。memory_diff: メモリの履歴バージョン比較。memory_health: 0〜100のプロジェクトヘルススコア。memory_review_queue: 隔離されたメモリの検査とレビュー。memory_handoff_create、memory_handoff_get: 複数日にわたるセッション継続。memory_share: スコープと権限チェック付きの共有。memory_explain、memory_explain_capture: 検索と捕捉の診断的説明。
スナップショットとバージョン管理
# Create a point-in-time milestone snapshot
node cli/dist/bin.js snapshot create v1.0.0-release "Production release snapshot"
# List project snapshots
node cli/dist/bin.js snapshot list
# Compare two project snapshots
node cli/dist/bin.js snapshot compare snap_abc123 snap_def456
# View historical diff of a memory record
node cli/dist/bin.js diff mem_123 1 2ヘルスと診断
# Check 0-100 Project Memory Health score and diagnostic breakdown
node cli/dist/bin.js health
# Scan for orphaned vectors, broken provenance, or duplicate hashes
node cli/dist/bin.js verify
# Run automated conservative self-healing repair
node cli/dist/bin.js repair
# Calculate token economics and cloud API cost savings
node cli/dist/bin.js cost
# Run sandbox memory policy simulation
node cli/dist/bin.js simulate balanced
# Disaster recovery mode
node cli/dist/bin.js recoveryセキュリティとプライバシーのアーキテクチャ
セキュリティ管理策 | 実装 |
プライバシークラシファイア | 秘密鍵、AWS認証情報、JWTトークン、データベースURI、PIIを自動的に拒否/墨消しする |
プロンプトインジェクションシールド | 厳格な |
テナント・ユーザー分離(IDOR) | すべてのクエリと変更操作に対して、サーバー側でテナント、ユーザー、プロジェクトの認可チェックを強制する |
SSRF防御 | ループバック( |
ストレージ暗号化 | 機密コンテンツフィールドに対するAES-256-GCM認証付き暗号化 |
レートリミッター | インメモリのスライディングウィンドウ方式トークンバケットレートリミッター |
アーカイブセキュリティ | Zipスリップ(ディレクトリトラバーサル)ガードと解凍爆弾の比率制限 |
CLIリファレンス
コマンド | 説明 |
| ローカルの |
| ローカルメモリの統計、プロジェクトの識別情報、メトリクスを表示します |
| 永続的な決定、好み、事実を保存します |
| 厳格なトークン制限で、制限付きコンテキストを取得します |
| ハイブリッドFTSとベクターマッチングでメモリを検索します |
| 構造化されたセッション引き継ぎレコードを管理します |
| 特定時点のプロジェクトスナップショットを管理します |
| メモリレコードの履歴バージョンを比較します |
| プロジェクトメモリのヘルススコア(0〜100) |
| データベースに整合性の問題がないかスキャンします |
| 保守的な自動整合性修復 |
| クラウドトークンの削減量とコスト削減額を計算します |
| サンドボックス・ポリシーのシミュレーションを実行します |
| 14項目のシステム診断を実行します |
| セキュリティ強化の状態を検証します |
| メモリをポータブルな |
|
|
テスティングと検証
# Run all 89 unit, integration, memory, retrieval, MCP, concurrency, and performance tests
npm test
# Run all 22 OWASP API Top 10 and Privacy Security tests
npm run test:security
# Run combined full test suite
npm run test:allライセンス
MIT License. Copyright (c) 2026 MemoryAI Contributors.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with persistent, searchable memory that survives across conversations using semantic search, temporal versioning, and smart organization. Enables long-term context retention and cross-session continuity for AI assistants.14
- AlicenseNot gradedqualityAmaintenanceProvides infinite long-term memory for AI agents with persistent, searchable storage of project details, preferences, and snippets. Reduces token costs by retrieving only relevant memories while keeping all data stored locally.154MIT
- AlicenseNot gradedqualityAmaintenanceEnables persistent, portable memory for AI agents across sessions, devices, and providers with token-efficient 5-level lazy loading and automatic session capture.41MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to maintain persistent, local memory with retrieval-augmented search, knowledge graphs, and context surfacing, without any cloud dependencies.144MIT
Related MCP Connectors
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Persistent memory for AI agents — verbatim conversations, searchable by meaning.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/toozuuu/MemoryAI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server