<!-- mcp-name: io.github.srclight/srclight -->
# Srclight
[](https://pypi.org/project/srclight/)
[](https://github.com/srclight/srclight/blob/master/LICENSE)
[](https://pypi.org/project/srclight/)
**Deep code indexing for AI agents.** SQLite FTS5 + tree-sitter + embeddings + MCP.
Srclight builds a rich, searchable index of your codebase that AI coding agents can query instantly β replacing dozens of grep/glob calls with precise, structured lookups. It is the most comprehensive code intelligence MCP server available: 42 tools covering symbol search, relationship graphs, community detection, impact analysis, git change intelligence, semantic search, build system awareness, and document extraction β capabilities no other single MCP server combines. Fully local and private: your code never leaves your machine.
## Why?
AI coding agents (Claude Code, Cursor, etc.) spend **40-60% of their tokens on orientation** β searching for files, reading code to understand structure, hunting for callers and callees. Srclight eliminates this waste.
| Without Srclight | With Srclight |
|---|---|
| 8-12 grep rounds to find callers | `get_callers("lookup")` β one call |
| Read 5 files to understand module | `codebase_map()` β instant overview |
| "Find code that does X" β 20 greps | `semantic_search("dictionary lookup")` β
*(truncated)*
π Trend Scout: srclight/srclight
π What problem it solves
Deep code indexing MCP server for AI agents. 25 tools: hybrid FTS5 + embedding search, call graphs, git blame/hotspots, build system analysis. Multi-repo workspaces, GPU-accelerated semantic search, 10 languages via tree-sitter. Fully local, zero cloud dependencies.
π Timeline
β Strengths
π‘ What this repo can learn
claude-adapter.py's JSONL parsing β e.g., handling new session event types or extracting richer metadata from Claude Code tool-use blocksquery-session.py/briefing.pyβ e.g., a query for 'docker networking' would also surface entries tagged 'container' or 'network_mode' even without exact term overlapmemory-tool add/search/dream) could streamline the UX ofquery-session.pyandlearn.py, making them easier to invoke from hooks or scriptsknowledge.dbworkflows never require external API calls even when semantic search is enabledhooks/enforcement chain (e.g., auto-briefing, commit guards, learn reminders)README excerpt
Scouted on 2026-05-02 Β· View on GitHub