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
Frontend Structural Analysis & Component Graph Engine for AI Coding Agents.
Strata is a local static-analysis MCP server and CLI for frontend codebases. Instead of grepping blindly or loading entire component files into context, AI coding agents query an embedded SQLite component graph (.strata/graph.db) and AST engine to inspect component contracts, trace reactive state, map routes and API calls, and generate hash-bound refactoring plans.
What It Does
Strata exposes 6 focused tools over the Model Context Protocol (MCP):
Structural Search & Inventory (
find_code): Inventories project files and searches templates or scripts using ast-grep patterns, relational YAML rules, literal text, or component/prop usage selectors without loading full files into context.Component Contracts & Slicing (
inspect_component): Extracts public component interfaces (props, emits, slots, models, state dependencies, and outbound API boundaries) and retrieves exact source ranges or symbol slices with SHA-256 verification.Component Hierarchy & Callers (
get_component_tree): Traverses downward rendered children or upward consumer candidates from a component or URL route, reporting prop forwarding and context dependencies (provide/inject,useContext,setContext).State & Store Impact (
trace_state): Finds static readers and mutators for Pinia, Zustand, Context, and composables, and traces bounded dependency chains.Frontend Audits (
audit_frontend): Scans application routes, outbound HTTP API calls, and unused component or reactive-state candidates.Safe Refactoring Proposals (
generate_patch_plan): Generates hash-bound edit proposals for static prop, event, model, and slot renames or removals across consumer files.
Supported Frameworks
Framework | Extensions | Capabilities |
Vue.js (2 & 3) |
| Props, emits, slots, v-model, Composition & Options API, Pinia stores |
Nuxt.js |
| File-system routing ( |
React.js |
| Function & class components, JSX elements, React 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 feature documentation 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 @dimassetoid/strata-mcp <command>)
Quick Start & AI Agent Setup
Run strata init in your project root to set up MCP configuration, agent skills, and the .strata/graph.db index:
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
Common Commands
Command | Description |
| Start the MCP server over stdio for AI coding agents |
| Initialize agent rules and skills, and build the graph index |
| Incrementally update |
| View local MCP telemetry (latency, request counts, errors) |
Analysis Commands
Command | Description |
| Search code patterns across |
| Inspect component props, emits, slots, and state |
| View component hierarchy tree or dependent callers ( |
| Trace where a reactive state or store is used |
| List application routes and page mappings |
| List outbound HTTP API calls and their caller components |
| Find unused reactive state composables or stores |
| Generate refactoring plans for prop or event renames |
Documentation
Feature Contracts & Limits — Tool specifications, index requirements, and static-analysis boundaries
Retrieval Evidence & Response Budgets — Formats,
max_bytespagination, summary mode, and evidence metadataStorage & Delta Sync — SQLite WAL cache (
.strata/graph.db) and incremental invalidation
Development
# Clone and install dependencies
git clone https://github.com/Shironim/strata-mcp.git
cd strata-mcp
bun install
# Run test suite & build
bun test
bun run buildLicense
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.1,016 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.16 npm2Apache 2.0