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

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.14-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.14-cp313-cp313-macosx_11_0_arm64.whl (745.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_mcp_server-0.2.14-cp312-cp312-win_amd64.whl (660.1 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.14-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.14-cp312-cp312-macosx_11_0_arm64.whl (750.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_mcp_server-0.2.14-cp311-cp311-win_amd64.whl (704.7 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.14-cp311-cp311-macosx_11_0_arm64.whl (757.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_mcp_server-0.2.14-cp310-cp310-win_amd64.whl (699.0 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.14-cp310-cp310-macosx_11_0_arm64.whl (765.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f2cbe34a8ba58a69c1aa7453757ace3e8fa283d64a8d1fdf799b870c572aece3
MD5 302531c5beacb0ab106e84116f8d263e
BLAKE2b-256 554dddebf3508f818e88eccf8d16063752e3b929891b6bcfdec9d715d297c217

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a45207124a31c6cffcfd4870ceeae4411f5a9d3654eacc2054f01aa4d1f8d3f
MD5 db98170bad6566974e5142375b4feaa5
BLAKE2b-256 d2104a24286123c748126076a8a1e2e4a378704bd9c84c62627cb2ad13db710b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 56ee32d622a9642fb029934437db4abfa821dca07fc0b03baa0455c5bd1ecfe9
MD5 711a6b04f5cf9eeae143a20f329213a0
BLAKE2b-256 dcef824c0e562eaa5774072d7b50a8c72cc63becfc9c89e16b95c56028647d3a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a16efacf3aae13d640fb2d388124f836e10ea5613b700a3e680500355e6f036
MD5 8ce7b3fc311208a0a4169f5a1936bfb9
BLAKE2b-256 b581c71187facef6bb9a324e24ee4478b08c7dbaa9c519dc9daffe7a70c5ce9e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 570074d522ab91065f958459264b5c3d6ca9138937957c56ea10206381001072
MD5 13e321e37b3481496aa395c9c77ba101
BLAKE2b-256 f2eb6135bfb0737dc91ecc9c75165a89b35fda3e079f6d65bc4cac62334cf7cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a54ee95763e7fb282f27f6b4c1e37c45a418d405df29a98244e76255303fc0ad
MD5 3e2fd54e239333bc354bcfec5591f76e
BLAKE2b-256 bdc42a4776bbdbc93b5a324d580e99f576979e2c55bac3001fc91f6c069aa027

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4bc035ddff62febd056fb044705379e705bb51b84bb26c027cab2af1d2d6e92f
MD5 bd1ae4e90bc47cd10ce8745e6dbec56f
BLAKE2b-256 3ac80f9f1db9ee50e981a80ea412aa6c6891c2c2b345dbd21ebabf3c3e0fe1cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64fc88a669823ad0a33d285a34d1e4714fd26e356e5fa2f73bfc6d4ad449c7f4
MD5 a4d6cd3ba86c7910d4d901ee5c98a37e
BLAKE2b-256 ba9df32d046a681bf7c52bd4bef3381676b50d920e24ec09dd7ed71f7ed30262

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 54bf8df4d48fc6a1872a535992bee8a052301aff579612b600664f586f62c853
MD5 581efcf2e8a4d060ca0f467effcaa4e7
BLAKE2b-256 a450ca2519e3211891ea58a40539cf7c2042e6491d4c5a25a358bb490237885d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 122bf90ded445665dc437a7349a23e3682a55414ba0adc3395fb4062216fc97c
MD5 b99d20d6723aae38748a210a3212cd1e
BLAKE2b-256 f778024282f58cdd8dc91aaf9a1a2bb8e72b0ac8a8dc419258d61cee223069eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d7048ebf3eb7746344025c083aaf5f75e25f9d3bc9367537359b6869e2b56cb2
MD5 241a5240e891dd44858eeb21467fd82e
BLAKE2b-256 0bfc4754a68e8aefe6afa658986c732ac32ad83a80a82d24805b0c015abc9ad0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85ecffa5f5082be3868e656b0d3fdc7d937344990e1bf588f01574773f5ecf2d
MD5 a542279cf7c2b393b479d8c5e2c4f5c2
BLAKE2b-256 0671ea2a826c412b6a6846f569d346d63b1945c6554ef9b154c029301014a5c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bb3639c32da8a25c9a483ddd8aded4ea384feb17c78c6fd36d31052fbe27a186
MD5 1199583cdd960f0043d9b2316a5837f1
BLAKE2b-256 52cab32ec8c95995eacabe44ef221a7d045becd11f6d67a780b6305df3069cd8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5c08b00ed4c75d85779eb7e943716edafbf7cf39d6f6cf70a39664f646a7ac0b
MD5 9b63c02e683c4a480bdfec3823588f3b
BLAKE2b-256 ddb39c947a16a4a245ab902e8e342030de0702d6d7e85195a95d313b75902ce0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e0434a89a2369d777cd4cc0c4f377ea369612f2b3c748af5d843bbe802683b5e
MD5 f9a13694a2ac038c1c20f596e04435f6
BLAKE2b-256 d4a0bbdfd9ed20964b2b6e6b9403a1cc16e86568248d51152587d5b2ef8d4a5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30fa4b02860729827054f6fe606f1ec2b72c8bb2d08d38c04550df73c741724c
MD5 e9e8586d757a35c9250fba61c93772ba
BLAKE2b-256 91335ec19fcc57050324d24ee4078d8fa7353663baf876aa1b096cc14afb5216

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.2.14 This release

16 files

0.2.13

16 files

0.2.12

16 files

0.2.11

16 files

0.2.10

16 files

0.2.9

16 files

0.2.8

16 files

0.2.7

16 files

0.2.6

16 files

0.2.5

16 files

0.2.3

12 files

0.2.2

9 files

0.2.1

9 files

Supported by

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