SuperAPI AI Directory

Waggle-mcp

Persistent graph memory that extracts facts from conversations into typed nodes with local embeddings, supporting temporal queries and conflict detection.

Open website

About this tool

Waggle-mcp is an open-source, local-first external memory layer for AI agents, provided as an MCP server and with more capabilities. It stores project knowledge as a graph structure: what you decided, why it matters, what it depends on, and what has changed, so that the next conversation can continue based on this context without having to start from scratch.

Purpose Waggle is used to preserve project memory for humans and AI agents, retaining decisions, context, and the reasoning behind them across conversations. It separates persistent project knowledge from the model's context window: agents retrieve relevant memories when needed and record meaningful results for use in subsequent conversations.

Main capabilities

  • Capture: record decisions, constraints, preferences, and supporting context.
  • Connect: associate related memories and preserve contradictions and updates.
  • Recall: retrieve scoped context with evidence and sources.
  • Continue: use that context in another session or supported client. The core MCP workflow uses prime_context to load project context, query_graph to retrieve relevant history, observe_conversation to record persistent results, and build_context to assemble a compact context package for a specific task.

Usage It can be installed from PyPI via pipx and requires Python 3.11+. On macOS, pipx can be installed with brew install pipx. After running pipx ensurepath for the first time, the terminal must be restarted. After installation, restart the MCP client to load Waggle; the installer detects supported clients and writes their configuration. Automatic memory behavior depends on the client having hooks, skills, or project instructions installed. For clients that accept mcpServers configuration, the corresponding configuration can be used. If the command is not found, run pipx ensurepath and reopen the terminal. It can be used with MCP clients, to view and edit memories in Graph Studio, or to bring a portable memory graph into a browser workspace.

Browser workspace (WebMCP) The Waggle workspace allows humans and compatible browser agents to use the same project memory. Its WebMCP adapter registers page-level Site tools via document.modelContext.registerTool, which is consistent with installing Waggle's MCP server or configuring a remote MCP The connectors are separate. To open the workspace in ChatGPT's built-in browser, you need a model and account configuration that supports the Site tool. In the address bar, check Site tools → Available site tools to confirm that the five Waggle tools are available, and keep that workspace tab open while using its memory. You can explore the example project, or choose Load private .abhi to use your own graph. On the hosted workspace, use project_id: waggle-webmcp, and the same applies after importing your own graph. When correcting memory, you can have the agent propose a replacement, review it in Proposals, edit it if necessary, and approve the exact value. Then have the agent apply the approved proposal using only its actual proposal ID, recall that decision again to confirm the result, and check its history.

Reviewable corrections Approved content cannot be changed by the applying agent. If the target memory has changed since the proposal was created, the proposal is marked as stale rather than overwriting the newer information. When applied, the previous memory is retained and linked to the replacement via an updates edge. These approval rules apply to the WebMCP correction workflow and do not mean that every direct graph edit or local MCP operation requires approval.

Bring your own memory The .abhi file is Waggle's portable memory graph. The browser importer reads existing memory and does not ingest the source repository to generate a project brief from scratch. In the workspace, choose Load private .abhi, and select an unencrypted schema 2.x file that is no more than 700 KiB compressed and no more than 4 MiB expanded. After confirming that the Private session graph indicator appears, the brief, recall, proposals, and approvals all use that imported copy. The import replaces the active workspace for that tab, does not merge with the example graph, does not modify the original file, and does not affect other visitors. You can also attach the file to a compatible chat, and the agent must be able to read the attachment and provide its bytes in base64; the tool does not accept local file paths or download URLs. If the chat cannot access the attachment, use the page file picker.

Data and deployment options Browser lifecycle: private imports persist after a page reload, and browser session restore may also preserve them. Use the workspace's Reset Demo control to explicitly clear the private copy and return to the example project. Closing only the chat conversation is not necessarily a deletion signal. Browser storage is not encrypted by the importer. AI services: in chatAttached files are shared with that chat provider. Memories returned through tool calls are also shared with the requesting AI service. Local storage does not mean model inputs stay on your device. Hosted preview: The public workspace is for experiencing browser functionality, not persistent production storage. Its free hosting may pause when idle, take time to wake, and lose example state on restart or redeployment. Opening it does not connect to a local Waggle database. The included SQLite preview configuration stores ephemeral state under /tmp, with at most 128 sessions per database, and rejects new sessions when capacity is reached without evicting existing sessions. Self-hosting: The governance backend for the browser preview currently requires SQLite. Remote MCP hosting using Neo4j is configured separately and is not a direct replacement for that browser workflow. Remote deployment requires configuring HTTPS, authentication, persistent storage, and backups. Read the production deployment guide, security model, and hardening checklist before exposing a server publicly.

Tech stack and development Waggle's memory engine and MCP server use Python, while Graph Studio and the browser workspace use React/Vite. On PowerShell, set $env:WAGGLE_MODEL="deterministic" before running pytest -q. Deterministic embeddings keep tests offline; use a normal embedding model when evaluating semantic retrieval.

Limitations

  • The Python package requires Python 3.11+ and pipx.
  • Browser import supports only unencrypted schema 2.x files, with size limits.
  • The hosted preview is not suitable for persistent production storage.
  • Browser storage is not encrypted by the importer.
  • Tool availability alone does not make an agent automatically use memory; its hooks, skills, or instructions need to call these tools.
  • Remote MCP hosting and the browser workflow are configured differently.

Waggle is open source under the Apache License 2.0.