Skip to main content
Glama
AliYar-Khan

light-agent-memory-mcp-server

by AliYar-Khan

light-agent-memory-mcp-server

永続的なエージェントメモリ用のMCPサーバー — プロジェクト、プリファレンス、セッションでの学びをローカルのSQLiteデータベースに保存します。

ハーネス非依存。 MCP互換の任意のクライアントで動作します: opencode、Claude Desktop、Cursor、Windsurf など。

FavoritePD

npm install -g light-agent-memory-mcp-server

または npx で直接使用する場合(インストール不要):

npx light-agent-memory-mcp-server

Related MCP server: tartarus-mcp

設定

MCPクライアントの設定に追加します:

opencode (~/.config/opencode/opencode.json):

{
  "mcp": {
    "memory": {
      "type": "local",
      "command": ["npx", "-y", "light-agent-memory-mcp-server"],
      "enabled": true
    }
  }
}

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "light-agent-memory-mcp-server"]
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "light-agent-memory-mcp-server"]
    }
  }
}

カスタムデータベースパス

npx light-agent-memory-mcp-server --db /path/to/custom.db

ツール

プロジェクトメモリ

ツール

説明

memory_project_save

プロジェクトのコンテキスト(技術スタック、アーキテクチャ、規約)を保存/更新

memory_project_get

プロジェクト名で詳細を取得

memory_project_list

保存済みの全プロジェクトを一覧表示

プリファレンスメモリ

ツール

説明

memory_pref_save

個人のコーディングプリファレンスを保存/更新

memory_pref_get

キーでプリファレンスを取得

memory_pref_list

プリファレンスを一覧表示(カテゴリでフィルタリング可能)

学習メモリ

ツール

説明

memory_learning_save

セッションでの学び(解決策、知見、バグのメモ)を記録

memory_learning_search

キーワードで学びを検索

汎用

ツール

説明

memory_save

統合保存(タイプに応じて自動振り分け)

memory_search

タイプ横断のキーワード検索

memory_delete

タイプとIDでメモリを削除

memory_list

ページングと統計情報付きで全メモリを一覧

使用例

プロジェクトを保存:

memory_project_save({
  name: "my-app",
  path: "/home/user/projects/my-app",
  tech_stack: ["TypeScript", "React", "SQLite"],
  architecture: "Monorepo with pnpm workspaces, plugin-based architecture",
  conventions: "ESM-only, strict TypeScript, no comments in code"
})

プリファレンスを保存:

memory_pref_save({
  key: "language.typescript.style",
  value: "Always use ESM imports, strict mode, and prefer readonly types",
  category: "language"
})

学びを記録:

memory_learning_save({
  title: "Fix SQLite WAL mode deadlock",
  content: "When using WAL mode in SQLite, set busy_timeout to 5000ms to avoid SQLITE_BUSY errors under concurrent reads.",
  project_name: "my-app",
  tags: ["sqlite", "debugging", "concurrency"]
})

全メモリを検索:

memory_search({ query: "SQLite" })

データベース

データはデフォルトで ~/.agent-memory/memory.db に保存されます(Node.js組み込みの node:sqlite によるSQLite)。データベースは初回実行時に自動的に作成されます。

スキーマ

  • projectsidname(一意)、pathtech_stack(JSON)、architectureconventionsnotes、タイムスタンプ

  • preferencesidkey(一意)、valuecategory、タイムスタンプ

  • learningsidtitlecontentproject_nametags(JSON)、タイムスタンプ

開発

git clone https://github.com/AliYar-Khan/light-agent-memory-mcp-server.git
cd light-agent-memory-mcp-server
npm install
npm run build
npm run dev  # runs with tsx, no build step

ライセンス

MIT

A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides persistent, local-first AI memory across sessions via MCP tools for storing, searching, and retrieving context from past interactions.
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.
    5
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides persistent memory for AI coding agents via MCP, enabling agents to store and semantically recall facts, events, and lessons across sessions, all running locally without cloud dependencies.
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Persistent memory for AI coding agents. Enables agents to save and recall decisions, patterns, bugs, and context across sessions via an MCP server with local SQLite storage.
    45
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.

  • Persistent memory for AI agents. Search, store, and recall across sessions.

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

View all MCP Connectors

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/AliYar-Khan/light-agent-memory-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server