# junto-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/tlemmons/junto-memory  
**GitHub Stars:** 6  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/junto-memory

## Description
Persistent shared memory and coordination MCP server for multi-agent AI workflows. The memory component of the Junto system. MongoDB + ChromaDB. Production-tested with 6+ agents over 500+ sessions.

## Tools
Capabilities this server exposes over MCP:

- **memory_start_session** — Register a session and receive context: recent learnings, active agents, file locks, pending signals. Call this first.
- **memory_end_session** — Record a summary, files modified, and handoff notes. Releases all locks. Call this when done.
- **memory_query** — Search the knowledge base by natural language. Returns relevant docs with relevance scores.
- **memory_get_by_id** — Retrieve a specific document by its exact ID.
- **memory_store** — Store a new document (architecture, API spec, code snippet, interface contract, etc.).
- **memory_record_learning** — Quick shortcut to record a learning, gotcha, or technique for other agents.
- **memory_search_global** — Search across all projects and shared collections at once.
- **memory_list_projects** — List all projects with document counts. No session required.
- **memory_lock_files** — Atomically lock files for exclusive editing. Supports directory locks. Auto-releases on session end.
- **memory_unlock_files** — Release specific file locks or all locks held by your session.
- **memory_get_locks** — View current file locks with stale detection (inactive > 30 min).
- **memory_add_backlog_item** — Add a task, feature request, or tech debt item to the backlog.
- **memory_list_backlog** — List backlog items with filters: project, status, priority, assignee, milestone.
- **memory_update_backlog_item** — Update a backlog item's status, priority, assignee, or description.
- **memory_complete_backlog_item** — Mark a backlog item as done or won't-do, with optional resolution notes.
- **memory_send_message** — Send a message to another agent. Supports categories (task, question, blocker, etc.) and threading.
- **memory_notify** — Send a message to a PERSON over their own Gmail/Slack. Junto queues it; the person's notify runner (contrib/notify-runner, on their machine) delivers it through their approved Claude connector with a headless `claude -p`, behind a local recipient allowlist. Scheduled tasks can route to `human:<name…
- **memory_get_messages** — Get pending messages for your agent. Scoped by project.
- **memory_acknowledge_message** — Mark a message as received (shortcut for status update).
- **memory_update_message_status** — Track message lifecycle: pending, delivered, received, completed, failed.
- **memory_heartbeat** — Send a heartbeat with your current status (idle, busy, error). Enables stale detection.
- **memory_get_agent_status** — Get heartbeat status of agents. Flags agents stale after 5 minutes.
- **memory_list_agents** — Discover registered agents across projects with roles and last activity.
- **memory_register_function** — Register a function reference with name, file, purpose, and optional gotchas. Triggers librarian enrichment.
- **memory_find_function** — Search for functions by purpose or name. Check before implementing to avoid duplication.
- **memory_enrich_function** — Add deep analysis to a function ref: signature, parameters, side effects, complexity. For librarian use.
- **memory_get_enrichment_queue** — View functions awaiting librarian enrichment.
- **memory_become_librarian** — Get a prompt and unenriched functions to run local enrichment on your machine.
- **memory_define_spec** — Create or update a versioned spec with owner-only enforcement. Supports semver and history.
- **memory_get_spec** — Retrieve a spec by name, optionally at a specific historical version.
- **memory_list_specs** — List all specs with optional version history and type filtering.
- **memory_project** — Manage projects and agents. Actions: `create`, `get`, `list`, `delete`, `add_agent`, `remove_agent`, `update_agent`.
- **memory_checklist** — Shared checklists for launch readiness, deploy steps, etc. Actions: `create`, `get`, `add`, `check`, `delete`, `list`.
- **memory_db** — Read-only queries against registered external databases. Actions: `list`, `schema`, `query`. SQL injection protection built in.
- **memory_guidelines** — Manage behavioral rules that all agents receive at session start. Actions: `list`, `set`, `delete`, `get`. Update once, every agent on every machine picks it up.
- **memory_admin** — Manage API keys and view audit logs. Actions: `create_key`, `revoke_key`, `list_keys`, `audit_log`, `auth_status`. Requires owner role when auth is enabled.
- **memory_update_work** — Update your current work status and files touched. Enables overlap detection and dependency signaling.
- **memory_change_status** — Change a document's status: active, deprecated, superseded, archived. Preserves history.
- **memory_verify** — Mark a doc verified / rejected / unreviewed (separate from status). Verified docs lead their relevance band; rejected docs drop out of search and recall. Human, admin/owner or librarian only; no self-verify.
- **memory_archive_by_tag** — Bulk archive all documents matching a tag (e.g., end-of-version cleanup).
- **memory_restore_by_tag** — Bulk restore previously archived documents by tag.
- **memory_update_tags** — Add/remove tags on one existing doc (e.g. `sys:old`, `valid-until:<event>` for retiring old-system knowledge — interface:knowledge-versioning-v0).
- **memory_get_active_work** — See what other agents are currently working on — tasks, files touched, timestamps. Avoid overlap.
- **memory_claim_message** — Claim a message so exactly one agent in a group handles it (multi-consumer coordination).
- **memory_set_reminder** — Schedule a message to your future self (or a peer) at a specific time — deadlines, follow-ups, "ping me after X".
- **memory_cancel_reminder** — Cancel a previously scheduled reminder.
- **memory_list_reminders** — List your pending scheduled reminders.
- **memory_register_skill** — Author a reusable skill (trigger + steps + gotchas + preconditions). Always creates a `draft`.
- **memory_confirm_skill** — Promote a draft skill to `active` — the trust gate. Owner/human only.
- **memory_get_skill** — Fetch one skill's full body by id or name.
- **memory_list_skills** — List skills (headers) scoped by project/role/directory/status. Pinned first, then active.
- **memory_pin_skill** — Pin/unpin a skill so it ranks first in surfacing.
- **memory_export_skills** — Export active, scope-matched skills as ready-to-write `SKILL.md` payloads for a launcher to materialize.
- **memory_ack_directive** — Acknowledge a server-issued directive (e.g. a park or behavioral instruction) so it clears.
- **memory_list_alerts** — List push-control alerts — budget warnings, budget breaches, hard-ceiling trips — for an operator dashboard or polling fallback.
- **memory_get_emission_stats** — Per-agent message-emission counters and budget usage.
- **memory_report_context** — Report agents' context-window fill from any machine (used by the per-box `contrib/context-report` reporter). `memory_get_agent_status` then shows every agent's context gauge, and the idle→park nudge uses it (see [Context Gauge and Idle-Park Nudge](#context-gauge-and-idle-park-nudge)).
- **memory_standup** — Auto-compiled team standup for a project — every agent's current task, blockers, stale state specs, and an aggregated decision queue. Read-only, needs no agent to produce it.
- **memory_health** — Server health — MongoDB + ChromaDB status and active session/lock/signal counts. No session required.
- **memory_sync_pull** — Pull op-log entries newer than the caller's per-origin cursor.
- **memory_sync_push** — Apply a batch of op-log entries received from a peer (seq-monotonic, intent-deduped).
- **memory_batch_backlog** — Create or update many backlog items in one call.
- **memory_delegate** — Create a task for the local model: data source (scope), instructions, JSON output schema, routes, optional schedule and canaries. No schedule = run once now. Can request a new connection in the same call.
- **memory_schedule** — Manage your tasks: `list`, `get`, `edit` (versioned), `pause`, `resume`, `delete`, `run_now`, `history`, `runs`, `approve` (operator).
- **memory_job** — One run: `status`, `result` (each item's output and the route it took), `cancel`. Owner only.
- **memory_runners** — Runners and connections: `list` (hosts, models, last heartbeat), `scopes` (connections you can use), `request_connection`; operator-only `define_scope`, `create_runner_key`.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/tlemmons/junto-memory), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
python server.py --transport stdio
```

2. Start the server:

```sh
python -m shared_memory --transport stdio
```

3. Start the server:

```sh
docker compose up -d mongodb chromadb
```

4. Install:

```sh
pip install -r requirements.txt
```

5. Start the server:

```sh
python server.py --host 0.0.0.0 --port 8080
```

6. Start the server:

```sh
cd src && python -m shared_memory --host 0.0.0.0 --port 8080
```

## Documentation

## What junto-memory does

junto-memory gives AI agents a shared store for project knowledge and coordination state. Agents can save architecture notes, API specifications, snippets, learnings, gotchas, and interface contracts, then retrieve them with natural-language search or exact document IDs. Global search can span projects and shared collections.

The coordination layer covers session registration and handoff, file and directory locks, agent heartbeats, status discovery, threaded messages, and backlog items. It also supports function references that can be enriched with source-level details, plus versioned specifications with owner enforcement and semantic-version history.

A single agent can use the persistent memory, learning records, function registry, backlog, and specifications without using the multi-agent coordination features. Teams of agents can use the same installation to reduce duplicated investigation and coordinate changes to a shared codebase.

## How it works

Agents connect to the MCP server using streamable HTTP. The server runs as a Docker Compose stack and persists documents and coordination state in MongoDB and ChromaDB-backed volumes. ChromaDB provides vector-based retrieval for knowledge searches, while MongoDB stores the broader documents, messages, sessions, locks, and project state.

A session normally starts with `memory_start_session`, which returns recent learnings, active agents, file locks, and pending signals. During work, an agent can acquire locks, search or store knowledge, exchange messages, and update backlog items. `memory_end_session` records a summary, changed files, and handoff notes while releasing locks. Heartbeats support stale-agent detection, and file locks include stale detection for inactive sessions.

## Setup and configuration

Clone the repository and run the installation from a fresh Claude Code, Cursor, or other MCP-capable agent session. The documented setup uses the root-level `docker-compose.yml` and walks through prerequisites, environment-file configuration, container startup, health checks, and MCP client configuration.

The stack exposes MCP over port 8080 by default. Installation may require decisions about database passwords, ports, authentication, and whether the server is local or remote. Docker is part of the supported deployment path, and the project targets Python 3.11 or newer. The installation process includes a smoke test after startup.

## Tools and capabilities

- Start and close sessions with context and handoff records.
- Search, store, retrieve, and globally query shared knowledge.
- Lock files or directories, release locks, and inspect stale locks.
- Send, receive, acknowledge, and track agent messages.
- Monitor agent heartbeats, status, roles, and recent activity.
- Create and manage backlog items with project, priority, status, assignee, and milestone filters.
- Register functions, find them by purpose or name, and manage librarian enrichment.
- Define and retrieve versioned specifications.
- List projects and document counts.

## Limitations and notes

The project is intended to be installed with the help of an AI coding agent because its setup includes operational choices around volumes, credentials, authentication, and network trust. Its coordination features are useful for multiple agents, but they can remain unused when only one agent connects. File locks release when a session ends, while heartbeat and lock inspection use inactivity thresholds to identify stale activity.

_Full upstream README: https://allmcps.com/mcp/junto-memory/readme_

