memory-mcp
memory-mcp
永続的なエージェントメモリのためのスタンドアロンMCPサーバー — 短期/長期の階層、測定可能な信頼性、ライフサイクルメンテナンスを備え、バックエンドは SQLite (FTS5 + sqlite-vec) とローカル MiniLM 埋め込みです。外部サービスや API キーは不要です。
要件
Node.js >= 22
このパッケージはコンパイル済みの JavaScript を同梱しているため、実行時に TypeScript ツールチェーンは不要です。
Related MCP server: MCP Vector Memory
インストール
npm install @jommar/memory-mcp2つの実行ファイルが提供されています。
コマンド | 用途 |
| MCPサーバー(デフォルトは stdio、HTTP は |
| ストアメンテナンスCLI( |
クイックスタート
stdio(デフォルト)
MCPクライアントにサーバーバイナリを指定します。
{
"mcpServers": {
"memory": {
"command": "memory-mcp-server"
}
}
}または直接実行します。
memory-mcp-servernpx を使用する場合は、サーバーのバイナリを明示的に選択します(初回使用時にパッケージがインストールされます)。
npx -y -p @jommar/memory-mcp memory-mcp-serverHTTP(localhostのみ)
MEMORY_TRANSPORT=http memory-mcp-serverHTTPエンドポイントはデフォルトで 127.0.0.1:3000 にバインドし、モダン (2026-07-28) とレガシー (2025-11-25) の両方のプロトコルリビジョンを同じエンドポイントから提供するため、あらゆる MCP クライアントが接続できます。サーバーはステートレスです — セッションIDは不要です。
初回実行
ストアは ~/.memory-mcp/memory.db に自動的に作成されます。埋め込みはオフライン優先です。オプトインしない限り、モデルはダウンロードされません。
# opt in to the one-time model download (about 23 MB, MiniLM-L6, q8 quantized)
MEMORY_EMBEDDING_OFFLINE=false memory-mcp-serverモデルが利用可能になるまでは、remember と recall は引き続き動作します — キーワード検索のみにフォールバックします。モデル導入後は、CLI の reindex を使用してベクトルをバックフィルしてください。
設定
すべての設定は MEMORY_* 環境変数で行います(設定ファイルはありません)。
変数 | デフォルト | 用途 |
|
| SQLiteデータベースファイル |
|
|
|
|
| HTTPバインドホスト(localhostのみ) |
|
| HTTPバインドポート |
|
|
|
|
| モデルのダウンロード試行のタイムアウト |
|
| ダウンロードしたモデルのキャッシュ先 |
ツール
10個のツールが登録されています: remember、recall、get、update、forget、list、confirm、contradict、promote、consolidate。入力と動作の完全なリファレンスは docs/tools.md を参照してください。
remember は interactive オプトインを受け付けます。ほぼ重複したエントリを検出すると、クライアントにマージまたは作成(MRTR)を要求でき、インタラクティブサポートのないクライアントではグレースフルデグラデーションします。
メンテナンスCLI
memory-mcp export ./out # write every memory as a markdown frontmatter file
memory-mcp import ./staging # validate, then import (never overwrites existing keys)
memory-mcp reindex # rebuild FTS + vector indexes from stored content
memory-mcp stats # print store countsドキュメント
docs/tools.md — ツールリファレンス
docs/reliability.md — 信頼性モデルとライフサイクルルール(
consolidateの背後にあるレポート専用メンテナンスエンジン)
ライセンス
MIT — LICENSE を参照してください。
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 Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Persistent memory for AI agents: add, search, update, and delete long-term memories.
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.3
- AlicenseNot gradedqualityNot gradedmaintenanceProvides AI coding agents with persistent, long-term memory through local semantic search and SQLite storage. It enables agents to save and retrieve architectural decisions or project context across different conversation sessions without requiring cloud services.
- FlicenseNot gradedqualityDmaintenanceProvides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.
- AlicenseNot gradedqualityCmaintenanceProvides persistent long-term memory for LLMs via local SQLite storage and semantic search, enabling recall across sessions without external APIs.194MIT
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/jommar/memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server