[!CAUTION] Not ready to use yet
An MCP server that indexes Svelte 5 components and provides code intelligence via the Model Context Protocol.
100% Vibecoded in Zig 0.17.0
zig build --fetch
zig build
zig build test
install zig-out/bin/svelte_index_mcp ~/.local/bin/svelte_index_mcp
Run the MCP server with a database path:
svelte_index_mcp .svelte-index.db
The server indexes the current working directory and starts listening for JSON-RPC requests on stdin/stdout.
--config <path> Override config file location (default: .svelte-index.json)
--index <path> Override index database path
--force Force full re-index
--verbose Detailed logging during indexing
Create a .svelte-index.json in your project root:
{
"exclude": [".git", "node_modules", "dist", "build", ".svelte-kit"],
"include": ["**/*.svelte", "**/*.svelte.js", "**/*.svelte.ts"],
"index_path": ".svelte-index.db",
"project_root": "."
}
Add to your .mcp.json (or client config):
{
"mcpServers": {
"svelte-index": {
"command": "svelte_index_mcp",
"args": [".svelte-index.db"],
}
}
}
search - Search components, symbols, and routes by namefind_routes - List all SvelteKit routeslist_components - List all indexed componentsget_component - Get component details including props and snippetslist_symbols - List symbols in a fileget_symbol - Get symbol detailsfind_imports - Find import relationshipsfind_usage - Find where a component is usedfind_usage_deep - Deep usage analysis through the component treefind_context - Find setContext/getContext usagetrace - Trace component relationshipsindex - Trigger re-indexingindex_status - Get indexing status