Sugar logo

Sugar

Local-first MCP memory for coding agents, with project/global context, semantic search, and an optional autonomous task queue.

Install Sugar

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sugar": {
      "command": "uvx",
      "args": [
        "sugarai"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio sugar -- uvx sugarai

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx sugarai

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Sugar MCP server gives AI coding agents persistent project and global memory backed by local SQLite databases. Agents can search, store, and format context through MCP tools and resources, while semantic search runs locally with keyword fallbacks. An optional task queue can execute work with a configured AI agent, run tests, and commit results. Use Sugar when coding sessions need durable conventions, decisions, error patterns, or cross-project guidelines without external API calls.

Use cases

  • Store project decisions and conventions for later coding sessions
  • Search global guidelines alongside project-specific context
  • Retrieve relevant debugging patterns before changing code
  • Queue feature and bug-fix work for autonomous execution

Key features

  • Project and global SQLite memory stores
  • Semantic search with local keyword fallbacks
  • MCP tools and resources for agent-accessible context
  • Optional autonomous task queue
  • Memory-focused Agent Skills
  • Optional labeled GitHub issue resolution

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · sugarai (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars105Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Sugar works

What Sugar MCP server does

Sugar provides a local memory layer for AI coding agents. It separates project-specific knowledge from information that should apply everywhere: project memories live in .sugar/memory.db, while global memories live in ~/.sugar/memory.db. Supported memory types include decisions, preferences, file context, error patterns, research, outcomes, and guidelines.

The memory layer is useful for retaining architecture choices, coding conventions, debugging patterns, research notes, and other context between sessions. Project results take priority during retrieval, while global guidelines retain reserved result slots so cross-project standards remain visible.

Sugar also includes an optional task queue. Tasks can be added from the command line and processed by an autonomous loop that uses the configured AI agent, runs tests, commits working changes, and continues until the queue is empty or stopped. Additional modes support staged orchestration and repeated attempts until tests pass.

How it works

Sugar uses SQLite for both memory stores and performs semantic retrieval with sentence-transformers and sqlite-vec when the memory extra is installed. The default embedding model is all-MiniLM-L6-v2, producing 384-dimensional vectors. If those dependencies are unavailable, searches fall back to SQLite FTS5 and then to LIKE queries. Search is local and makes no external API calls.

MCP clients can call tools to search memories, save learnings, retrieve formatted context, obtain a project summary, and browse recent entries. MCP resources expose project context, coding preferences, and global guidelines. Global storage can also be selected explicitly when an agent saves a learning.

Setup and configuration

Install Sugar with pipx, then initialize it inside a project:

bash
pipx install sugarai
cd ~/dev/my-app
sugar init

For semantic search, install the optional memory dependencies:

bash
pipx install 'sugarai[memory]'

Claude Code can register the memory endpoint with:

Terminal
claude mcp add sugar -- sugar mcp memory

A separate task endpoint is available for Claude Code:

Terminal
claude mcp add sugar-tasks -- sugar mcp tasks

Claude Desktop can use the same sugar mcp memory command through its MCP configuration. Goose supports the command as a command-line extension, and sugar opencode setup provides a one-command setup path for OpenCode.

Tools and capabilities

The memory MCP interface includes:

  • search_memory for searching project and global stores with scope labels.
  • store_learning for saving knowledge, including global entries through scope: "global".
  • recall for returning formatted Markdown context for a topic.
  • get_project_context for a full project summary with global guidelines.
  • list_recent_memories for browsing recent entries by type.

The MCP resources are sugar://project/context, sugar://preferences, and sugar://global/guidelines.

From the command line, sugar remember stores entries and sugar recall retrieves them. The task queue uses sugar add, sugar run, sugar list, and sugar status. Tasks can be marked urgent, assigned a type, run through a four-stage research/plan/implement/review workflow, or configured for iterative execution with a maximum number of attempts.

Agent Skills included with Sugar cover memory use, task planning, quality review, and multi-step orchestration. These skills are distributed as folders containing SKILL.md instructions and evaluation data.

Limitations and notes

Sugar is designed for local storage and offline operation, so memory remains on the machine rather than in a hosted service. Semantic retrieval requires the optional memory installation; the base installation uses keyword-oriented fallbacks. Memory entries have different retention periods: decisions, preferences, file context, and guidelines do not expire, while error patterns, research, and outcomes expire after 90, 60, and 30 days respectively.

The task queue is optional and depends on a configured AI agent. Autonomous issue resolution is also optional and can target labeled GitHub issues, implement fixes, run tests, and open pull requests for review.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sugar

Sugar is an MCP server that connects AI coding agents to local project and global SQLite memory stores. Its main tools search memories, store learnings, recall formatted context, summarize project context, and list recent entries, allowing agents to retain decisions, preferences, guidelines, research, and debugging knowledge across sessions.

Install Sugar with `pipx install sugarai`, then run `sugar init` from the project directory. Install `sugarai[memory]` instead when you want semantic search. Register the memory process with Claude Code using `claude mcp add sugar -- sugar mcp memory`.

Yes, Sugar works with Claude Desktop through the `sugar mcp memory` command configured as a command-line MCP extension. Claude Code can register the memory server directly, and a separate `sugar mcp tasks` endpoint is available for task-queue use.

Yes, semantic search runs locally with sentence-transformers and sqlite-vec and makes no external API calls. Install the `sugarai[memory]` extra for the semantic dependencies; without it, Sugar falls back to SQLite FTS5 and then `LIKE` queries.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSugar AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sugar?style=directory)](https://allmcps.com/mcp/sugar)
HTML Embed
<a href="https://allmcps.com/mcp/sugar"><img src="https://allmcps.com/api/badge/sugar?style=directory" alt="Sugar on AllMCPs" /></a>