light-agent-memory-mcp-server
light-agent-memory-mcp-server
MCP-сервер для постоянной памяти агента — проекты, предпочтения и выводы из сессий, сохраняемые в локальной базе данных SQLite.
Не зависит от клиентской среды (harness-agnostic). Работает с любым MCP-совместимым клиентом: opencode, Claude Desktop, Cursor, Windsurf и др.
Установка
npm install -g light-agent-memory-mcp-serverИли используйте напрямую через npx (установка не требуется):
npx light-agent-memory-mcp-serverRelated 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Инструменты
Память проектов
Инструмент | Описание |
| Сохранить/обновить контекст проекта (технологический стек, архитектура, соглашения) |
| Получить информацию о проекте по имени |
| Список всех сохранённых проектов |
Память предпочтений
Инструмент | Описание |
| Сохранить/обновить личное предпочтение в программировании |
| Получить предпочтение по ключу |
| Список предпочтений (опционально с фильтром по категории) |
Память уроков
Инструмент | Описание |
| Записать вывод из сессии (решение, инсайт, заметка об ошибке) |
| Поиск выводов по ключевому слову |
Общие
Инструмент | Описание |
| Единое сохранение (автоматический выбор по типу) |
| Поиск по всем типам по ключевому слову |
| Удалить запись по типу и ID |
| Список всех записей с пагинацией и статистикой |
Примеры
Сохранить проект:
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 (SQLite через встроенный в Node.js модуль node:sqlite). База данных создаётся автоматически при первом запуске.
Схема
projects —
id,name(уникальное),path,tech_stack(JSON),architecture,conventions,notes,timestampspreferences —
id,key(уникальное),value,category,timestampslearnings —
id,title,content,project_name,tags(JSON),timestamps
Разработка
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
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
- AlicenseNot gradedqualityCmaintenanceProvides persistent, local-first AI memory across sessions via MCP tools for storing, searching, and retrieving context from past interactions.1MIT
- AlicenseNot gradedqualityCmaintenanceA local-first MCP memory server providing persistent, searchable memory for AI agents, powered by SQLite.51Apache 2.0
- AlicenseNot gradedqualityAmaintenanceProvides 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
- AlicenseNot gradedqualityCmaintenancePersistent 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.452MIT
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.
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/AliYar-Khan/light-agent-memory-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server