Skip to main content
Glama
README.md
# ClawSouls MCP Server

AI agent persona management, safety verification, and memory tools via [Model Context Protocol](https://modelcontextprotocol.io).

**9 tools** for Claude Code, OpenClaw, and any MCP-compatible client.

## Quick Install (Claude Code)

```bash
# Install the ClawSouls plugin (includes MCP server)
/plugin marketplace add https://github.com/clawsouls/clawsouls-claude-code-plugin
/plugin install clawsouls
/reload-plugins
```

Or add directly to your `.mcp.json`:

```json
{
  "mcpServers": {
    "clawsouls": {
      "command": "npx",
      "args": ["-y", "clawsouls-mcp@latest"]
    }
  }
}
```

## Use with OpenClaw

OpenClaw consumes MCP servers through [mcporter](https://mcporter.dev). Call ClawSouls tools ad-hoc over stdio:

```bash
mcporter call --stdio "npx -y clawsouls-mcp@latest" soul_search query="chief of staff"
mcporter list --stdio "npx -y clawsouls-mcp@latest" --schema
```

To persist it, add the `.mcp.json` block below to a file and import it:

```bash
mcporter config import ./.mcp.json
```

(See [mcporter.dev](https://mcporter.dev) for full config options.)

## Use with Hermes Agent / Cursor / Windsurf / any MCP client

Same stdio command via an `.mcp.json`-style config:

```json
{
  "mcpServers": {
    "clawsouls": {
      "command": "npx",
      "args": ["-y", "clawsouls-mcp@latest"]
    }
  }
}
```

## Tools

### 🎭 Persona Management

| Tool | Description |
|------|-------------|
| `soul_search` | Search AI agent personas by keyword, category, or tag |
| `soul_get` | Get detailed info about a specific persona |
| `soul_install` | Download a persona and generate CLAUDE.md |

### πŸ” Safety & Integrity

| Tool | Description |
|------|-------------|
| `soul_scan` | SoulScan β€” verify persona safety against 53 patterns (safety grade + recommendations) |
| `soul_rollback_check` | Detect persona drift by comparing current vs. baseline files |

### 🧠 Swarm Memory

| Tool | Description |
|------|-------------|
| `memory_search` | **TF-IDF + BM25** ranked search across MEMORY.md + memory/*.md |
| `memory_detail` | Fetch full content of a specific memory section (3-layer step 2) |
| `memory_status` | Show memory file inventory, sizes, and git status |
| `memory_sync` | Git-based multi-agent memory sync (init/push/pull/status) |

## Memory Search

### TF-IDF + BM25 Ranking (Default β€” Free)

```
memory_search query="SDK version fix"
```

Returns a compact index (~50 tokens per result) ranked by relevance:

```
| # | Location              | Section          | Score |
|---|-----------------------|------------------|-------|
| 1 | memory/2026-03-31.md:5 | SDK 버전 문제 ν•΄κ²° | 2.41  |
| 2 | MEMORY.md:42          | Troubleshooting   | 1.87  |
```

### Enhanced Mode (More tokens, more context)

```
memory_search query="SDK version fix" enhanced=true
```

Returns full snippets with score visualization for top results.

### 3-Layer Workflow (Token Efficient)

```
Step 1: memory_search query="bug fix"        β†’ compact index with scores
Step 2: memory_detail file="memory/2026-03-31.md" line=5  β†’ full section
Step 3: (optional) memory_search enhanced=true  β†’ deep dive
```

~10x token savings compared to loading all memory files.

## Swarm Memory Sync

Share memory across multiple agents via Git:

```
# Initialize (one time)
memory_sync action=init repo_url=git@github.com:user/agent-memory.git

# Push local changes
memory_sync action=push agent_name=brad

# Pull from other agents
memory_sync action=pull

# Check sync status
memory_sync action=status
```

### Compatible Folder Structure

Works with [OpenClaw](https://openclaw.ai)'s memory layout:

```
MEMORY.md              # Long-term curated memory
memory/
  topic-*.md           # Project-specific status/decisions/history
  YYYY-MM-DD.md        # Daily logs
```

## Platforms

| Platform | Integration |
|----------|-------------|
| **Claude Code** | Plugin + MCP β€” `/clawsouls:*` commands |
| **OpenClaw** | MCP tools via [mcporter](https://mcporter.dev) + native SOUL.md support |
| **Hermes Agent** | MCP server via `.mcp.json` |
| **Cursor / Windsurf** | MCP server via `.mcp.json` |
| **Any MCP Client** | `npx -y clawsouls-mcp@latest` |

## Links

- [ClawSouls Platform](https://clawsouls.ai)
- [Claude Code Plugin](https://github.com/clawsouls/clawsouls-claude-code-plugin)
- [Documentation](https://docs.clawsouls.ai)
- [Soul Spec Standard](https://soulspec.org)

## License

MIT

TDQS

A4/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no ambiguity. Memory tools (memory_detail, memory_search, memory_status, memory_sync) handle different aspects of memory management, while soul tools (soul_get, soul_install, soul_rollback_check, soul_scan, soul_search) each perform unique persona-related operations. The descriptions clearly differentiate their functions.

Naming Consistency5/5

Tool names follow a perfectly consistent snake_case pattern with clear prefix organization. All memory tools start with 'memory_' and all persona tools start with 'soul_', creating predictable groupings. The verb+noun structure is maintained throughout (e.g., memory_search, soul_install).

Tool Count5/5

With 9 tools, this server is well-scoped for its dual-domain purpose (memory management and persona management). The count allows comprehensive coverage without bloat, and each tool clearly earns its place in the workflow. This is an ideal number for the server's apparent scope.

Completeness4/5

The tool surface provides excellent coverage for both memory and persona domains. Memory tools support search, detail retrieval, status checking, and synchronization. Persona tools support discovery, installation, safety verification, drift detection, and information retrieval. The only minor gap is the lack of persona modification/update tools, but agents can work around this by reinstalling or using memory tools for customizations.

Maintenance

ActivityInactive
ResponsivenessNo issues