Agentdb logo

Agentdb

Self-learning vector memory with 41 MCP tools for patterns, skills, reflexion, causal links, and hierarchical recall.

Install Agentdb

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for agentdb, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

agentdb MCP server exposes a RuVector-backed memory engine through 41 MCP tools for storing and retrieving agent knowledge. It combines HNSW vector search with pattern storage, reflexion memories, skill libraries, hierarchical context, causal edges, and deletion operations. Feedback from an agent can influence later ranking through its self-learning loop. Use it when an MCP-compatible agent needs persistent, local memory in a single file rather than a separately hosted vector database.

Use cases

  • Store and retrieve episodic agent memories
  • Search reusable patterns and skills
  • Record feedback to improve future retrieval
  • Link memories with causal relationships
  • Recall hierarchical context during tasks

Key features

  • 41 MCP tools for agent memory
  • HNSW vector and hybrid BM25 search
  • Feedback-driven self-learning retrieval
  • Single-file .rvf storage
  • Reflexion, skills, patterns, and causal edges
  • Optional memory injection screening

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 15d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars110Stargazers on the source repository.
Last commit19d agoMost recent push to the default branch.

How Agentdb works

What agentdb does

agentdb provides persistent vector memory for agents through the Model Context Protocol. Its MCP interface exposes 41 tools over the same engine available through the npm package and command-line interface. The tool set includes pattern storage and search, hierarchical memory, causal edges, a skill library, reflexion records, and deletion.

Memory is stored in a single .rvf cognitive container that can hold vectors, indexes, learning state, and an audit trail. The package is designed for local and offline use, with support for Node.js, browser environments, and edge runtimes. The MCP setup uses the agentdb command through npx.

How it works

AgentDB performs vector retrieval with HNSW indexes and can combine dense vector results with BM25 keyword matches through Reciprocal Rank Fusion. An agent can report whether a retrieved result was useful by recording feedback. A Thompson Sampling bandit then adjusts ranking, reinforcement-learning selection, and compression choices based on that signal.

The memory model includes several patterns for agent state: episodic replay through Reflexion, reusable skills, causal reasoning, hierarchical context, semantic clustering, and working memory. Graph-oriented features include Cypher queries, causal relationships, hyperedges, and graph attention capabilities.

The underlying RuVector engine is accessed through Rust and NAPI bindings. Optional native packages can accelerate graph transformation, min-cut processing, and binary quantization; JavaScript fallbacks are available for the listed optional integrations.

Setup and configuration

Node.js 20.9.0 or newer is required. Register the MCP process with Claude Code using:

Terminal
claude mcp add agentdb -- npx agentdb@latest mcp start

This starts the server through npx and makes the MCP tools available to the client. The underlying library can also be installed with npm install agentdb, while npx agentdb init creates a local database for command-line use.

AgentDB can use local storage without API keys or a separate database service. The optional aidefence integration adds prompt-injection screening for stored memories; its behavior is controlled with AGENTDB_INJECTION_GUARD=warn or AGENTDB_INJECTION_GUARD=block.

Tools and capabilities

The MCP tool collection covers:

  • Pattern storage and semantic search
  • Hierarchical memory storage and recall
  • Reflexion memory recording and retrieval
  • Skill-library operations
  • Causal-edge creation and graph-oriented memory
  • Vector and hybrid keyword search
  • Feedback recording for self-learning retrieval
  • Memory deletion

The storage format supports quantization options including PQ8, PQ4, and binary quantization. AgentDB also advertises JWT authentication, API-key rotation, Argon2id hashing, audit trails, and a cryptographic witness chain for deployments that need these controls.

Limitations and notes

The server requires Node.js 20.9.0 or newer; Node.js 18 is no longer supported. Search quality improvements depend on the agent providing useful feedback after retrieval. Optional native integrations are not required, but their accelerated paths depend on additional packages. The MCP interface is intended for clients that can launch the standard npx agentdb@latest mcp start process.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agentdb

agentdb is an MCP server that connects AI agents to a RuVector-backed vector memory store. Its main tools support pattern storage and search, hierarchical recall, reflexion memories, skill libraries, causal edges, feedback recording, and deletion through the Model Context Protocol.

Install it for Claude Code with `claude mcp add agentdb -- npx agentdb@latest mcp start`. This launches the MCP server through `npx` and registers its 41 tools. Node.js 20.9.0 or newer is required.

Yes, agentdb works with Cursor through its standard MCP process. Configure Cursor to launch `npx agentdb@latest mcp start`; the server exposes tools for vector memory, patterns, skills, reflexion, causal edges, and hierarchical recall.

No, agentdb can run locally without API keys or a separate database service. It stores vectors, indexes, learning state, and audit data in a single `.rvf` file and can operate offline.

AgentDB improves retrieval when the agent records feedback about returned results. A Thompson Sampling bandit uses that signal to adjust ranking, reinforcement-learning selection, and compression choices for later searches.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgentdb AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentdb?style=directory)](https://allmcps.com/mcp/agentdb)
HTML Embed
<a href="https://allmcps.com/mcp/agentdb"><img src="https://allmcps.com/api/badge/agentdb?style=directory" alt="Agentdb on AllMCPs" /></a>