# Srclight MCP server

> Indexes local codebases so AI agents can search symbols, call graphs, git history and docs with structured lookups instead of grep.

- Repository: https://github.com/srclight/srclight
- Page: https://hostedmcp.org/servers/srclight/srclight
- Transport: —
- Stars: 59
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SRCLIGHT_EMBED_MODEL` | no | no |  |
| `VOYAGE_API_KEY` | no | no |  |

## FAQ

### Does Srclight send my code to the cloud?

No. It runs fully offline using a local SQLite index and optional local Ollama embeddings, so code never leaves your machine.

### Which languages does Srclight index?

It parses 19 languages via tree-sitter, including Python, C, C++, Java, Go, Rust, JavaScript, TypeScript, PHP, SQL and Markdown.

### Can I use Srclight with Claude Code or Cursor?

Yes, it runs as an MCP server via `srclight serve` and works with any MCP client.

### How do I enable semantic search in Srclight?

Run Ollama with an embedding model and index with the `--embed` flag once; later runs reuse the recorded model.

### Does Srclight tell me which files it did not index?

Yes, `index_status` reports `unindexed_extensions` with file counts plus oversize and failed files.
