sqry is a local semantic code search tool. It parses source code into AST-backed symbol and relationship graphs so you can ask code questions that text search cannot answer reliably.
Everything runs on your machine. Indexing and querying make no network calls, and sqry sends no telemetry.
Website: https://sqry.dev
- 37 language plugins, 28 with full relation support and 9 with symbol extraction plus imports. By build cost, 29 are on the default fast path,
jsonis compiled but excluded by default as high-wall-clock, and 7 specialty plugins sit behind Cargo features. Thesqry://meta/manifestMCP resource reports these counts for the binary you have installed. - Structural queries over symbol kind, language, visibility, names, return types, references, and relations.
- Graph analysis for callers, callees, imports, exports, call paths, cycles, unused symbols, duplicates, impact, semantic diff, and focused subgraphs.
- Edge-backed
returns:<TypeName>and resolution-awareresolved_via:<kind>predicates for supported graph paths. See Call resolution predicates. - Cross-language FFI edges. The C, C++, C#, Elixir, Haskell, Kotlin, Lua, PHP, R, Ruby, and Rust plugins emit
FfiCalledges from mechanisms such asextern "C",DllImport/ P/Invoke, JNI, Ruby FFIattach_function, and R.Call/Rcpp. Query them withsqry graph cross-languageor thecross_language_edgesMCP tool. - Structural shape matching with
sqry shape-match, which finds functions with similar body structure independently of their identifiers. - A declarative rule layer.
sqry rules runexecutes shipped rule IDs and packs, or your own TOML rule packs, against the graph; therules_runMCP tool exposes the same engine. - Go context propagation analysis (
sqry context-propagation) for call sites that dropcontext.Context. - Rust macro-boundary analysis:
sqry cache expandbuilds a macro expansion cache,--expand-cachematerializes macro-generated symbols as searchable nodes, and--cfgmarks#[cfg]-gated symbols active or inactive. Both index-path options are execution-free. - Visualization and export as Mermaid, Graphviz DOT, or D2 (
sqry visualize,sqry export). - An interactive shell (
sqry shell) and batch runner (sqry batch) that keep the session cache warm across many queries. - Incremental indexing with
sqry updateandsqry watch. - Workspace-aware indexing through
.sqry-workspaceregistries and VS Code.code-workspacesqry.workspaceblocks. - Daemon-backed shared graph loading through
sqrydfor editor, MCP, and repeated-agent workflows. - One-shot repository orientation with
sqry overview(and the matchinggenerate_overviewMCP tool for agents): a single report of the load-bearing hubs, path/package subsystems, complexity hotspots, potential issues, and ready-to-run follow-up queries. - MCP integration for AI assistants. Standalone
sqry-mcpcurrently exposes 39 tools; daemon-hosted MCP exposes a 17-tool subset. Usetools/list,sqry-mcp --list-tools, orsqry://meta/manifestas the authoritative catalog. - LSP and VS Code extension support for editor workflows.
Use sqry when you need structural answers: