Skip to main content

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

Reason this release was yanked:

"Data-integrity defects (AUDIT-ISO-001); 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.6-cp313-cp313-win_amd64.whl (398.2 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.6-cp313-cp313-macosx_11_0_arm64.whl (452.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_mcp_server-0.2.6-cp312-cp312-win_amd64.whl (399.5 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.6-cp312-cp312-macosx_11_0_arm64.whl (455.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_mcp_server-0.2.6-cp311-cp311-win_amd64.whl (413.5 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.6-cp311-cp311-macosx_11_0_arm64.whl (472.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_mcp_server-0.2.6-cp310-cp310-win_amd64.whl (412.5 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.6-cp310-cp310-macosx_11_0_arm64.whl (475.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 54239ed6d03d274ea7c8242210299c5454d006d08bf537dec1b55746bf0b8d1d
MD5 b02ae5b3980219da888a6ea972695992
BLAKE2b-256 1f89e14bcafe5e881efcf6c7a9565592169e7ec98f535b1925e45c82d04737c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b677f234c4f981fbdf197c149204fa6f4289a0a4e2190006184ec6e5b686f248
MD5 49daa026efd8cc343d1208fec276ebf2
BLAKE2b-256 a28835c4b1f49c33870188867f628cf9de7c5b066a85a8cc0d0433bb8bbf47d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b14572590739d3e32a6d0a60ea4bcbca3689f63e436223dbd37bfbf8cc8f0fa4
MD5 9f5ba7df8a67c9f84c83804d844c1db5
BLAKE2b-256 6cb5192f1c321450c075c91ac1d2b3ee489696aeadb8379447f251bd3ef52701

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a5567597577768e6c9d6d088350701b32ad21ef3f5fe5d8839c13d5dc5cc451
MD5 821b8e866488a7f99d76d3651513da7b
BLAKE2b-256 499ba1ca095ae96ac9f8fac5ccab0ffc83d1a62debc05e9bb9a9d80d77579725

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5157c8ddd03091ea1af975c9c7b6559c7f24a38cfe8897d8253f7497fde3959b
MD5 4fe4822c7c2543e47ef012afffb596d4
BLAKE2b-256 6c276944fc13c44f16539bc1cfc5886df5a5c54cc91d7ff1de71316784033768

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f40d3c06b6d05b61fa52a4a3ccf69c5f768dcfa240351e89c2b1836a1b8f30b0
MD5 b4f40b1457403c3fa5cdfdf615a068c6
BLAKE2b-256 1c3f77382c8b27760001343221296a38b8e4e9711c34f7c562e3344fbad5761b

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4008c0e077411621a9d1aac56127ba85efc37db1eafd6f83f286994a7be01ad8
MD5 db807f2c6663bb19af8e8b93c2d2047c
BLAKE2b-256 79c5e4e216fefc6ac71af7a1524623ca9690957dc4a503825961ff95e2fdc2a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9430a7387cf6f668d21a260fa0e03bc865e7b04eb2558d4c1c2f2b9e448ee09b
MD5 190238734a07c60c868dd56a9e3bac05
BLAKE2b-256 38c7d87a4bc7de5e63ba566e8db5226a3f32061dcf032539fa4b52be3bf059aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c621b0230494cf430e7266340cd45ed475b0f20a65ef7b7170015ba039a3de63
MD5 25550438333882eb1773cb9c22c727f1
BLAKE2b-256 a552d5c60dad22c32a501dd9d166c67b07e43a2498110811ac0b75cd759f44bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f00df33fa5d07befc8ed7da7456bb2115e3400901111591b11675ef178ff0fe4
MD5 568ae56b1d86c0664cd220de2e0c808a
BLAKE2b-256 4a9b0f89bb7313b69137dd558cce4cd2303fbb6842eb9be702c447f1db5b134d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 387fc092ba72ba2254073d5987517397ea91fee33f5f5a54d16f0c6c28b91e8a
MD5 c98519889f70e03f82c6d57de2008613
BLAKE2b-256 447457df0c994e596182d9ff31fba70dbe73e3584a0e95fafed8ca3c030dc709

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a25a357feedf2cd142f97ccde8ec9d58e85979bac9fc510d2f9fa1e93b886e0
MD5 dcffc50e6b470ff630aa804ab1c383f1
BLAKE2b-256 103e38236e20ee30a284eabfdc898d9d76c0a63560c577e83e452b95d09321e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 19416d1c92827c26734be3eba1e7764c7b8eda5eda1d87a0ddbe085ecf3eecd2
MD5 0e22d742889fb9fa8cee2d2488440574
BLAKE2b-256 f60b17f5b52e17fe33c32f6552af68d23fecd347f8172f24080f156c69ea05a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d1549c59f09c355857fe2d8a33cf1348bbc0582d19bdc9e6658bde0b5c6ae32
MD5 0aff8ce3c22d799ab2dca876e452fd2d
BLAKE2b-256 3cebca9732e54e55cc57ef3486b979adadc5271d0046de91201af4706a21ff2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ed137221cf09bd6fe90512a2dc26a152641148d683ae28731d244b79a28b1ffe
MD5 607c9143892519911d505c803e1fb2f8
BLAKE2b-256 1284a8f715bd2eccaba404e63cf2e6bb0358e32526f42288b889cada29f83b95

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8976c0478a4ec7d77194782ca8fb15826214fc63d8c3338792815dcdfa507eb
MD5 e4675d3f8e9da4e60f1f9d1d74029349
BLAKE2b-256 82518fc397951e0681245212165030603d647ebf1d2ff37b79f2ad233e0379f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.6-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