Agent Memory Hub
MCP server by zhiwuli0228 Verified · npm:agent-memory-hub
Agent Memory Hub gives AI coding agents a shared, local long-term memory stored as plain Markdown files. Agents propose memories, and a human approves them before they are saved. It is for developers who use several agents such as Claude Code, Codex and opencode.
Install Agent Memory Hub
Built from the published package, never by AI.
claude mcp add agent-memory-hub -- npx -y agent-memory-hubRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agent-memory-hub": {
"args": [
"-y",
"agent-memory-hub"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agent-memory-hub": {
"args": [
"-y",
"agent-memory-hub"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agent-memory-hub": {
"args": [
"-y",
"agent-memory-hub"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agent-memory-hub -- npx -y agent-memory-hub{
"mcpServers": {
"agent-memory-hub": {
"args": [
"-y",
"agent-memory-hub"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agent-memory-hub npx -y agent-memory-hubGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-memory-hub block.
About
Agent Memory Hub is a memory bridge for AI coding agents. It runs as one local service that Claude Code, Codex, opencode, gemini-cli and DSH can share through MCP or a shell. Memory is stored in plain Markdown files with YAML frontmatter and a JSONL ledger, organized into project, domain and global layers.
Agents can only propose memories, and a human must approve them before they are committed. Each stored fact records who approved it, when, and from which conversation. The source says the runtime makes no network calls by default and that scheduled distillation can turn recent events into a review batch. It is aimed at developers who want file-based, auditable memory shared across several AI coding agents. The project is under active development.
Written from the project's README and checked against it.
Tools it gives your assistant
memory_searchSearches stored memory across the project, domain and global layers.memory_getGets a stored memory entry.memory_statusReports the status of the memory hub.memory_proposeProposes a new memory that a human must approve before it is saved.memory_preflightListed as a preflight tool. The source gives no further detail.memory_citeListed as a citation tool. The source gives no further detail.memory_close-taskListed as a task-closing tool. The source gives no further detail.memory_dejavuListed as a tool for repeated content. The source gives no further detail.memory_distillRuns distillation, which turns recent events into a review batch.
What you need
- DSH (DeepSeek Harness) for the plugin install
- Node.js with npm for the CLI and MCP server
- A local directory for the memory root
Try asking
- Propose a memory for this decision so I can approve it later.
- Search my memory hub for notes about the database migration.
- Show the status of my memory hub for this project.
Good to know
- Under active development; the first stable release targets 0.1.0.
- Roadmap steps for core storage, transport and the dashboard are still listed as pending.
- Only non-DSH hosts need the memhub CLI.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Agent Memory Hub
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Agent Memory Hub: common questions
Does Agent Memory Hub need a cloud account?
No. The source says no cloud is required, memory lives in local files you own, and the runtime is zero-network by default.
Can agents save memories without approval?
No. Agents can propose memories, but only a human can commit them, and the source says agents never self-commit.
Is Agent Memory Hub stable yet?
The source says it is under active development. The stable edition of the same format is dsh-memory-hub for DSH.
How do I install Agent Memory Hub?
In Claude Code run claude mcp add agent-memory-hub -- npx -y agent-memory-hub. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Agent Memory Hub the official server?
Agent Memory Hub is published by npm:agent-memory-hub from its verified domain in the official MCP Registry.
Is Agent Memory Hub free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Agent Memory Hub safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Agent Memory Hub?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Agent Memory Hub work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
