Skip to main content

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

Reason this release was yanked:

0.2.10 available with recalls across all LLM Sessions;

Project description

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.

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

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.9-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.9-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.9-cp313-cp313-macosx_11_0_arm64.whl (470.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_mcp_server-0.2.9-cp312-cp312-win_amd64.whl (415.9 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.9-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.9-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.9-cp312-cp312-macosx_11_0_arm64.whl (473.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_mcp_server-0.2.9-cp311-cp311-win_amd64.whl (430.2 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.9-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.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.9-cp311-cp311-macosx_11_0_arm64.whl (490.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_mcp_server-0.2.9-cp310-cp310-win_amd64.whl (429.3 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.9-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.9-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.9-cp310-cp310-macosx_11_0_arm64.whl (493.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b1fbfcf775e03ba1bfd91e8b9e692027360ed13e3cce259b497969ebb4634278
MD5 a0ab4c328d2efa8e0f81dd66b8b82b69
BLAKE2b-256 fbe7d884ff2f136a1f04c312520af30aa50e607112524d09931f1305c4c9b6c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0903161198ebb0991651280a1521cf1d9c46df06321f32c4043f792cf1cc613f
MD5 0ac83f88fe8187334859aea6fa3a2905
BLAKE2b-256 660e6581cc82614c2bf2de924d7431c7029a908f24bb5c945c29d34ad97175f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06a0ef8bf7fd1348aea65cad9e8485132d7ce30174189f7bb577b4ce4dbab6f0
MD5 903a12b90fabbd9f0d4a508af6df5661
BLAKE2b-256 5f485e807eaa307dbca571e5a459cd2a388277e9d199a3079c74c5e4b93ab8b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57fb715a4d514a479550898e32c4d2b0e5ec63245d5068f6c1551e1d3a754a54
MD5 65bb762275e9dd457bffa66289e73211
BLAKE2b-256 6c03d16cfaa812e4dfb272ed0a9382385859271edce3ff7d6e60ab24c7cd2f81

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 adbacbce539c8cf0c8ee24b093dc03134089c1341631d29c5aa4d2c4531d9ed1
MD5 fc8d6e832100297193c872f98a6c5938
BLAKE2b-256 9bb116151a71983be8ded469a0fd0b48408d8c9bf749f78346be385d06133222

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d085a10d93a76a70383d93929a8c92dc3d43ebf226e485c033d22bf7d3b214cf
MD5 df28e56d2bf019a630315f792f1f50e2
BLAKE2b-256 a55aec412f7883a1735882c50d849c7b5a62c86deb609ea7ec4dd31cb8fa3385

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d535f9e33b12a34fd9d45619bd9fb2bb7d58855da9b15f17ce1e8bc1edb5a5a2
MD5 60f7fe94e3001a2217cb3a310a79da1a
BLAKE2b-256 643387c04e586972b4a19f18de53a1f8a9def9157d7f729a1d5890a610d63fa7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a763fca9a59894ec001df88aa6cba7b03d3ed8faa738adf0813e202271784d0
MD5 f975b931759205113dd0e4258f182a01
BLAKE2b-256 999f6159838a217e408750c261c7f67c665ded1b9765784979ab634b3f86b2d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0fa7e6aebc3e1510575e9a7b1570146b85a1332339577f36540433824a6f6ad2
MD5 c274407a659d681bf5aa8a88b95057e1
BLAKE2b-256 0ca7a2e0263c6139f77f162e801c9323190824ec23fef0f493ba7b5843be42dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2eef25980859bf79418b99b83225ecf856b2ed84f61f807a49d56e0afa713bfd
MD5 4ef18c8d4aec3351c65cc924ae2c10d6
BLAKE2b-256 7f24b4d81faa2eb3ecc4198bb9fbb894ff1d20bf34537c1dcb1b1e02e7e5c4e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d792b1739d5b74f843b2a7a29c813df6863b1ccd003fae2f3dc19ac43302ed9
MD5 57bb5f2c86fbe60c2ded0754cb213abb
BLAKE2b-256 941583a869a9ed4d0459ad140b8c4ada33c155ed4ce25e95b05563e7a38a8089

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad7cb745357ce32aaed9a8416957c329ea2919294649285af5fab7cac39430f9
MD5 75b18ce4ab3b1a31adb8eba2db883c93
BLAKE2b-256 85299a6917aa1ae6bf8857f34f22bcf6288afc9340d46be990bddfbefd4fc107

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5cf7db5822bbb04497bc8bb4b535eb6f9ce1c3f979d43c92c83a7d98c5442727
MD5 aadc6125d0e9662fc3be12f65e910a03
BLAKE2b-256 4715efbf92ad91f510b1432af5ece60dd4588b16553b66f278279e9ae8179342

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e00f0e32109e7bfbf19f84b51754f7823d2c8b7628080489f64270341305f1f6
MD5 704d58deb1e0817fe87781a7f9ef9d28
BLAKE2b-256 7ecf8c8d75287def16d40fc90397d71381f5d817856d8ffdc042b3649d912dbb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 38cac5fd8fb0739dae52b00a6613238486e3f7f3db12b4047bb16ded4e671126
MD5 02bc89fa2d0cf7f6b75c254906a12091
BLAKE2b-256 7404a78231af6737ba857e6afa0d0c2a1af2570b1505fc4ea71b8f9061c3c5b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 941b3119eff1e990a5a7006d91f0b44163e01669a2849d4d91c07a96df3f0716
MD5 521192c378eae8d414bf642b87d49327
BLAKE2b-256 53ab87432a50e29c6dbde002a3d2bcf3b7deb8ce1d69aa9459d07dd14421eaba

See more details on using hashes here.

Provenance

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