memware
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@memwareWhat did we decide about the authentication flow last session?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
memware
Give AI agents long-term memory without making users repeat themselves.
memware is a local-first long-term memory layer for MCP-compatible agents. It distills conversations into durable, searchable memory and recalls relevant context in later tasks. Memory stays on the user's machine, while extraction and embedding use the OpenAI-compatible model endpoint the user chooses.
Status: pre-release. Source, tests, and local binary builds are available. Current source version 0.2.0. The npm package and GitHub Release are not public yet, so use the source path below today.
npx memwarewill become available with the first public release.
Why memware
Automatic writes: Stop-hook adapters capture each completed turn from Claude Code and Codex, so persistence does not depend on the model remembering to call a tool.
Cross-agent task continuity: Every agent shares one local memory store; memory_resume hands an unfinished task to the next agent with its status, next step, and the last agent that touched it.
On-demand recall: Eight MCP tools cover status, warmup, context retrieval, processing, search, task handoff, archive, and reset.
Storage-free deployment option: When a host only needs extraction, embedding, and search and keeps its own storage, the stateless kernel service (
src/kernel/) exposes those over HTTP and stores nothing itself.User-owned storage: Structured memory, vector indexes, and audit logs live under a local data directory.
Provider choice: Extraction and embeddings use configurable OpenAI-compatible endpoints instead of a single locked provider.
flowchart LR
A[User talks with an agent] --> B[Stop Hook captures the turn]
B --> C[Extract durable facts and preferences]
C --> D[(Local memory store)]
E[New user request] --> F[MCP recall on demand]
D --> F
F --> G[Response grounded in prior context]Related MCP server: Memory Crystal MCP Server
Try it today
The current source path requires Bun, Claude Code, and an API key for an OpenAI-compatible endpoint.
1. Clone, verify, and build
git clone https://github.com/HackSing/memware.git
cd memware
bun install
bun run test
bun run typecheck
bun run memware:build2. Register the MCP server
Apple Silicon macOS:
claude mcp add memware \
-e MEMWARE_API_KEY="$MEMWARE_API_KEY" \
-- "$PWD/dist/memware/memware-darwin-arm64" serveLinux x64:
claude mcp add memware \
-e MEMWARE_API_KEY="$MEMWARE_API_KEY" \
-- "$PWD/dist/memware/memware-linux-x64" serveWindows x64:
claude mcp add memware \
-e MEMWARE_API_KEY="$MEMWARE_API_KEY" \
-- "$PWD/dist/memware/memware-windows-x64" serveCall memory_status in Claude Code to verify the server. For a custom endpoint, also configure MEMWARE_BASE_URL, MEMWARE_MODEL, MEMWARE_EMBEDDING_MODEL, and the matching embedding dimension. Use MEMWARE_EMBEDDING_BASE_URL for a separate embedding endpoint and provide MEMWARE_EMBEDDING_API_KEY when it uses a different origin.
3. Enable automatic memory
Merge packages/memware/templates/claude-settings-hooks.json into the Claude Code settings, then add packages/memware/templates/claude-md-snippet.md to the project's CLAUDE.md. See the usage reference for configuration, all eight tools, and troubleshooting.
After the first npm release, installation will become:
claude mcp add memware -e MEMWARE_API_KEY=sk-... -- npx -y memware@latest serveUpdating
Source install (current):
cd memware
git pull
bun install
bun run test && bun run typecheck
bun run memware:buildRebuilding overwrites the same dist/memware/<platform> binary your MCP registration points to, so new Claude Code sessions pick it up automatically — no need to re-run claude mcp add or change hook settings. Updates never touch the memory data under ~/.memware/. Check the Changelog before pulling; to roll back, git checkout <commit> and rebuild — the data directory is unaffected.
After the first npm release, npx -y memware@latest serve always resolves the newest published version (pin with memware@<version> when you need stability).
Use cases
Use case | User result |
Long-running coding partnership | Keep project constraints, personal preferences, and prior decisions available across sessions. |
Multi-session work | Recover relevant context in a new session instead of restating the same background. |
Cross-agent task handoff | Start a task in one agent (e.g. Claude Code) and continue it in another (e.g. Codex) from a resume briefing with status, next step, and provenance. |
Private single-user agents | Bind one local service process to one trusted tenant and reject caller-selected identities. |
Authenticated multi-user hosts | Let a trusted downstream map authenticated sessions to isolated tenant capabilities without accepting caller-selected identities. |
Backends that already own their storage | Call the stateless kernel service for extraction, embedding, and ranking only, and keep every memory in the host's own database. |
Local-first workflows | Let users search, audit, and erase the memory they own. |
memware is not a chat-history sync service, and it does not mean conversation text stays entirely on-device. Text used for extraction and embeddings is sent to the model endpoint you configure, while local userId and sessionId routing metadata is omitted from provider prompts. Choose that provider and deployment according to the sensitivity of your data.
Product boundaries
Available | Not yet available |
MCP stdio server plus a token-gated loopback HTTP API with eight memory tools | Non-loopback (remote) HTTP access to the local memory API |
Remotely deployable stateless kernel service ( | Any memory storage inside that kernel service — it computes only |
Claude Code Stop Hook for automatic writes | Hosted cloud sync or a team admin console |
Local builds for macOS arm64, Linux x64, and Windows x64 | Public npm and GitHub Release distribution |
Local SQLite, vector indexes, and audit logs | A non-technical visual memory manager |
Trusted-host multi-tenant capability API | Built-in identity provider or tenant admin console |
Documentation
Usage reference: tools, configuration, data, and troubleshooting
Content operations (Chinese): positioning, cadence, evidence gates, and metrics
Architecture notes (Chinese): MCP surface, single write path, hook mode, and the stateless kernel service
Kernel service contract: wire contract for /extract, /embed, and /search
Contributing: issues, discussions, content, and code changes
Security policy: supported state and private vulnerability reporting
Changelog: user-visible changes and release state
Participate and stay updated
Use the entry point that matches the task:
Report a reproducible problem with the Bug form.
Propose a new product outcome with the Feature request form.
Report missing or misleading docs with the Documentation form.
Share use cases, tutorials, and questions in Discussions.
Use GitHub Watch → Custom → Releases to receive meaningful release updates.
Development
Path | Responsibility |
| CLI serve, hook, and http modes |
| dependency-free |
| extraction, routing, storage and vector-search engine (shared with the kernel service) |
| stateless HTTP kernel service ( |
| kernel service wire contract ( |
| kernel service container image ( |
| npm main package and platform binary packages |
| build, packaging, and content consistency tools |
| MCP, hook, memory-engine, and kernel-service tests |
bun run test
bun run typecheck
bun run content:check
bun run memware:build
bun run memware:pack
bun run kernel:serve
bun run kernel:buildmemware is open-source software licensed under the MIT License. Copyright (c) 2026 Memware.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory for AI agents to retain, retrieve, and recall conversation context through MCP.
Cross-tool persistent memory and context for AI assistants over MCP.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
- memnodeOAuthdev.memnode
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Related MCP Servers
- AlicenseAqualityDmaintenancePersistent memory for AI agents. Store, recall, and share knowledge across sessions with five MCP tools: remember, recall, context, forget, and share. Includes semantic search and agent/user/org scoping.53Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to maintain persistent memory across sessions by capturing conversations, extracting durable knowledge, and injecting relevant context, supporting various MCP-compatible platforms.12MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store, search, assemble, and manage local-first memories through seven MCP tools, including conversation turns, feedback, status, and dashboard access without cloud dependencies.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store and semantically retrieve durable memories across sessions via MCP or REST, with tools for remembering, recalling, asking, updating, and forgetting memories.16 npmMIT