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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@strata-mcpFind all remaining usages of OldButton in the src directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Strata
Multi-Framework Frontend Structural AST Search, Component Graph & Intelligence Engine.
Strata delivers token-efficient structural code intelligence across Vue SFCs (.vue), Astro (.astro), and React/Next (.js, .jsx, .ts, .tsx). It indexes component hierarchies, state dependencies, and routes into an embedded SQLite graph cache (.strata/graph.db) with exact multi-language line remapping.
Installation
Install Strata globally using Bun:
bun add -g @dimassetoid/strata-mcpNote: You can also run commands on-the-fly without global installation using
bunx @dimassetoid/strata-mcp <command>.
Related MCP server: Frontend Code Analysis MCP
Quick Start
1. Initialize in Any Project
strata init
# or zero-install via bunx:
bunx @dimassetoid/strata-mcp initBootstraps agent harness rules/skills and initializes local SQLite graph cache (.strata/graph.db).
2. Connect to AI Agent (MCP Server)
Add Strata to your MCP client (mcp.json or claude_desktop_config.json):
{
"mcpServers": {
"strata": {
"command": "strata",
"args": ["serve"]
}
}
}(Or use "command": "bunx", "args": ["@dimassetoid/strata-mcp", "serve"] if running without global installation).
CLI Reference
Command | Description |
| Launch stdio MCP server for AI coding agents |
| Bootstrap agent harness rules/skills & initialize graph cache |
| Extract token-efficient component interface (props, emits, slots) |
| Visualize downward component hierarchy or upward blast radius |
| Map file-based route topology, layouts, and dynamic parameters |
| Query state store, composable, or context blast radius across components |
| Extract outbound HTTP API calls, methods, and payload schemas |
| Audit dead/unreferenced components and pages |
| Scan for composables, stores, and hooks with zero consumers |
| Search multi-framework AST patterns with metavariables ( |
| Generate prescriptive AST patch plan across upward consumers |
| Fast incremental delta synchronization for |
Core Capabilities & MCP Tools
All tools expose typed schemas automatically via the Model Context Protocol:
Structural Code Search (
find_code): Multi-framework AST search across.vue,.astro, and.tsxwith exact line remapping.Component Contract Master (
inspect_component): Deep inspection of props, emits, slots, form schemas, Inertia/Query endpoints, and reactivity smells.Hierarchy & Blast Radius (
get_component_tree): Resolves downward trees (with props drilling & dangling context alerts) or upward blast radius.Route Discovery (
get_routes): Maps route topology, layouts, and dynamic parameters across Next.js, Nuxt, Astro, and Inertia.API Boundary Extraction (
get_api_contracts): Extracts and canonicalizes outbound HTTP endpoints (/api/users/:id) and payload keys.Prescriptive Refactoring (
generate_patch_plan): Generates exact AST-level replacement diffs across all upward callers.State Impact Tracer (
trace_state): Maps state stores (Pinia, Zustand, Redux), composables, and Context cascading chains.Full Frontend Audit (
audit_frontend): Comprehensive health check for dead components, unused state, template clones, and design tokens.
Development & Contributing
# 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
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
- AlicenseAqualityDmaintenanceEnables 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 gradedqualityDmaintenanceAnalyzes frontend project code (React, Vue, Angular) and converts it into AI-understandable flow diagrams and object structures. Provides tools for code analysis, variable/function/component inspection, and project structure insights.2 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to perform high-performance code search and analysis across multiple languages using symbol indexing, regex text search, and structural AST pattern matching. It also provides tools for technology stack detection and dependency analysis with persistent caching for optimized performance.8-
- AlicenseNot gradedqualityBmaintenanceEnables AI coding tools to query your live codebase for routes, import graph, domain context, and blast radius, eliminating hallucinations about project structure.87 npm78MIT