# Sugar MCP server

> Lets AI coding agents claim tasks atomically, share memory, and record cost and audit history through MCP, CLI and REST.

- Repository: https://github.com/roboticforce/sugar
- Page: https://hostedmcp.org/servers/roboticforce/sugar
- Transport: stdio
- Stars: 101
- Latest version: 3.4.2

## Install

### Claude Code

```sh
claude mcp add sugar -- uvx sugarai
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "sugar": {
      "command": "uvx",
      "args": [
        "sugarai"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "sugar": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "sugarai"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"sugar","type":"stdio","command":"uvx","args":["sugarai"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "sugar": {
      "command": "uvx",
      "args": [
        "sugarai"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add sugar -- uvx sugarai
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.sugar]
command = "uvx"
args = ["sugarai"]
```

### Gemini CLI

```sh
gemini mcp add -s user sugar uvx -- sugarai
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "sugar": {
      "command": "uvx",
      "args": [
        "sugarai"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ANTHROPIC_API_KEY` | no | no | Anthropic API key for Claude model access |
| `GITHUB_TOKEN` | no | no | GitHub token for repository access |
| `SUGAR_DEFAULT_REPO` | no | no | Default repository in owner/repo format |

## FAQ

### Is Sugar just a kanban board for agents?

No. A board shows status; Sugar owns the queue, the claim/lease transaction, dependency gating, provenance and an append-only history. It can mirror a Hermes Kanban board, but it doesn't depend on one.

### Does Sugar send my code or data anywhere?

No. State is local SQLite by default and the dashboard binds to loopback; telemetry is only what your harness explicitly emits.

### Do I need to change how my agents work to use Sugar?

No. You add the MCP servers for tasks and memory, or use the CLI/REST API; the built-in runner is optional.

### Which harnesses does Sugar work with?

Claude Code, Codex, Cursor, Goose, OpenCode, Aider and custom scripts or bots can all share the board and memory.

### Is Sugar production-ready?

It is an early release used daily with a large test suite and cross-platform CI, but expect rough edges; start with a demo board before moving a real queue over.
