Skip to main content
Glama
jommar
by jommar

memory-mcp

永続的なエージェントメモリのためのスタンドアロンMCPサーバー — 短期/長期の階層、測定可能な信頼性、ライフサイクルメンテナンスを備え、バックエンドは SQLite (FTS5 + sqlite-vec) とローカル MiniLM 埋め込みです。外部サービスや API キーは不要です。

要件

  • Node.js >= 22

  • このパッケージはコンパイル済みの JavaScript を同梱しているため、実行時に TypeScript ツールチェーンは不要です。

Related MCP server: MCP Vector Memory

インストール

npm install @jommar/memory-mcp

2つの実行ファイルが提供されています。

コマンド

用途

memory-mcp-server

MCPサーバー(デフォルトは stdio、HTTP は MEMORY_TRANSPORT で指定)

memory-mcp

ストアメンテナンスCLI(exportimportreindexstats

クイックスタート

stdio(デフォルト)

MCPクライアントにサーバーバイナリを指定します。

{
  "mcpServers": {
    "memory": {
      "command": "memory-mcp-server"
    }
  }
}

または直接実行します。

memory-mcp-server

npx を使用する場合は、サーバーのバイナリを明示的に選択します(初回使用時にパッケージがインストールされます)。

npx -y -p @jommar/memory-mcp memory-mcp-server

HTTP(localhostのみ)

MEMORY_TRANSPORT=http memory-mcp-server

HTTPエンドポイントはデフォルトで 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

モデルが利用可能になるまでは、rememberrecall は引き続き動作します — キーワード検索のみにフォールバックします。モデル導入後は、CLI の reindex を使用してベクトルをバックフィルしてください。

設定

すべての設定は MEMORY_* 環境変数で行います(設定ファイルはありません)。

変数

デフォルト

用途

MEMORY_DB_PATH

~/.memory-mcp/memory.db

SQLiteデータベースファイル

MEMORY_TRANSPORT

stdio

stdio または http

MEMORY_HTTP_HOST

127.0.0.1

HTTPバインドホスト(localhostのみ)

MEMORY_HTTP_PORT

3000

HTTPバインドポート

MEMORY_EMBEDDING_OFFLINE

true

false を指定すると一度だけのモデルのダウンロードにオプトインする

MEMORY_EMBEDDING_DOWNLOAD_TIMEOUT_MS

300000

モデルのダウンロード試行のタイムアウト

MEMORY_EMBEDDING_CACHE_DIR

~/.memory-mcp/cache

ダウンロードしたモデルのキャッシュ先

ツール

10個のツールが登録されています: rememberrecallgetupdateforgetlistconfirmcontradictpromoteconsolidate。入力と動作の完全なリファレンスは docs/tools.md を参照してください。

rememberinteractive オプトインを受け付けます。ほぼ重複したエントリを検出すると、クライアントにマージまたは作成(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 を参照してください。

Maintenance

ActivityMaintained
ResponsivenessSyncing

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

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides 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.
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides persistent long-term memory for LLMs via local SQLite storage and semantic search, enabling recall across sessions without external APIs.
    19
    4
    MIT

Latest Blog Posts

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