SwarmVault is a local-first RAG knowledge vault. It compiles raw sources (books, notes, transcripts, exports, datasets, slide decks, files, URLs, code) into a durable markdown wiki with a knowledge graph and a hybrid SQLite FTS plus embeddings index.
This plugin wires SwarmVault into Claude Code:
- Registers the SwarmVault MCP server so Claude can search pages, read the graph, and run query/ingest/compile/lint over the current vault.
- Ships the canonical SwarmVault skill so Claude knows when and how to use the vault.
- Adds three slash commands:
/swarmvault:compile,/swarmvault:query,/swarmvault:graph.
- Node.js 18 or newer (the MCP server runs via
npx -y @swarmvaultai/cli). - A SwarmVault vault directory. If you don't have one yet,
cdto an empty directory and runnpx -y @swarmvaultai/cli initor use the/swarmvault:compilecommand which will prompt forinitfirst.
/plugin install swarmvault
Or from the repository directly while it is still pending in the marketplace:
/plugin marketplace add swarmclawai/swarmvault
/plugin install swarmvault@swarmvault
Start Claude Code from the vault root:
cd ~/my-vault
claudeThe plugin inherits that working directory, so the MCP server and slash commands operate against the vault without extra configuration.
/swarmvault:compile— rebuild the wiki, graph, and search index fromraw/. Accepts the same flags as the CLI (--approve,--max-tokens,--commit)./swarmvault:query <question>— ask a question against the compiled vault. The answer is saved towiki/outputs/by default./swarmvault:graph— start the live graph viewer at a local URL.
Once installed, the swarmvault MCP server is registered automatically. It exposes tools for page search, page reads, source listing, query, ingest, compile, and lint. See the SwarmVault docs at https://swarmvault.ai/docs for the full tool list.
The bundled skill tells Claude when to reach for SwarmVault — typically when a project already contains swarmvault.config.json or swarmvault.schema.md, or when the user asks for durable notes, a knowledge base, or a graph over their sources. Claude will propose running swarmvault init, ingest, or compile when appropriate.
The MCP server runs in whatever directory Claude Code started in. To point at a different vault, restart Claude Code from that directory. If you need a fixed cwd (for example, when using Claude Code inside a monorepo whose root is not the vault), fork this plugin and add "cwd": "/absolute/path/to/vault" to the swarmvault entry in .mcp.json.
MIT. See LICENSE.
- Website: https://swarmvault.ai
- Docs: https://swarmvault.ai/docs
- CLI on npm: https://www.npmjs.com/package/@swarmvaultai/cli
- Source: https://github.com/swarmclawai/swarmvault