Skip to main content

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

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

Uploaded CPython 3.13Windows x86-64

madb_mcp_server-0.2.10-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.10-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.10-cp313-cp313-macosx_11_0_arm64.whl (588.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

madb_mcp_server-0.2.10-cp312-cp312-win_amd64.whl (529.8 kB view details)

Uploaded CPython 3.12Windows x86-64

madb_mcp_server-0.2.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.10-cp312-cp312-macosx_11_0_arm64.whl (593.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

madb_mcp_server-0.2.10-cp311-cp311-win_amd64.whl (548.0 kB view details)

Uploaded CPython 3.11Windows x86-64

madb_mcp_server-0.2.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.10-cp311-cp311-macosx_11_0_arm64.whl (615.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

madb_mcp_server-0.2.10-cp310-cp310-win_amd64.whl (545.6 kB view details)

Uploaded CPython 3.10Windows x86-64

madb_mcp_server-0.2.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

madb_mcp_server-0.2.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

madb_mcp_server-0.2.10-cp310-cp310-macosx_11_0_arm64.whl (620.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b3261bbe37a996b3c6f080017406ee668d0473807f901c59d7eaae41ac34d94f
MD5 0966a822de7dd67cb46897e6334432a8
BLAKE2b-256 0a2c8622f978482888d11beeca4e15b65f53df86d5fe9076944e62b90b53178f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e8bca2862c54264cffe6760f28df0667b6f3ad94c8e8da1afce4f6e8a4bb60f4
MD5 bf280f2766bbb3183181370d66336df9
BLAKE2b-256 3a41c0bbb249f39eaea18e10fafd1982c9ca8f5afd86ef061d0cf117c8b6b83a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 766ebeb7a39c3d1092fac5a3000ad6d41281d85df017f4ae3357faf7327d4a77
MD5 da57e9fc4910e1bde54bfa2cda3b95e0
BLAKE2b-256 6228ccbb50c6de565e5b7258de14510a2cbd185a30f380d785fb71a510b9ec18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 38ae4c42ebdeade1aacd981a3b8e791289bd979c86201f544d3862d0db277835
MD5 06f2f5b0c5c17fbc25c889b4226d46bc
BLAKE2b-256 7aa3087c4ad465ee60e189170ccd8390830ed12dd40f0f7ee3f5346244c33a9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 34a45b4dfd300121cac44181f94fea0e4bffc23ea67681f470e35a39995d45c6
MD5 6d3d8be15f794fae379ba8ed87bb3c7d
BLAKE2b-256 5782f19249b3edafc65f923bf914cdef7feb5ae09c961d3140191f7ee0d9a952

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ace331011dc7f17003b86852684bb7d02d31d9380af609e0fb0671d9659a491c
MD5 dd6961331637086e6fa7f2ba305ee4e3
BLAKE2b-256 ab6f826434b9ed2b7f445446b5504576e94c903baec3104afd9e5d1fd3190259

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8b52fe8df54f9563ef002268ead18c2ff23e8750a06cf3d194aba06c678d14a7
MD5 f026f0b5828489158978eb6513b0b066
BLAKE2b-256 fb48936b3d77ac17a6a7515ecfaaaedf355a33dd31757357167506caf75147c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28a9fde35267ee54c33b85819e03b4c1e0355f7392d2dbe8baeb148b00bf8e7b
MD5 4056edadaeef7a8ea1c87f0b387446e0
BLAKE2b-256 b5b79a553af6d7897d0a4cabe1bd161fa7cf93d1c310af26efb6f12e841a321c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a7d20f135ffcede35acd35a50e70e64b5dbe8bec0b5992e248539726fc7206a5
MD5 4b50068063c101b9d8a81b99b572fa9e
BLAKE2b-256 4f21133adbf5e386e3e4f42438872f9912291f5d3369e04d59d69a3d6a8e3d4c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 620cd9345ace19e426a068a486f817ba4fdc647478c4f04880293a378f41ae7a
MD5 e14212f1225adbc45f9c415d29d337dc
BLAKE2b-256 240affdea7729227b629962ba9bd47c7d35cd2b7dd7b39c2d90491c6365c534c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ad38d963047bbd73f61f46c6ff6077d5db2a392431911e1363150db4af580550
MD5 032f307ae33dcee1488b710ab9186c8e
BLAKE2b-256 8adc879ab29bc8f3d7d05c5093a978f781c94b1d3025f44f9f73531f822cf296

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31a67722dbb58a9bfd07d62f470a90717a68c1f39c47864a84b3c33c88d43884
MD5 d5e3cfdcfdcc19923c73096df03b3e3e
BLAKE2b-256 d5f13c712865f016a87c3f830124bc52b20adc6700112ff829df65dcaabc140e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e2c1b98c01bff21c42974fbdf4887ad963d29265f8a84f0133df16d216fa311e
MD5 c8efd55e1f13e4060f6080490d0eb245
BLAKE2b-256 123246ec7d6eddeaabbbdc05f641efd90d90671de7a4fcd72d6cbd4cfc6594d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d44742a2da9ac1022e092daf037bdb6242c8a83b33f7804e444f1b88541020b
MD5 f580aab19c2cd1b9365c5e6a6ae2103a
BLAKE2b-256 a8bb1157399947dfe6fa8b38f226fbf73d21b5f2ec8cd0c1415802dfff7520e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fcfa0c298db484fd90d42c2628cd59bcd23e8db04bd411b961289a37144a6c62
MD5 864253f4f62b18faccfe23d6e30d40ad
BLAKE2b-256 cb13c236db3ac4a87651193faa7c8d1e29bdb2337e11c7ff5e0ff92155549fec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for madb_mcp_server-0.2.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f95a392e5676e16bdf8105c8d08e36b9ad1992dc837dc447eea2500f7e80360
MD5 00e43ee37a2793dbadf37e089204223a
BLAKE2b-256 f71242322fa4e29573b8eb8526f243505ede849b18b666f300a0d2142f385448

See more details on using hashes here.

Provenance

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