Guide

Installation & CLI

Install Strata via Bun/npm or standalone binary, initialize a project, and use the CLI commands.

Strata is published on npm as @dimassetoid/strata-mcp and also ships precompiled standalone binaries for Linux, macOS, and Windows.

bun add -g @dimassetoid/strata-mcp

Or run directly without a global install:

bunx --package @dimassetoid/strata-mcp strata --help

Install as a Standalone Binary

If you do not want a Node.js or Bun dependency on your machine:

Linux & macOS:

curl -fsSL https://raw.githubusercontent.com/Shironim/strata-mcp/master/scripts/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/Shironim/strata-mcp/master/scripts/install.ps1 | iex

Initialize Your Project

Run strata init inside your repository root:

strata init

This creates the local SQLite index at .strata/graph.db (and adds .strata/ to .gitignore), plus optional MCP client config, agent instructions, and post-write sync hooks.

CLI Reference

Every MCP tool has a matching CLI command so you can test the exact same output from your terminal.

Operational Commands

CommandDescription
strata serveStart the MCP server over stdio for AI coding clients.
strata init [dir]Initialize .strata/graph.db, MCP configs, and agent playbooks.
strata sync [dir]Incrementally update .strata/graph.db after file changes.
strata stats [dir]Print local tool usage stats (latency, call counts, errors) from .strata/strata.log.

Analysis Commands

CommandMatching MCP ToolExample
strata map [dir]map_workspacestrata map --view routes
strata inspect <file>inspect_filestrata inspect apps/web/pages/index.vue
strata graph <query> [file]query_graphstrata graph impact src/components/Button.vue
strata read [file]read_slicestrata read src/App.vue --block scriptSetup
strata search <query>search_codestrata search Button --kind component_usage