Skip to main content

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

Reason this release was yanked:

0.2.8 available.

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

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.5-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.5-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.5-cp313-cp313-macosx_11_0_arm64.whl (448.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_mcp_server-0.2.5-cp312-cp312-win_amd64.whl (396.3 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.5-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.5-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.5-cp312-cp312-macosx_11_0_arm64.whl (452.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_mcp_server-0.2.5-cp311-cp311-win_amd64.whl (410.4 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.5-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.5-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.5-cp311-cp311-macosx_11_0_arm64.whl (469.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_mcp_server-0.2.5-cp310-cp310-win_amd64.whl (409.3 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.5-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.5-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.5-cp310-cp310-macosx_11_0_arm64.whl (471.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 be8ce970c50997c43aee76c6aa3260572d5c26dd789c69a9957540201591ba66
MD5 8b91f0c56c716f3625547d751691d2a4
BLAKE2b-256 69e8a72a84dbb26414b472521293934699960639b6f7a27042c4b0f6d898c66d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e581ed2b14a20aa7d324ff87602b11b21e95d4bb2dfa4f5d4e458c6e7289f30d
MD5 8ab6f5704b5fbdb2f5ff1c86aaa62df9
BLAKE2b-256 8e3a2084283ff98b276e7a4f44a1c89704fe8b6ffcd5978600c62c16518b0f6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7bdab4a3a4b8733156fa7b854881881cfc733fc8f2cdee3506f296d211a06d09
MD5 49603543282dcf73bbdce6a9be24c4a4
BLAKE2b-256 7b916f1d82ed25e6e6685ec82dfd47df1f0e904547ad9b7271b0d0e888fc7fb8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7958b496ebdc2a99df4b9b679c3e4956a87ae9128e3603213421f2c6efca3bb0
MD5 4ce10acc494ae432744e75a11046d59e
BLAKE2b-256 f7a84041fc3bfa3156045b20d95d0400d89c6316492419df0923b457819c25d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f1df08d5b87ffd556941c0a614161b42d547859e9bf7a3b10476335a4a1dd554
MD5 31bb9e38bb2e70d90cf0a7d48414bf39
BLAKE2b-256 8fcc2bc984d74870b1532f3b314532d68f3726e2208324f038ff8d177225cb89

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 100c01ed2bcb543c1eba81b0e6000f236b3ee96ae67fcc9e8b26560e31d38708
MD5 cedbd233f7b7fdc97794e4fc5dcba933
BLAKE2b-256 c6a8945e2394855791105b2a51638576d8842307212ece1c6149db71a6a61312

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0ea603e8d068a5683532f871a2d16562dfa4d372a30eb19ac3c9a65c8840c9ba
MD5 fbac8ebb9918b93a7fe26dfba4cd679a
BLAKE2b-256 98c710c390af2b64fc8457107fa68b07d71d082ecf68d7c123b14b047ed64e9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fab79f958c06b6d620fddcf7b0de974ceec22d48866af64494a379904317ff1
MD5 6342fc9224fcd6a84d5911b2670751f9
BLAKE2b-256 24ece6eb707b05d6bf35e89b5898716e1796927dd5ad97f172a1e039473a4807

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0f5a178f40e2645a34ddaff617de721708beeea3c2c8f66311836b7e5a497ffb
MD5 db31350fab948f4d6e467d2f01da4d77
BLAKE2b-256 09e21e1ed8a89781a6e4e473f0a415dd4e5c9b9d332beeac27023fce8f13be4b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c99279357e21e0aae698170462ca8987f9e1b8f0816413f024a76d83b826cb1b
MD5 ff48dd8676d918fc0a5fb356939e52b2
BLAKE2b-256 7b9de288ee376102915335f94bd65c83b3929fc0f13709946d76dd96ecebc1f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b2757424facbf5f99febe9096662f9b91c5c5236d5345f50bf68d9a58187a3dc
MD5 eb2dbeafc8b5f7730e06d1d493cf069e
BLAKE2b-256 ad9718c044432f72de6ed0386746d92473be4859f03039e22c6201d756d10e47

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 177a163280038d9aca1600771a6db27bcdad4ae741a933a00d365754a18e9b97
MD5 67482ea5b30efd84429123223cdd26ae
BLAKE2b-256 487c9390e0df929ffd772e21489c5136e4159b20af1952661565b47847b58665

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3283f8826dbef93116ef469736cd051d015b6d0081209d02159fe55aac227c39
MD5 6532de1c5d91020d95ab9214dafb0e2a
BLAKE2b-256 6839b7b1f0c51ac318bc39de33477e5bbf65bc65eb98c76391c1f191c4e1e437

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0362d690172d5905ebd3f355cb716827f55c75116fbfee56d852239d119d0da5
MD5 e9eda6dc46b5b0e05fc35d1e688073a0
BLAKE2b-256 4b80114bf71d50a295b80afbde9634a7919d12c51b3fa34a3793f2eac7b2c0dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9d1a79804a9272f9e8a0b54eb216d379022ecda9a4382cbbde15b629b886805e
MD5 b59ab6afaec6ed30e63f75a28c620cfc
BLAKE2b-256 35529676e38547ec30326292cf48a1bff7bdecaf8199c7566b54c3824a555a78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c9d454808d10e8a5c26286b1cfd7c0dae52e0c8ce25abb7970e9d64c5c4a491
MD5 a6a931a212b89abe46f5d17f3e868c01
BLAKE2b-256 9537fff7f097f82bdfc4991e9a0c754db7bddca80b94ff4d708a901bf9a4dbbc

See more details on using hashes here.

Provenance

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