Tributary MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Tributary MCP Serverrecall the deploy API rate limit workaround"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌊 Tributary
Shared, persistent, conflict-safe memory for AI agents — built on CockroachDB and AWS Bedrock.
Every agent's learnings flow into one shared river of memory. When one agent learns a lesson, every agent — current or future, related or not — knows it instantly. Agents are born knowing what the tribe knows, and die leaving the tribe smarter.
Built for the CockroachDB × AWS Hackathon.
The problem
AI agents are amnesiacs. Every agent process re-learns the same painful lessons — the API that rate-limits without a magic header, the config key that's silently deprecated — burning steps, tokens, and time. Passing context between a parent and its subagents doesn't fix this: that memory dies with the session and only flows down the process tree.
Related MCP server: ogham-mcp
What Tributary does
Tributary is a memory layer, not a framework. Agents call four functions:
Call | What happens |
| Semantic search (CockroachDB vector index) over the tribe's active lessons |
| One serializable transaction: embed → find similar lessons → LLM classifies duplicate / contradicts / novel → reinforce, supersede, or insert |
| A recalled lesson actually helped — confidence goes up |
| Curation (agents, the Gardener, or a human via the MCP Server) |
| 🕰️ Time travel: what would the tribe have recalled at a past instant? (CockroachDB |
Because every write is a serializable transaction, two agents learning contradictory facts at the same instant resolve deterministically — one lesson stays active, the other is superseded with a provenance chain. No lost updates, no split brain. That's why shared agent memory needs a real database, not a JSON file.
Architecture
Amazon Bedrock (Claude + Titan Embeddings V2)
│
agent-a ──┐ │
agent-b ──┤── tributary lib: recall() / learn()
agent-c ──┘ │
(separate processes, ▼
days apart, no IPC) CockroachDB Cloud ◄── MCP Server ── Claude Code
├ lessons (VECTOR(1024) + vector index) (human curation)
├ agents
└ memory_audit
▲ ▲
Lambda "Gardener" Dashboard (App Runner)
(EventBridge: decay, live memory feed + lesson browser
retire stale lessons)Quickstart
git clone https://github.com/aaditya-diwan/tributary && cd tributary
python -m venv .venv && .venv/Scripts/activate # or source .venv/bin/activate
pip install -e ".[dashboard,dev]"
cp .env.example .env # fill in DATABASE_URL + AWS creds
python scripts/init_db.py # create schema + vector index
python scripts/run_demo.py # the A-then-B demo
uvicorn dashboard.app:app --reload # dashboard at localhost:8000The demo
run_demo.py drops two unrelated agent processes into the Gauntlet — a simulated ops environment with deterministic traps (a build that fails without a cache clear, a silently deprecated config key, a deploy API that 429s without X-Batch: true).
agent-a (empty memory) hits every trap, figures them out, and distills lessons into Tributary.
agent-b (fresh process, seconds later) recalls those lessons and sails through, citing them: "Tribal knowledge says the deploy API needs X-Batch: true — applying it."
Typical result: ~50–70% fewer tokens and half the steps. Kill everything and run agent-c tomorrow — it still knows.
Join the tribe from Claude Code (or any MCP client)
Tributary is itself an MCP server — one config line gives any coding agent shared memory with every other agent on your team:
pip install -e ".[mcp]"
claude mcp add tributary \
-e DATABASE_URL=<your-crdb-url> \
-e TRIBUTARY_AGENT_NAME=alice-claude-code \
-- python -m mcp_server.serverNow Alice's Claude Code session learns a gotcha (tribal_learn), and Bob's
session — different machine, different repo — already knows it
(tribal_recall). Tools exposed: tribal_recall, tribal_learn,
tribal_reinforce, tribal_retire, tribal_recall_as_of, tribal_stats.
Time-travel memory 🕰️
CockroachDB can read any table as it existed at a past instant — no snapshots, one SQL clause. Tributary uses it for belief forensics:
memory.recall_as_of("deploy api rate limits", "2026-07-10T15:42:00")
# → what the tribe believed BEFORE agent-b's discovery superseded itThe dashboard has a time slider for this, and MCP clients get it as
tribal_recall_as_of. Try faking that with a JSON file.
The memory immune system 🛡️
Shared memory's scary failure mode: one agent learns something wrong and poisons the tribe. Watch the tribe heal itself:
python scripts/poison_demo.pyIt injects a deliberately false lesson, then runs an agent whose reality contradicts it — the agent fails, discovers the truth, and its corrected lesson transactionally supersedes the poison (with the full provenance chain preserved for the autopsy).
The generational learning curve 📉
python scripts/run_generations.py --generations 6Six generations of fresh agents, task phrasing varied so recall has to work semantically. Tokens-per-task falls as the tribe's memory accumulates — the dashboard plots the curve. The species gets smarter.
Tests
The conflict guarantees are tested against a real cluster (no AWS needed — offline mode uses deterministic embeddings):
TRIBUTARY_OFFLINE=1 pytest tests/ -vHow the sponsor tools are used
CockroachDB (hackathon requires ≥2 — we use all four):
Distributed Vector Indexing — the core of
recall(). Lessons are embedded (Titan V2, 1024-d) and stored in aVECTOR(1024)column with aVECTOR INDEX; agents retrieve tribal knowledge by semantic similarity (<=>cosine distance), so a paraphrased situation still finds the right lesson. Vectors live in the same transactional database as the lesson metadata — no sync gap between embeddings and truth.AS OF SYSTEM TIMEon the same table gives time-travel recall for free.Managed MCP Server — humans supervise the tribe's memory from Claude Code: "What has the tribe learned about the deploy API?", "Which agent contributed the most helpful lessons?", "Retire lesson X, it's outdated." Configured from the Cloud Console (read-only mode + audit logging for safety). Tributary also ships its own MCP server (
mcp_server/) so any MCP client can join the tribe as a first-class memory participant.ccloud CLI — used to provision the cluster, create the service account, and pull connection info (
ccloud cluster create,ccloud cluster sql --connection-url).Agent Skills Repo — the schema and query patterns (enum status columns, vector index design, retry-on-40001) were built using the CockroachDB agent skills for schema/query design.
AWS:
Amazon Bedrock — Claude (agent reasoning + the lesson classifier + lesson distillation) and Titan Text Embeddings V2 (1024-d embeddings), via the Converse and InvokeModel APIs.
AWS Lambda + EventBridge — the Gardener (
gardener/handler.py) runs on a schedule: decays confidence of stale lessons and retires the withered ones, keeping shared memory trustworthy.AWS App Runner — hosts the public dashboard (live memory feed, lesson browser, conflict counter) from
dashboard/Dockerfile.
Repo layout
tributary/ the memory library (the product)
memory.py recall / learn / reinforce / retire
db.py CockroachDB connection + serializable-retry
embeddings.py Titan wrapper (+ offline mode)
llm.py Bedrock Converse + lesson classifier
schema.sql
agents/ Bedrock Converse tool-use agent runner
gauntlet/ the trap environment for the demo
mcp_server/ Tributary's own MCP server — any agent can join the tribe
dashboard/ FastAPI dashboard (App Runner): feed, lessons, curve, time travel
gardener/ Lambda memory gardener
scripts/ init_db, run_demo, run_generations, poison_demo
tests/ concurrent-contradiction testsDeploying on AWS
One command, via the CDK app in infra/ (builds and pushes both container
images, stands up Lambda + EventBridge + App Runner):
cd infra && pip install -r requirements.txt && cdk bootstrap
$env:DATABASE_URL = "<your-crdb-url>"; cdk deploy # outputs the dashboard URLFull walkthrough (cluster via ccloud CLI, Bedrock model access, manual equivalents) in docs/DEPLOY.md.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aaditya-diwan/tributary'
If you have feedback or need assistance with the MCP directory API, please join our Discord server