# Srclight

Srclight is a local code-indexing MCP server that provides code search, call graphs and Git-derived context for AI agents.

Canonical URL: https://a2a-mcp.org/entry/srclight

Language: en

Category: MCP Servers

Updated: 2026-09-14

## About

Srclight is a local code-indexing MCP server that provides code search, call graphs and Git-derived context for AI agents.

## Key Features

- Combine text and semantic code lookup with structural relationships.
- Inspect Git blame, hotspots and multi-repository workspace context.

## Use Cases

Provide repository context for code review, impact analysis or implementation planning.

## Limitations

Its indexed context assists code navigation; actual code and repository history remain the authoritative sources.

## Sources

- Project documentation: https://github.com/srclight/srclight

## MCP Setup

### Prerequisites

- Python 3.11+ and Git.
- Optional Ollama for local embeddings.

### Client setup

#### Claude Code

Transport: `stdio`

```bash
claude mcp add srclight -- srclight serve
```

- Install: pip install srclight
- Run srclight index inside the intended project.
#### Claude Code

Transport: `sse`

```bash
claude mcp add --transport sse srclight http://127.0.0.1:8742/sse
```

- For a persistent workspace server, run srclight serve --workspace myworkspace and leave it running.

Alternative SSE configuration for workspaces.

Setup docs: https://github.com/srclight/srclight

## Tags

- MCP
- code-intelligence
- local-search

## Alternatives

- Repomix MCP
- Code Review Graph

## Sources

- [Project website](https://github.com/srclight/srclight)
- [Project documentation](https://github.com/srclight/srclight)

Last checked: 2026-09-14
