1. Conduid
  2. Data
  3. srclight/srclight
MCP server · Data

srclight/srclight

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.

74Good

Scored 4 hours ago · breakdown

About srclight/srclight

srclight/srclight is an MCP server published by srclight in the Data category: 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. Conduid read 43 tools from its source: blame_symbol, changes_to, check_freshness, codebase_map, conversation_summary, detect_changes and 37 more. It is published to PyPI as srclight and runs with uvx.

The repository has 61 stars and 13 forks, is licensed MIT, and its last commit was on 10 Nov 2026. The latest release is v0.25.3 (15 Sep 2026): Build script: the engine build script no longer has a built-in macOS build host. It follows v0.25.2 (15 Sep 2026), and the 5 most recent releases go back to v0.24.0 (3 Sep 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include embeddings, devtools, code-search, fts5, code-indexing and code-intelligence.

Install

uvx
uvx srclight
pip
pip install srclight
From source
git clone https://github.com/srclight/srclight

Tools (43)

blame_symbolGet git blame info for a symbol — who changed it, when, and why.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringName of the symbol to blame
changes_toGet the change history for a specific symbol's file.
ParameterTypeDescription
nintegerNumber of commits to return
projectstringProject name (required in workspace mode)
symbol_name *stringSymbol name to track
check_freshnessIs the index current for these files (or the whole index)?
ParameterTypeDescription
pathsarrayRepo-relative paths to check. Omit to check every indexed file (cheap: unchanged files cost one stat each).
projectstringProject name (required in workspace mode).
codebase_mapGet a complete overview of the indexed codebase.
ParameterTypeDescription
projectstringOptional project filter (workspace mode only)
conversation_summaryRecord a conversation session summary.
ParameterTypeDescription
cost_usdnumberEstimated cost in USD
modelstringModel used (e.g. 'claude-opus-4-6')
projectstringPrimary project worked on (if any)
session_id *stringUnique session identifier
task_summary *stringBrief description of what was done
tokens_inintegerInput tokens consumed
tokens_outintegerOutput tokens generated
detect_changesDetect which symbols were changed and compute their aggregate blast radius.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
refstringGit ref to diff against (default: uncommitted changes vs HEAD). Use "HEAD~1" for last commit's impact, or a branch name.
embedding_healthCheck if the configured embedding provider is reachable.
ParameterTypeDescription
projectstring
embedding_statusCheck embedding coverage and model info.
ParameterTypeDescription
projectstringProject name (workspace mode) or uses current repo
find_dead_codeFind symbols that have no callers or references — potential dead code.
ParameterTypeDescription
kindstringFilter by symbol kind (e.g., 'function', 'class', 'method')
projectstringProject name (required in workspace mode)
find_importsFind and resolve import statements in a source file.
ParameterTypeDescription
path *stringRelative file path (e.g., 'src/srclight/server.py')
projectstringProject name (required in workspace mode if ambiguous)
find_patternSearch for structural code patterns in symbol bodies.
ParameterTypeDescription
kindstringFilter by symbol kind (e.g., 'function', 'method')
languagestringFilter by language (e.g., 'python', 'javascript')
limitintegerMaximum results (default 50)
offsetintegerSkip this many matching symbols before collecting (default 0). With `truncated`, this pages through a result set larger than `limit`.
pattern *stringRegex pattern to search for in symbol source code
projectstringOptional project filter (workspace mode: filters to one project)
get_build_targetsGet all build targets (libraries, executables) from the build system.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
get_calleesFind all symbols that a given symbol calls or references.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringName of the symbol to find callees for
get_callersFind all symbols that call or reference a given symbol.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringName of the symbol to find callers for
get_communitiesGet detected functional communities (module clusters) in the call graph.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
get_communityGet the community that a specific symbol belongs to, with all co-members.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringName of the symbol to look up
get_dependentsFind all symbols that depend on (call/reference) a given symbol.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringName of the symbol to find dependents for
transitivebooleanIf True, follow the dependency chain recursively
get_execution_flowsGet traced execution flows through the call graph.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
get_impactCompute blast radius and risk for modifying a symbol.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringName of the symbol to analyze
get_implementorsFind all classes that implement or inherit from an interface/base class.
ParameterTypeDescription
interface_name *stringName of the interface or base class
projectstringProject name (required in workspace mode)
get_platform_variantsFind platform-specific variants of a symbol.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringSymbol name to search for
get_signatureGet just the signature of a symbol (lightweight, for planning).
ParameterTypeDescription
name *stringSymbol name
get_symbolGet full details of a symbol by name.
ParameterTypeDescription
name *stringSymbol name (e.g., 'Dictionary', 'lookup', 'main')
projectstringOptional project filter (workspace mode only)
get_tests_forFind test functions that cover a given symbol.
ParameterTypeDescription
projectstringProject name (required in workspace mode)
symbol_name *stringName of the symbol to find tests for
get_type_hierarchyGet the inheritance hierarchy for a class or struct.
ParameterTypeDescription
name *stringClass or struct name (e.g., 'ICaptureService', 'TtsProvider')
projectstringProject name (required in workspace mode)
git_hotspotsFind most frequently changed files (churn hotspots / bug magnets).
ParameterTypeDescription
nintegerNumber of files to return (default 20)
projectstringProject name (required in workspace mode)
sincestringTime period (e.g., '30.days', '3.months', '1.year')
hybrid_searchSearch using both keyword matching AND semantic similarity.
ParameterTypeDescription
kindstringOptional filter by symbol kind
limitintegerMax results (default 20)
projectstringProject name (workspace mode) or uses current repo
query *stringSearch query (works with both keywords and natural language)
index_statusCheck the current state of the code index.
learning_statsGet learning statistics — counts by kind over time.
ParameterTypeDescription
daysintegerLook back N days (omit for all time)
projectstringFilter to a specific project (omit for all)
list_projectsList all projects in the workspace with stats.
platform_conditionalsList all platform-conditional code blocks in the project.
ParameterTypeDescription
platformstringOptional filter (e.g., 'windows', 'linux', 'apple', 'android')
projectstringProject name (required in workspace mode)
recent_changesGet recent git commits with files changed.
ParameterTypeDescription
authorstringFilter by author name (substring match)
nintegerNumber of commits to return (default 20)
path_filterstringFilter by file path prefix (e.g., 'src/libdict/')
projectstringProject name (workspace mode) or uses current repo
record_learningRecord a learning — a decision, correction, discovery, pattern, blocker, or convention.
ParameterTypeDescription
confidencenumber0.0-1.0 confidence level (default 1.0)
content *stringThe learning itself (what was decided/discovered/corrected)
kind *stringOne of 'decision', 'correction', 'discovery', 'pattern', 'blocker', 'convention'
projectstringProject this applies to (omit for cross-project learnings)
reasoningstringWhy this learning matters or the context behind it
scopestring'workspace', 'project', 'file', or 'symbol'
source_refstringReference identifier (session ID, file path, etc.)
source_typestring'conversation', 'labbook', 'decisions_md', 'claude_md', 'agent_log'
symbolsarraySymbol names this learning relates to
ttl_daysintegerAuto-expire after N days (omit for permanent)
reindexTrigger re-indexing of the codebase or a specific path.
ParameterTypeDescription
embedbooleanAlso refresh embeddings, using the model this index already holds (or SRCLIGHT_EMBED_MODEL for an index that holds none yet). Pass False for a keyword-only refresh when you only need search_symbols current: embedding a large backlog calls the embedding model and can take minutes. Not free, though — a reindex drops the embeddings of every symbol it replaces, and with embed=False nothing puts them back, so semantic_search and hybrid_search lose coverage on exactly the files being edited. Does nothing when no model is configured or recorded.
pathstringOptional specific directory to re-index (default: entire repo)
relevant_learningsFind relevant learnings using hybrid search (keyword + semantic).
ParameterTypeDescription
kindstringFilter by kind: 'decision', 'correction', 'discovery', 'pattern', 'blocker', 'convention'
limitintegerMax results (default 10)
projectstringFilter to a specific project (omit for all)
query *stringWhat you're looking for (natural language or keywords)
restart_serverRequest the server to exit so a process manager can restart it (SSE only).
search_symbolsSearch for code symbols (functions, classes, methods, structs, etc.).
ParameterTypeDescription
kindstringOptional filter: 'function', 'class', 'method', 'struct', 'enum', etc.
limitintegerMax results to return (default 20)
projectstringOptional project filter (workspace mode only, e.g. 'my-app')
query *stringSearch query — a symbol name or code fragment (keyword/FTS, not semantic)
semantic_searchFind semantically similar code using embeddings.
ParameterTypeDescription
kindstringOptional filter by symbol kind (function, class, method, etc.)
limitintegerMax results (default 10)
projectstringProject name (workspace mode) or uses current repo
query *stringNatural language description of what you're looking for
server_statsReturn when this server process started and how long it has been running.
setup_guideStructured setup instructions for AI agents and users.
show_statusShow the srclight dashboard window and return current status.
ParameterTypeDescription
messagestringOptional message to display in the dashboard.
symbols_in_fileList all symbols defined in a specific file.
ParameterTypeDescription
path *stringRelative file path (e.g., 'src/libdict/dictionary.cpp')
projectstringProject name (required in workspace mode if ambiguous)
whats_changedShow uncommitted changes (work in progress).
ParameterTypeDescription
projectstringProject name (workspace mode) or uses current repo

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 4.9K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
  • ✓No dynamic code executionScanned 30 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdio, Streamable HTTP and HTTP with SSEsrc/srclight/cli.py:461, src/srclight/server.py:3485, src/srclight/cli.py:461
Starts other programs
5 callssrc/srclight/cli.py:991, src/srclight/git.py:21, src/srclight/indexer.py:264
Outbound network calls
8 callssrc/srclight/embeddings.py:142, src/srclight/embeddings.py:167, src/srclight/embeddings.py:187
Writes or deletes files
16 callssrc/srclight/cli.py:1066, src/srclight/cli.py:1082, src/srclight/cli.py:1084
Lockfile
None in the repository

Pattern matches on the source text of 30 files: places to read, not proof of what the code does at run time.

Releases

v0.25.3v0.25.3 — build host is configurable; repository cleanup · 15 Sep 2026Changes Build script: the engine build script no longer has a built-in macOS build host. Pass `--mac-host user@host` or set `SRCLIGHT_MAC_HOST`, or use `--skip-macos`. Without one it stops with a clear message. Repository cleanup:…
v0.25.2v0.25.2 — .srclight/ stays ignored in repos that ignore *.db · 15 Sep 2026Fix `.srclight/` stays ignored in repos with broad ignore patterns. Since 0.25.1, `srclight index` and `srclight hook install` keep `.srclight/` out of git through `.git/info/exclude`, skipping that step when git already ignores the…
v0.25.1v0.25.1 — git hooks fail loudly and never edit tracked files · 15 Sep 2026Fixes found by a post-release review of 0.25.0. Every item was reproduced before it was fixed. Fixes Problems now reach you. `srclight hook status` and `srclight hook install` exit 1 when a repo needs attention. The server's `/healthz`…
v0.25.0v0.25.0 — Lua, srclight tool CLI, and self-repairing git hooks · 15 Sep 2026New `srclight tool` runs any MCP tool from the shell, with schema-driven argument coercion (#28, #29). Lua indexing (#26). Sticky embedding model: an index remembers its embedding model, so flag-less runs (git hooks, cron) keep embeddings…
v0.24.0v0.24.0 — search ranks by match quality; read paths stop writing · 3 Sep 2026Search ranks by match quality, and the read paths stop writing. v0.23.0 repaired the FTS5 legs and exposed a scoring bug they had been hiding: four retrieval tiers fed one sort on incompatible scales -- a hardcoded -15.0 from the LIKE tier…

README

The repository's README runs to about 4.9K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About srclight/srclight

How do I install srclight/srclight?

Run uvx srclight, then add the server to your MCP client's configuration.

Is srclight/srclight safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Conduid's scan of 30 source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE, starts other programs (5 calls), makes outbound network calls (8 calls) and writes or deletes files (16 calls). It has no ConduID identity yet, so agent calls to it are not receipted.

Is srclight/srclight still maintained?

Yes — the latest release is v0.25.3 (15 Sep 2026), and the last commit was 21 days ago. The repository has 61 stars.

What tools does srclight/srclight provide?

Conduid read 43 tools from the source: blame_symbol, changes_to, check_freshness, codebase_map, conversation_summary, detect_changes, embedding_health, embedding_status and 35 more. 38 of them publish their parameters, listed under Tools above.

What license is srclight/srclight released under?

The repository declares the MIT license. That applies to the latest release, v0.25.3, as well.