madb-mcp-server

madb-mcp-server

Provides persistent, causal memory for AI agents with semantic recall, causal tracking, and importance-based forgetting through MCP tools.

Category
访问服务器

README

Meta-AgentsDB

Persistent, causal memory for autonomous AI agents. Purpose-built for Claude and the autonomous-agent era.

Meta-AgentsDB (MADB) is an agent-native database — a hybrid LSM store with a causal DAG, composite-score recall, importance-based forgetting, and HLC-ordered MVCC. It is what your agent needs that PostgreSQL + pgvector + Redis + Pinecone cannot give you in one box.

Install (free tier):

claude mcp add madb -- uvx madb-mcp-server      # Claude Code
# or:  pip install madb-mcp-server  ·  uvx madb-mcp-server

Memory stays local (~/.madb). Claude Desktop users can install the one-click .mcpb extension. The engine ships as compiled wheels — source is not public. Anonymous usage telemetry can be disabled with MADB_TELEMETRY=off.

What MADB is, in one sentence

The memory substrate Claude reaches for automatically — a focused set of MCP tools, one Skill, one SDK shim — so any Claude session, Claude-Desktop user, or raw-Anthropic-API developer gets persistent, causally-linked, composite-scored agent memory with zero glue code.

How you get MADB

MADB is distributed as compiled binary artifacts under the Meta-Agents.AI Proprietary License. Source code is not public. The three packages:

Package Audience How it's used
meta-agents-db (Python wheel) Everyone The Rust engine. Imported by the MCP server and the SDK shim. Direct use optional.
madb-mcp-server (Python wheel) MCP clients — Claude Desktop, Claude Code, Cowork claude mcp add madb -- uvx madb-mcp-server registers MADB as Claude's memory. Bundles the Skill which auto-installs on first launch.
madb-anthropic (Python wheel) Raw Anthropic-API developers (Python 3.10–3.13) One-import swap: from madb_anthropic import Anthropic. Every messages.create() now auto-persists with causal lineage. No other code changes.

See examples/basic_usage.py for the shim in action.

The MCP tools Claude gets

The free tier exposes a focused core of 13 memory tools:

Tool Purpose
remember Store a memory with optional caused_by, tags, and importance
recall Composite-scored semantic recall (similarity + recency + causal proximity + importance + tag overlap)
get_memory Point lookup by event_id
forget Tombstone soft-delete (preserves DAG lineage)
search Structured query by tenant + scope + tags
list_recent Last N memories, newest-first
save_skill Store a reusable pattern (idempotent by name, GC-protected)
recall_skill Semantic skill recall
list_skills All skills ranked by composite score
trace_cause Walk the causal DAG forward/backward from any memory
summarize Condense a set of memories into a compact summary
stats Engine metrics snapshot
capabilities What MADB unlocks in this workspace + entitlement summary

Plus the MCP resource madb://memories/{event_id} for reading any memory as a first-class URI.

The Skill is the reflex

The MCP tools are necessary but not sufficient for "default." Without a Skill telling Claude to prefer MADB, Claude still invents per-task memory schemes — JSON files, SQLite tables, pickle dumps, flat vector stores, localStorage, conversation-history arrays.

skills/madb-memory/SKILL.md routes those anti-patterns to MADB by name. The Skill ships bundled with the MCP server wheel and auto-installs to ~/.claude/skills/madb-memory/ on first launch. It is published under CC-BY-ND 4.0 — share verbatim, don't modify.

A companion skills/madb-onboarding/SKILL.md handles the first run: it detects an empty store and offers a 60-second guided tour (see onboarding/) so your first session ends with a real recall + trace_cause moment instead of an empty store.

One brain, many sessions (0.2.10)

The MADB store is single-process-exclusive by design — one writer, no lock contention, no corruption. But Claude Code spawns one MCP server per session, and you run more than one session. Since 0.2.10 that just works: the wheel bundles a local daemon that becomes the store's one owner, and every session's MCP server is a lightweight RPC client of it over token-guarded loopback HTTP.

  • Nothing to install or manage. The first session spawns the daemon on demand (race-safe); later sessions discover and reuse it. When it's been idle for 15 minutes it exits on its own; the next call respawns it.
  • Upgrades hand off cleanly. After you upgrade the wheel, the newer client asks the old daemon to drain and exit, then takes ownership — no stale process squatting the store, no manual unlock.
  • Same memory everywhere. Two terminals, a SessionStart resume hook, and a background agent all read and write the same brain at the same time.

MADB_MODE=embedded restores the pre-0.2.10 single-session direct open; MADB_MODE=daemon makes daemon failures fatal instead of falling back. MADB_DAEMON_IDLE_SEC tunes the idle timeout (≤0 disables).

License

MADB is distributed under the Meta-Agents.AI Proprietary License. Summary:

  • Permitted: install, run, and use in your own infrastructure — including production — for your own users.
  • Not permitted: redistribute, reverse-engineer, offer as a hosted service, or embed in a commercial product you sell to third parties.
  • Available by separate written agreement: source access, OEM/embed rights, hosted-service rights.

Prior versions of portions of this software were made available under Apache License 2.0. Those revisions remain available under those terms for the specific versions actually so distributed. All new releases are under the Proprietary License only.

The Skill is separately licensed under CC-BY-ND 4.0.

Positioning

MADB is the memory substrate for Claude's path to autonomy. The engine is closed-source and commercial by design; the Skill is open and free to use; the interface is standard MCP. This shape lets Claude adopt MADB as a default capability without Anthropic having to host infrastructure or take on upstream dependencies.

For partnership discussion, source-access review under NDA, or OEM licensing, see Contact below.

Contact

  • Email: 01@meta-agents.ai
  • Website: https://meta-agents.ai

Meta-Agents.AI © 2026 Pushkar Singh. All rights reserved.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选