# Abhigyan-Shekhar/Waggle-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Abhigyan-Shekhar/Waggle-mcp  
**GitHub Stars:** 46  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/abhigyan-shekhar-waggle-mcp

## Description
Persistent graph memory for AI agents. Drop a conversation turn in via observeconversation() and facts are auto-extracted, stored as typed graph nodes with local semantic embeddings (no API key). Supports temporal queries ("what did we decide last week?"), conflict detection, and context priming. One-command setup with waggle-mcp init. SQLite locally, Neo4j in production.

## Tools
Capabilities this server exposes over MCP:

- **observe_conversation** — After any turn containing a decision, preference, constraint, correction, or project fact. Persists the verbatim turn first, then extracts graph nodes. Returns `turn_id`, `verbatim_stored`, `nodes_extracted`, `edges_inferred`.
- **query_graph** — Before answering questions that may depend on prior context. Hybrid retrieval (graph + verbatim transcript) by default. Supports `as_of` for point-in-time queries.
- **prime_context** — At the start of a new session to hydrate context from the most relevant scoped memories.
- **graph_diff** — When the user asks what changed recently.
- **aggregate_graph** — Broad filtered subgraph for map-reduce tasks. Use when you want a large scoped slice rather than high-precision top-K. Supports `node_types`, `tags`, `as_of`, `include_invalidated`.
- **get_related** — Fetch the neighborhood around a specific node by ID.
- **get_node_history** — Inspect a node's evidence, validity window, and connected context.
- **get_topics** — Topic clusters via community detection across the full tenant graph.
- **timeline** — Chronological view of memory changes for a node or query.
- **list_conflicts** — List unresolved contradiction and update edges.
- **resolve_conflict** — Mark a conflict resolved. Pass `winner` (node ID) to supersede the losing node — sets its `valid_to` to now.
- **update_node** — Update an existing node's content, label, or tags.
- **delete_node** — Delete a node and all its edges.
- **decompose_and_store** — Break long content into atomic nodes and infer edges automatically.
- **dedup_candidates** — Return near-duplicate node pairs above a similarity threshold for human review.
- **canonicalize_node** — Merge multiple nodes into one canonical node. Repoints all edges, collects aliases. Idempotent.
- **edge_quality_report** — Audit edge quality — counts, average confidence per type, top/bottom confidence edges.
- **debug_retrieval** — Diagnose retrieval ranking for a query — embedding scores, window routing, tiered vs flat comparison.
- **list_context_scopes** — Known agent, project, and session scope values.
- **list_context_windows** — Chat/session-level memory containers with status and node counts.
- **get_context_window** — Inspect one context window and its nodes.
- **close_context_window** — Close a session window and derive cross-window edges.
- **window_graph_viz** — Export the context-window graph as an interactive HTML visualization.
- **export_graph_html** — Export the memory graph as an interactive HTML visualization.
- **get_stats** — Node/edge counts, type breakdowns, and recent highly-connected nodes.
- **commit** — Snapshot the graph to a `.abhi` file. Formats: `abhi` (default), `backup` (raw JSON), `bundle` (Markdown/JSON context pack).
- **pull** — Load a `.abhi` or backup file into the current graph. Runs integrity verification before merging.
- **diff** — Compare two `.abhi` files — added/removed/updated nodes and edges.
- **merge** — Three-way merge two `.abhi` branches against a common base. Conflicts surface as `CONTRADICTS` edges.
- **fsck** — Validate a `.abhi` file without importing it.
- **show** — Inspect a `.abhi` file's summary stats without loading it.
- **grep** — Execute a saved or ad hoc query against a `.abhi` file.
- **load_abhi_chunks** — Load only selected or query-relevant chunks from a `.abhi` file.
- **export_markdown_vault** — Export the graph as an Obsidian-compatible Markdown vault.
- **import_markdown_vault** — Import an edited Obsidian vault back into the graph non-destructively.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "waggle-mcp": {
    "command": "uvx",
    "args": ["waggle-mcp"]
  }
}
```

## Documentation

## What Abhigyan-Shekhar/Waggle-mcp MCP server does

Abhigyan-Shekhar/Waggle-mcp is a local-first memory layer for AI agents in the Knowledge & Memory category. It turns durable project information—such as decisions, preferences, requirements, corrections, and constraints—into typed graph nodes connected by inferred relationships. The original conversation turn is retained as evidence before extraction, so retrieved facts can be examined alongside their source context.

The graph is intended to persist beyond one model context window. A later session can load scoped memories, search previous decisions, inspect how a node changed, or identify unresolved contradictions. The system also supports portable `.abhi` graph snapshots for moving or comparing memory between workflows.

## How it works

The usual lifecycle has three stages:

- `observe_conversation` stores a verbatim turn and extracts candidate nodes and edges.
- `query_graph` combines graph retrieval with transcript search and can answer against a specified point in time through `as_of`.
- `prime_context` selects relevant scoped memories when a new session begins.

Memory is organized with agent, project, and session scopes. Context windows represent chat or session-level containers, and can be inspected or closed. Closing a window can derive relationships across windows. Temporal fields preserve validity periods, allowing historical questions and node timelines rather than only current-state lookup.

Local semantic embeddings are generated without an external API key. Retrieval behavior can be investigated with `debug_retrieval`, which exposes ranking information and compares retrieval modes.

## Setup and configuration

Abhigyan-Shekhar/Waggle-mcp requires Python 3.11 or newer and uses `pipx` in the documented quick-start path. Install the package, ensure the executable is on the path, then run the setup and diagnostic commands:

```bash
pipx install waggle-mcp
pipx ensurepath
waggle-mcp setup --yes
waggle-mcp doctor
```

Restart the MCP client after setup. For clients accepting an `mcpServers` configuration, the server runs through the `waggle-mcp serve --transport stdio` command. Setup can detect supported clients and write configuration for them. Automatic recording or retrieval depends on the client's hooks, skills, or project instructions; merely exposing the tools does not make an agent call them.

## Tools and capabilities

Abhigyan-Shekhar/Waggle-mcp provides tools for:

- Searching, priming, aggregating, and navigating graph memory with `query_graph`, `prime_context`, `aggregate_graph`, `get_related`, and `get_node_history`.
- Reviewing change and consistency with `graph_diff`, `timeline`, `list_conflicts`, and `resolve_conflict`.
- Editing memory through `update_node`, `delete_node`, `decompose_and_store`, `canonicalize_node`, and `dedup_candidates`.
- Auditing graph structure and retrieval with `edge_quality_report`, `debug_retrieval`, and `get_stats`.
- Managing context windows, topics, scopes, and interactive HTML graph exports.
- Saving, loading, comparing, merging, and validating `.abhi` or backup files with `commit`, `pull`, `diff`, `merge`, and `fsck`.

## Limitations and notes

The server does not automatically use memory solely because an MCP client can see its tools. Client-specific hooks, skills, or instructions must invoke the relevant operations.

The browser workspace is also distinct from installing the MCP server or configuring a remote MCP connector. The local setup does not require a Waggle account or external database, while production use may use Neo4j. Keep a consistent project identifier across sessions when continuity is required.

_Full upstream README: https://allmcps.com/mcp/abhigyan-shekhar-waggle-mcp/readme_

