sqry
sqry v4.5.1

Search code by
what it means.

AST-native semantic code search. 35 languages. 33 MCP tools. 100% local. Zero telemetry.

cargo install sqry-cli
Read the docs →

35 languages · 33 MCP tools · 11.8k tests · 100% local

The limits of text search

Text search misses structure

ripgrep finds every line containing authenticate — but can't tell you who calls it, what it returns, or whether it's used at all.

Embeddings are slow and imprecise

Semantic search via embeddings takes 1,400ms+ and returns false positives. ~60% precision means you still read code that doesn't match.

Cloud tools send your code offsite

Sourcegraph, GitHub Copilot, and similar tools require uploading your codebase. Not an option for private or regulated code.

STRUCTURAL QUERIES

Exact answers.
Not guesses.

sqry parses your code like a compiler — building a graph of every symbol, call, import, and type relationship. Queries return exact structural results in milliseconds.

$ sqry query "callers:authenticate"
  src/auth/middleware.rs:42   validate_token
  src/api/routes.rs:118       check_session
  src/tests/auth_test.rs:67  test_login_flow
$ sqry query "impl:Serialize"
  src/models/user.rs:12      User
  src/models/session.rs:8    Session
  src/api/response.rs:23    ApiResponse
$ sqry query "kind:function AND async:true AND lang:rust"
  42 results in 12ms

MCP INTEGRATION

AI assistants that query,
not guess.

Connect Claude, Codex, or Gemini to sqry via MCP. Your AI assistant gets exact structural answers instead of probabilistic guesses.

$ sqry mcp setup
semantic_search Search symbols by name, kind, language, and path
direct_callers Exact list of every caller of a function
call_hierarchy Full inbound and outbound call tree
find_unused Dead code detection across the codebase
semantic_diff Structural changes between git commits

Works in your editor.

sqry ships an LSP server with standard protocol support plus 27 custom methods.

VSCode
Neovim
Helix
sqry lsp --stdio
Editor setup guide →

35 languages supported

TIER 1 — Full relation tracking (28 languages)

C C++ Rust Shell Zig JavaScript TypeScript Dart Kotlin Swift Scala C# Go Java Python Ruby PHP Lua R Groovy Elixir SQL Svelte Vue HTML CSS Haskell Perl

TIER 2 — Symbols + imports (7 languages)

Terraform Puppet Pulumi Apex ABAP PL/SQL ServiceNow

Built for speed

12ms
graph queries
vs 1,400ms with embeddings
760K LOC/s
indexing speed
for JavaScript codebases
113×
cache speedup
from 452ms to 4ms with warm cache

sqry is open source.

Support subscriptions fund continued development, priority bug fixes, and enterprise support.

Get Support Star on GitHub ↗