Skip to main content

MCP server for Meta-AgentsDB — persistent causal memory for AI agents

Reason this release was yanked:

"forget didn't remove from recall (embedder-on regression) upgrade to ≥0.2.8"

Project description

madb-mcp-server

Persistent causal memory for Claude Code — 4.65x recall ROI measured in production.

madb-mcp-server gives Claude Code (and any MCP-compatible client) a real database backend for agent memory: causal chains, composite-scored recall, policy-gated access, and built-in analytics.

Install

pip install madb-mcp-server

Or run directly with uvx (no install needed):

uvx madb-mcp-server

Claude Code Setup

claude mcp add madb -- uvx madb-mcp-server

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "madb": {
      "command": "uvx",
      "args": ["madb-mcp-server"],
      "env": {
        "MADB_DATA_DIR": "~/.madb/data",
        "MADB_TENANT_ID": "default"
      }
    }
  }
}

Claude Desktop Setup

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "madb": {
      "command": "uvx",
      "args": ["madb-mcp-server"],
      "env": {
        "MADB_DATA_DIR": "~/.madb/data",
        "MADB_TENANT_ID": "default"
      }
    }
  }
}

Tools (12)

Tool Description
remember Store a memory with causal links, tags, and importance scoring
recall Semantic recall — vector similarity + recency + causal proximity + importance
get_memory Point lookup by event_id
forget Soft-delete a memory (tombstone, preserved in causal chain)
search Structured query by tenant + scope
list_recent Last N memories for a tenant
save_skill Store a reusable skill/pattern (GC-protected, idempotent by name)
recall_skill Semantic skill recall with structured output
list_skills List all saved skills ranked by composite score
stats Engine metrics snapshot (writes, reads, flushes, compactions, WAL state)
trace_cause Walk the causal DAG forward or backward from any memory
analytics MCP usage analytics — call counts, latencies, recall precision, Memory ROI

Memory ROI

MADB tracks how much value its memory provides to your Claude sessions:

  • Tokens served from recall — context delivered from memory instead of re-reading files
  • File reads avoided — estimated file re-reads saved by recalling from memory
  • Recall precision — hit rate and average relevance score
  • Write-to-read ratio — tokens recalled per token written (measured 4.65x in production)

Run the analytics tool at any time to see your session's Memory ROI.

Resources

URI Description
madb://memories/{event_id} Read a single memory record

Environment Variables

Variable Default Description
MADB_DATA_DIR ~/.madb/data Database storage directory
MADB_TENANT_ID default Default tenant for tool calls
MADB_API_KEY (unset) If set, every tool call must pass a matching api_key
MADB_TELEMETRY (on) Set to off to disable anonymous usage telemetry
MADB_SKIP_UPDATE_CHECK (unset) Set to 1 to disable the daily PyPI version check

Privacy & Telemetry

Your memory content never leaves your device — all data is stored locally under MADB_DATA_DIR (~/.madb by default).

To improve the product, the server sends anonymous usage telemetry:

  • What is sent: an opaque random install id, the package version, the host OS/Python version, the MCP runtime (e.g. claude-code), and counts — tool-call totals, distinct tools used, recall hits, sessions.
  • What is never sent: memory content, queries, payloads, tenant names, file paths, usernames, or hostnames. "We measure how much, never what."
  • When: an activation event on first connect and a heartbeat at most once per day. Fire-and-forget; it never blocks or delays a tool call.
  • Opt out completely: set MADB_TELEMETRY=off.

A one-time notice is printed on first launch. On first run the server also copies a bundled Claude Skill into ~/.claude/skills (existing files are left untouched) and checks PyPI for updates (MADB_SKIP_UPDATE_CHECK=1 to disable).

How It Works

MADB is an agent-native database built in Rust with 5 novel primitives:

  1. Causal DAG — every memory links to what caused it, forming an evidence chain
  2. Composite-scored recall — vector similarity + recency + causal proximity + importance
  3. Storage-layer policy — scope and retention rules enforced at the engine level
  4. Partitioned WAL — per-tenant write-ahead log for crash safety
  5. Time-bucketed HNSW — vector index organized by time for recency-aware search

License

Apache-2.0 (patent pending)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

madb_mcp_server-0.2.7-cp313-cp313-win_amd64.whl (413.8 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.7-cp313-cp313-macosx_11_0_arm64.whl (469.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_mcp_server-0.2.7-cp312-cp312-win_amd64.whl (415.3 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.7-cp312-cp312-macosx_11_0_arm64.whl (472.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_mcp_server-0.2.7-cp311-cp311-win_amd64.whl (429.7 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.7-cp311-cp311-macosx_11_0_arm64.whl (489.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_mcp_server-0.2.7-cp310-cp310-win_amd64.whl (428.4 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.7-cp310-cp310-macosx_11_0_arm64.whl (492.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file madb_mcp_server-0.2.7-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4107e9792f4a32299ac0d79ada898c6de2298d0615675a65479e99d20547deb8
MD5 6045c6ba76240e9ddef23f9387658c69
BLAKE2b-256 5e42302ce4c2d205d45c286a1f7f24f6c635aaea9fafa40d57e4689dd8028f74

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp313-cp313-win_amd64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f2f249adf3a8fd27f708b2d8a52e062bcd948b8e7fe4908fe2ab9122539ef4bd
MD5 f0f8dbc2379b1b736aa2cc6631e0bfdf
BLAKE2b-256 a957ab058a3c694f2876cad27f21c82db4371d06bf40471a851d25f6fdc4d261

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4c14758d303caa4f261a9be58936802e9b2d0cc7211937d9ff336f818dd01011
MD5 cad19c1ff43492106b71e2c49993a13f
BLAKE2b-256 7fe92b1f284d02154d2d1095ef2d63df464581704e449762b32c2e8ecd99747e

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 762ea39f4d63b0b4bc6f1ad962a99fbbeb0cbf2c30615f581dc6b1713d052ef1
MD5 1885bd93a84da8de9568f548bce31943
BLAKE2b-256 5710c22e27aa4acc4b94c328183e6a9c987ae783c33ff34158a5bd4ff58f789a

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 26795b5cd42e6f9b171920db6dd9e8ad524eec8b027598ae4cf92296278c3279
MD5 920c91b9a19ce38aa70aba2ff73bea2d
BLAKE2b-256 dc8bfb8c1b72fe6b24135cecd659c47193eb054e33e0221d9bbdec19015d62c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp312-cp312-win_amd64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58816e9b00f371ef55b69ec879200734f474eb919ad61f7672fcc54b281e1d0a
MD5 d3e05bbd3c6f0c117b5bb7c722407a92
BLAKE2b-256 282e77f0b2b6f3cb8486b3b8c4dcc529dc57ab7b5fbd79d955e77d5f00ca4069

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3b8695b5673ec4530f3ed1aa2c724b7f825a2881bc0a81fbfe2c9a33d095cebf
MD5 cd4c374f1d75c501ca3ed8fad87d175c
BLAKE2b-256 5aabc9344801f7a36d72194f706744eb5c43221ded43ece9f326474abcd27bef

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cbe379689ef3bac7896e79a451188786acf44573baa16fba84e1aee2e45643f
MD5 5e85168ccb9b99954b92ab5295a7bde6
BLAKE2b-256 31ab6b40e12ec7d1e9a519841f54055a98b73c8e94105ff487ad245c1d4bba8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 23ca0a34c31b5ffee1c48b647d888c445524fb16dc2b070aafa340d27651373c
MD5 5c9e31e9ba7f5f12669e756109a89de9
BLAKE2b-256 f376eabfd9f24716a44af8364bdfa9266cfdf5c1966313612be44675d2e0faf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp311-cp311-win_amd64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dcf1c307ab03a5074bc813d417fd2002da43423b75aa2b7507d370ad41347187
MD5 7ac65161068011aca76e413dbe093ae7
BLAKE2b-256 7a262546d5bbb4e5aac2179176fd72fb0024cdda4771f2c8c30aa8069dba60f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 052999d1f9794e5bfc60fd393375ca14b504776a4875c214fbe2f58e0e46a23a
MD5 f95b0eaebd46322ba3561ca4953cd632
BLAKE2b-256 9d2d27ffd6efd28e9d7af8658dc96a541571f265c91ab3f479a512a6a0fc4ab7

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9c3de2e49d586841023390c8387c9ac44ef242cb2a32e02d0862d310afcb479
MD5 83d9530a5cc719d669133f68b7331a22
BLAKE2b-256 3cb74057b8616d43d2686886f84f9e982f318f99ab510771147a718f5884ebff

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ee1458305f59baf9086b0e5a15992242c7ecb8bc52e31ea4592aa26ecf337426
MD5 0c90f7d913ce47826bc79932c5601511
BLAKE2b-256 71db119ca5c169aec125615fe649320fd4a9531fd71357b3cfa3d033e936a839

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp310-cp310-win_amd64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 660c59996559bb0f08e1a60a6db93da5adb95eeefea4746ace86260180b31bfb
MD5 a32de8f456cd81b650ec8e713941683a
BLAKE2b-256 738c288983d6817962bda9e98957a966108e649e9f227109223e3b080ac9ee19

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 44fe3fb11fe8920c7e8781f80d508cd97a0c8acad86386fb1b7a64db354628c3
MD5 f1ed988b7466d75d9a4fdc7ced1d5dc3
BLAKE2b-256 6b4cbb7b9d00e65470ac09a149098d4611f5e1609574a213ba9719e8d26f3840

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file madb_mcp_server-0.2.7-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f38f6b443f43864f4dd5377d527e27d1a37b261e4724fa45da2bb1323e4cb22
MD5 b6a22624983806631986e2bc8fdbea23
BLAKE2b-256 d525166e79bc309e7590f7937b759ec0f29db57ac0968a84dc584c59d219a7c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.7-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: mcp-server.yml on spshkar84/meta-agents-db-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page