Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Agentdb

MCP server by ruvnet Verified · npm:agentdb

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.

  • Score 94
  • 110 stars
  • 169k a week
  • MIT
  • Updated

Install Agentdb

Built from the published package, never by AI.

claude mcp add agentdb -- npx -y agentdb

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Agentdb in Claude Code

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 agentdb block.

About

AgentDB is an agent memory and vector database that ships as an npm library, a CLI and an MCP server. It keeps vectors, indexes, learning state and a cryptographic audit trail in a single .rvf file. Search uses HNSW, and calls to recordFeedback let a Thompson Sampling bandit re-tune ranking for later queries. The source states that self-learning search improves up to 36% from feedback alone.

The MCP server registers 41 tools that cover pattern storage and search, hierarchical and causal memory, reflexion episodes and a skill library. It requires Node.js 20.9.0 or newer and also runs in browsers through WASM, on edge runtimes and offline. The project is aimed at developers building agents that need episodic memory, skill libraries and causal reasoning.

Written from the project's README and checked against it.

Tools it gives your assistant

  • agentdb_pattern_storeStore a successful pattern with embedding and metadata.
  • agentdb_pattern_searchSemantic search for similar past patterns.
  • agentdb_batch_insertBulk insert many patterns at once.
  • agentdb_hierarchical_storeTier-aware memory store for working, short and long term memory.
  • agentdb_hierarchical_recallTier-filtered retrieval of stored memories.
  • agentdb_causal_edgeAdd a causal relationship between memories.
  • agentdb_causal_queryRun Cypher-like graph queries over memories.
  • agentdb_causal_explainExplain why two memories are connected.
  • agentdb_reflexion_storeStore an episode with task, outcome and critique.
  • agentdb_reflexion_recallRetrieve relevant past episodes.

What you need

  • Node.js 20.9.0 or newer
  • An MCP-compatible client such as Claude Code, Cursor or Cline

Try asking

  • Store this successful authentication pattern in agentdb for later reuse.
  • Search agentdb for past patterns similar to this login bug.
  • Explain why these two memories are connected in the causal graph.

Good to know

  • Node 18 is no longer supported.
  • Prompt-injection screening is opt-in through AGENTDB_INJECTION_GUARD.
  • Some native integrations are optional and fall back to JavaScript when missing.

Security check

B
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Agentdb

All alternatives →
Zotero MCP54yyyu
94

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.

AAA Local 6.2k
Genkitx MCP firebase
94

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.

AAA Local 6.7k
Qmd tobi
94

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.

AAA Local 96k/wk
Ruvector ruvnet
94

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.

AAA Local 216k/wk
Claude Mem thedotmack
94

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.

AAA Local 158k/wk
Agentmemory MCP rohitg00
94

Agentmemory gives coding agents persistent memory across sessions and tools. It captures session events, makes decisions and fixes searchable, and lets agents recall them later. It is built for developers who use several coding assistants.

AAA Local 31k

Compare with Zotero MCP, Genkitx MCP or Qmd

Agentdb: common questions

Does AgentDB need an API key or a server?

The source says single-file storage needs no servers, no API keys and no monthly bills.

Where does AgentDB store its data?

Vectors, indexes, learning state and the audit log are kept together in one .rvf file called a Cognitive Container.

Can AgentDB run in a browser?

The source says it runs in Node, in the browser through WASM, on edge runtimes and offline, with the same API and file format.

How do I install Agentdb?

In Claude Code run claude mcp add agentdb -- npx -y agentdb. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Agentdb the official server?

Agentdb is published by npm:agentdb from its verified domain in the official MCP Registry.

Is Agentdb free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Agentdb safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.

What are alternatives to Agentdb?

Similar MCP servers: Zotero MCP, Genkitx MCP, Qmd, Ruvector.

Does Agentdb 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.

Agentdb Install

Add to stack

Loading.