strata-mcp
Provides structural AST search, component usage analysis, route topology discovery, and Astro island hydration directive detection across .astro files.
Discovers file-based route topology, nested layouts, dynamic parameters, and API handlers for Inertia.js applications.
Enables AST-based code search, component tree mapping, route topology discovery, and state impact tracing across Next.js applications.
Supports structural search, component adoption audits, route scanning, and state impact analysis for Nuxt 3 apps using Vue SFC-aware AST parsing.
Provides AST-powered structural code search, component hierarchy trees, blast radius analysis, and state store consumption tracing across React/JSX/TSX codebases.
Traces components, layout wrappers, and pages that consume Redux state stores for state impact and dependency analysis.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Strata
Static & Semantic Code Analysis Engine for AI Coding Agents — built for Frontend & Fullstack JS/TS projects.
Strata is a local static and semantic analysis MCP server and CLI for Vue, Nuxt, React, Next.js, Svelte, and Astro codebases. Instead of grepping blindly or loading entire files into context, AI coding agents query an embedded SQLite symbol graph (.strata/graph.db) paired with a scoped TypeScript Language Service across single-repo apps, fullstack projects, monoliths, and monorepos—100% in-process with zero external binary dependencies.
What It Does
Strata exposes 5 MCP tools over the Model Context Protocol (MCP):
Workspace Mapping (
map_workspace): Maps project packages, frameworks, routes, file inventories, and unused component candidates without reading file bodies (and opens the interactive Strata Explorer MCP App when supported).File Outline & Contract (
inspect_file): Extracts body-free symbol outlines, type-resolved props, emits, models, slots, render boundaries, and inline + 1-hop composable outbound HTTP calls (withbackendTargetHint).Unified Graph & Impact (
query_graph): Tracesdefinition,references,call_hierarchy,component_tree,state_flow, andimpactacross files and packages, grouping results by package and flagging dynamic omissions.Selective Source Reading (
read_slice): Reads bounded, SHA-256 hash-verified slices bysource_ref,symbol_id, SFC block, or line range with stale-file and workspace-boundary guards.In-Process Code Discovery (
search_code): Searches workspace symbols (FTS5),component_usage,prop_usage, and scoped literal text without spawning external processes.
Supported Frameworks
Framework | Extensions | Capabilities |
Vue.js (2 & 3) |
| Props, emits, models ( |
Nuxt.js |
| File-system routing ( |
React.js |
| Function & class components, JSX elements, hooks ( |
Next.js |
| App Router ( |
Astro |
| Islands architecture ( |
Svelte (4 & 5) |
| Svelte 5 Runes ( |
Static Analysis Scope: Strata analyzes source files and configuration statically—it does not execute the application or guarantee exhaustive runtime coverage. Dynamic expressions, forwarding, and runtime behavior still require verification in your project. See the Feature Contracts & Limits for full tool contracts, response budgets, and known limits.
Related MCP server: code-intel
Installation
Standalone Binary (Zero Dependencies)
Download and install the compiled single binary without needing Node.js or Bun installed locally:
Linux & macOS:
curl -fsSL https://raw.githubusercontent.com/Shironim/strata-mcp/master/scripts/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/Shironim/strata-mcp/master/scripts/install.ps1 | iexVia Bun Package Manager
bun add -g @dimassetoid/strata-mcp(You can also run commands directly with bunx --package @dimassetoid/strata-mcp strata <command>)
Quick Start & AI Agent Setup
Run strata init in your project root to set up .strata/graph.db, MCP configs, and agent skills:
strata initYou can target a specific AI harness directly:
strata init --harness antigravity # Google Antigravity (.gemini/)
strata init --harness claude # Claude Code (.claude/)
strata init --harness codex # OpenAI Codex (.codex/)
strata init --harness opencode # OpenCode (opencode/)
strata init --harness agents # Universal Agent Harness (.agents/)CLI Reference
Operational Commands
Command | Description |
| Start the MCP server over stdio for AI coding agents |
| Initialize |
| Incrementally update |
| View local MCP telemetry (latency, request counts, errors) |
Analysis Commands (1:1 with MCP Tools)
Command | Description |
| Map projects, frameworks, routes, files, or health candidates |
| Inspect file outline, resolved props/slots contract, and HTTP boundaries |
| Query |
| Read a bounded, hash-verified source slice ( |
| Search symbols, |
Documentation
Feature Contracts & Limits — Tool specifications, index requirements, and static-analysis boundaries
Query Envelope, Evidence & Response Budgets —
QueryEnvelopestructure,verificationtiers,cursorpagination,max_bytesbudgets, and hash-boundsourceRefhandlesStorage, Graph Linker & Monorepo Sync — SQLite WAL cache (
.strata/graph.db), scoped incremental graph linking, and watcher-backed fast syncSemantic Engine & Plugins — Framework plugins, Virtual TSX projection, and TypeScript Language Service lifecycle
MCP Resources, Explorer App & Workflow Prompts — Interactive Strata Explorer UI (
ui://strata/explorer.html), read-only resources, and guided playbooksLifecycle Hooks & Concurrency Supervisor — Post-write sync hooks, fast read-only concurrency lane, and cancellation guarantees
Tool Call Telemetry & Logging — Local
.strata/strata.logJSONL metrics, rotation, andstrata stats
Development
# Clone and install dependencies
git clone https://github.com/Shironim/strata-mcp.git
cd strata-mcp
bun install
# Build the Explorer asset used by the MCP integration test
bun run build
bun testLicense
MIT © shironim
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to understand and navigate codebases through structural analysis. Provides code mapping, symbol search, and impact analysis using ast-grep for accurate parsing of Python, JavaScript, TypeScript, and Go projects.452MIT
- AlicenseNot gradedqualityDmaintenanceProvides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and terminal users to query codebases for callers, impact, tests, dependencies, and refactor previews using static AST analysis, with every match accounted for and uncertain relationships clearly marked.650 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to query a project's living frontend index — components, pages, data flow, global state, API calls, styles, health issues and history — through tools for search, component cards, impact analysis, page trees and incremental rescans.30 npm2Apache 2.0