Skip to main content

madb-mcp-server

Persistent causal memory for Claude Code — causal chains, composite-scored recall, and a built-in Memory-ROI meter.

madb-mcp-server gives Claude Code (and any MCP-compatible client) a real database backend for agent memory: causal chains, composite-scored recall, a tamper-evident integrity chain, 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 (run the analytics tool to see your session's ratio)

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

Meta-Agents.AI Proprietary License v1.0. Install-and-use is permitted for end-users of the published wheels; source access, OEM embedding, and hosted-service rights are reserved for separately-negotiated agreements. Patent pending.

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.11-cp313-cp313-win_amd64.whl (597.3 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.11-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.11-cp313-cp313-macosx_11_0_arm64.whl (663.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_mcp_server-0.2.11-cp312-cp312-win_amd64.whl (599.6 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.11-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.11-cp312-cp312-macosx_11_0_arm64.whl (668.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_mcp_server-0.2.11-cp311-cp311-win_amd64.whl (621.0 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.11-cp311-cp311-macosx_11_0_arm64.whl (690.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_mcp_server-0.2.11-cp310-cp310-win_amd64.whl (617.6 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.11-cp310-cp310-macosx_11_0_arm64.whl (696.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3fb4e857c96790ddadab4d7129548b019aec30962a0ca2012e3fb83dd499fd11
MD5 161431daee4fb3f1c0b8289f60fec761
BLAKE2b-256 419c335b7d478fa8c4f4de500d9b5b870392a2826adcd17cc37f570cd5c75369

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 628ce8a7dee9cd41a347f64fcf3913beacbdc49c8711900dff6cc9d2de5fed02
MD5 5b406454dd8c979985dc4434c2986978
BLAKE2b-256 b909c178b3ff22d8dcf08b751e99e90876c90893b1cbf8fa52e3c39628aa4314

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9f8ca6abe41240a654210b0d63ba281a205f9c97b1cbe867cbdee99c5dca8b22
MD5 f374583789958d80bd7fbf22da018769
BLAKE2b-256 61b67b8fb8a2aca0a0f14d57a4cc0a08e2b5ac154b5c3008812c3a8b30ee6daf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c23da0534801dea1d6aabd7705dde8a68cae09c400fe334982482a2ad5c106c2
MD5 5b4fa478a62937a24ae80ec156aa087a
BLAKE2b-256 c7658905c462d5543759befd6c8c3f5f9f1051966f4a354cc6ba4c1120350cca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c31e30f2fdb5e742a7f13effd1e8280ce6a14d1cde5f3702b6311ffbaf4b97e
MD5 de196321731d2ca0235fdda5f2b420d9
BLAKE2b-256 45cae800388f5d43670e10b46ac6e1768c249d1770db1fb651a54b36da93af84

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1c8d8bde393c7c6e582eeb2191f59985ffa186b65fefd8fced3c1c04a6201ea
MD5 ad313a244ebb39cba8c4e577e077b8a6
BLAKE2b-256 a23b5cb88847a41f6a9d0b96567f796b47c4b7f537145140ee78b3f93c30b77f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6e60586c9ce1807a9ed6962f1276709f907cac432540979ed34c05dd61d5357d
MD5 4b0af6f96562f898397d033c0b70eb5b
BLAKE2b-256 3a39b753df17dae8a50ffba55a38383e9765db1cdf8755287fcec731fbe23ad8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06f737361a3645239fa0dd0ae2091452b5fe691d9a4f6ad4bf23784bd3dfa8f1
MD5 8d13e7d3dc6440a2e8f4c40218c58a1d
BLAKE2b-256 7042ba7464fbf6edb52f45f05026830d898e8699689e698fd4c96ac7cb77737c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 033a7a29a613bb15fd243fcaa912815339eb3d4afd8086e3cc02270890ea0ee2
MD5 b96842742063edb6986573fb31e4c6df
BLAKE2b-256 86b02717fe753138d8d18d80cf5b22bd16f79b7a578903b5772b904bd20ca258

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3532530341346f88a5a8ce21c4ffa30870831b131c654744f524f4f429bcf1a2
MD5 060f8985294a0a7152b91d3644e14cfb
BLAKE2b-256 07bb5dafbef12ab3eb00fe5a444d77a72ff0fbc66cdaa9d9228f8db9ff8476d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2978413b0c5cb2d7dbd4e8f5d51c5c0f410890ef112be1d6f4513a3ec51cb9d1
MD5 180ff8ec00b5b63a1315068f7c637989
BLAKE2b-256 8cf1b45bcd82548313600618c9afa3616dfedcdceba6c1054a507ed879e2843b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa0d76cd3fe816d221a2f861f1f9f5102a05a7e01a294b8a30a31f0d9f58bb4a
MD5 2f8222c0276cd937f9c48537ea315686
BLAKE2b-256 0585b3546b112e7be9287dfa67b5add9fc658d8a0b005f9cc3bcded003b21923

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 de35c1a81b8ac0bb2fb41f57d7550794a27fbe51325b1bdab2b66350dbcb253b
MD5 5e300a5d34b5119fc5c4ed2d4d677fcb
BLAKE2b-256 5f7ebcddc97c03ddf2831379c73d6d682828850e624c60ab3b8f1d51174ef207

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 306e95de493c3a93a6c7191a376ceac0915b9c28f44ebbf40983163777f12b55
MD5 7be8cd4382bee7817a74d23b1909ac29
BLAKE2b-256 601f8c282e570e2cb1640cd2d7e0f5a8083a3e8039e3c9fd7de0633e930471f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 99e09896211852b11f69c9c26592243c6f71f97dde1560e9ffbf1cc1c04d6f70
MD5 836b884f5b6c7911f93198574388e84d
BLAKE2b-256 f89171c46ee7578924f3d2f0575b543137ed46fd7647e2ca0d2cdcd67933bd0f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 171e32704110b364f17aac852179385c6533ef8b7607cb67fc2fe6fbae71a43b
MD5 392d47ca5c6b13abcdb482dd2755e705
BLAKE2b-256 ef531a07f55e6779cb4ad84e61bafbbfdfa26348281f50060141faf0f76e02ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for madb_mcp_server-0.2.11-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 Sentry Error logging StatusPage Status page