Skip to main content

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

Reason this release was yanked:

0.2.9 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.8-cp313-cp313-win_amd64.whl (413.8 kB view details)

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.8-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.8-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.8-cp313-cp313-macosx_11_0_arm64.whl (469.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.8-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.8-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.8-cp312-cp312-macosx_11_0_arm64.whl (472.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.8-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.8-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.8-cp311-cp311-macosx_11_0_arm64.whl (489.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.8-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.8-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.8-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.8-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c972705bcb5b5ee0f0b619cecd9106d86666266965ba891cfe894cca79f715be
MD5 26b716f3bc7052379e3aa080a25cdcae
BLAKE2b-256 266e98ddfbdc3398fd04890e08f33f1a55b6afa14fae2ff8d856f6f1b00a8d44

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd1aa822c939905ebdaf4e801f4908c0daf57a03655c70aacfc82d055eee3012
MD5 6c056389935eb62e6238c7de1843f8ca
BLAKE2b-256 efa964e47979a5eb6af3fed729f6d3c0908819c357de303f54eeb3e7fb80eb78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 056f8d858a5995ecc029389bcf21dcaf184dea5c4a31d6a777bbd535b26acc56
MD5 8db8f7f05f2ecd9a75a84407aea61894
BLAKE2b-256 326968bcfd5a1b5cb387000ec8adddf2ea72a0e740d70c047e9787734d041b3f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a41e04b6e50dc021facae0c91f5f02c0d3c6c00c380dcc5a72487e774841e8f3
MD5 7eaf0447a20c443610d27ea19fbd6ed6
BLAKE2b-256 f1a47f044c2bad13cdf60364b8fed42a630c3744257741d8bd0036eafac006d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 60a8c992ca4b9b171d0ecce2b300e2f1ae32e3b1881c380f780744d1bedb4571
MD5 89f0b59d489900f2ed77c888c55bcd5e
BLAKE2b-256 a9144d59d8320988f71fd3697ccfd2fc278e9b5b6e4c96c503d98b7367f720c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3851a0636c4a3e1065df2742f8997b01598d4151cf7c30ac16d0571d4a66aef8
MD5 4f29ec5c57f3f624ac0487cb3b4156fc
BLAKE2b-256 3867f99284fe51463bde73272f1973dcd47774319684b5acc77ff713bf6a6294

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 40cc0b8596aed26e74d2c0131cdb349dd6c87a3e77f321d5333d0f2c1e13d5ec
MD5 31fc25ead8314c0714977b548338c5d5
BLAKE2b-256 48d6dfb70eb1ad6fa2c049c06eb397b6a21c6db21a902ccc6546974405d94feb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8647ed7a3c81851d49df57f0f3660e51125ab1f2f25469bb029b0de5b83e9b59
MD5 20b7ce204c814ad4d3e58e3ee88a0b4b
BLAKE2b-256 7db4fb5bed4c12505ee451309586da0b02eb7c9ea3d46ec89111debbf324bae4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 df62b170a046f2c4f1e6045600fb498362b62a3f4507b81095fa5454361749e9
MD5 6b8c87763fa496b66fe3aac003b727d0
BLAKE2b-256 abbcd5d46b5a2ec962be89007b50808169a1d2b1eecdfa772ae5ca982e425102

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6da725575e849b11e4849350d8570981d1225ea6e9763dbac6650c6f3f89068f
MD5 eaa74f39409d1e4f9a189a664d79f50b
BLAKE2b-256 e10ff8ecbcb5ed53a78a176bfd1ed185b17645a607c1ebfdadf27d25f7f0befe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cf1d35e45609905334fa7774b9ffd5d80607a189d420b0257bf4594b9e8f1673
MD5 8b6cf801c4dcfb411d36655e1f869b04
BLAKE2b-256 7fe1510faa8566cc324f05ba1c04107b6d89fc98f953d7ab7c92819f191c221f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d067a38ead21e25eef2a5e00f623e363bd006530cc9a9a013a5eab49f38265e8
MD5 7f666126d1df59487294de100a131c43
BLAKE2b-256 5ca4340857fd7f2dae6956632c279423e699e9d4d4424193e5e89f37d5e3dd1f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d53ea4073f80ae4bf8a4d10917450978474f40180e3b33e69aefa987a300b4ab
MD5 a57ce426bf1b94ee19cdaffda8547c60
BLAKE2b-256 886b70ac19c71e7f0550a2fc66f6cddf1788774d4bda475b22796978d1825cca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20dde28c6432e25c9ee0f19fa5fd872faeaa9c7d85541aa613dc18f4bdac4387
MD5 a78ca181895df10ba2ba4f7feb71f656
BLAKE2b-256 5e397c52f382672943dca5b6ac2476f999bf58f6fa3024a67083a295467872f2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5c44c8bc97966f1ede9c693947c917f4c6b0023f6e067e2d0ad33ece197c125a
MD5 6aa79747a602154aad0e50240253fafe
BLAKE2b-256 c937ab9d0824e97d25bbc74599ef02d688ff344fc38b8a31fcdf19c712ed9f14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5250a0d8808bcfe8554de377594a440d76f63c15d79b15b715a7f7081a04f1b9
MD5 8db0aafecfc4cdaf6600725dd2d86536
BLAKE2b-256 a5bd665a94c7b4af504b5088c6697265c44fe058ae6229e61edfb343357c5d1d

See more details on using hashes here.

Provenance

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