Skip to main content
ClaudeWave

Locus — the exact code chunk for the job. Fast local hybrid code search for agents.

MCP ServersOfficial Registry12 stars5 forksTypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 9/23/2026
Install in Claude Code / Claude Desktop
Method: NPX · @sylphx/locus
Claude Code CLI
claude mcp add locus -- npx -y @sylphx/locus
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "locus": {
      "command": "npx",
      "args": ["-y", "@sylphx/locus"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

MCP Servers overview

# Locus

### The exact code chunk for the job

Locus gives coding agents fast, local code search that returns complete,
implementation-ready chunks instead of grep dumps or whole-file guesses.

```bash
npx -y @sylphx/locus --root=/absolute/path/to/project
```

For Claude Code:

```bash
claude mcp add locus -- npx -y @sylphx/locus --root=/absolute/path/to/project
```

## The fastest useful workflow

Ask a natural-language question:

```json
{
  "query": "where is user authentication enforced?",
  "limit": 5
}
```

Locus returns ranked AST chunks with file paths, line ranges, symbol names,
score explanations, freshness, and explicit gaps.

## Jobs Locus is built for

| Ask your agent | Locus returns |
| --- | --- |
| “Where is this behavior implemented?” | `codebase_search` |
| “What code is related to this function?” | `find_related` |
| “Search across these repositories.” | cross-repo search |
| “Find the implementation, not tests or declarations.” | ranked code chunks |
| “Give me enough context to edit safely.” | compact, deduplicated results |

## Tool surface

| Tool | Purpose |
| --- | --- |
| `codebase_search` | Hybrid local search over code chunks |
| `find_related` | Find related chunks from a known file and line |

The public surface stays small. Indexing is cached locally and refreshed when
the repository changes. Optional embeddings are opt-in and never required for
the default path.

## Predictable defaults

Locus does not hide expensive work behind “auto”.

- `fast` is the default local TF-IDF and AST path.
- `quality` enables optional vectors and reranking when configured.
- `research` is not a Locus mode; use a separate web tool for external sources.
- No Docker, vector database, or API key is required.
- Generated files, dependencies, and build output are excluded by default.

## Why agents use it

- AST boundaries return functions, classes, and methods.
- Hybrid ranking combines lexical and semantic evidence when available.
- Results include score components instead of opaque ordering.
- Token budgets and dedup keep context small.
- Local indexes keep code on the machine.

## Companion MCP tools

| Product | Job |
| --- | --- |
| [Citra](https://github.com/SylphxAI/citra) | PDF answers with page-level proof |
| [Iris](https://github.com/SylphxAI/iris) | Image facts and pixel evidence |
| [Cue](https://github.com/SylphxAI/cue) | Video timelines and timestamp evidence |
| [Spine](https://github.com/SylphxAI/spine) | Repository architecture and impact |
| [Lookout](https://github.com/SylphxAI/lookout) | Web research with source excerpts |

Locus finds the code chunk; Spine maps the repository architecture. Each product
is independent, so install only the tools your agent needs.

## Development

```bash
bun install
bun run build
bun test
cargo test
bun run benchmark:public-proof
bun run benchmark:release-gate
```

## License

MIT
ai-agentsastcode-analysiscode-searchdeveloper-toolslocal-firstmcpmodel-context-protocolragrustsemantic-search

What people ask about locus

What is SylphxAI/locus?

+

SylphxAI/locus is mcp servers for the Claude AI ecosystem. Locus — the exact code chunk for the job. Fast local hybrid code search for agents. It has 12 GitHub stars and its last recorded update is dated 2026-09-23.

How do I install locus?

+

You can install locus by cloning the repository (https://github.com/SylphxAI/locus) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is SylphxAI/locus safe to use?

+

Our security agent has analyzed SylphxAI/locus and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains SylphxAI/locus?

+

SylphxAI/locus is maintained by SylphxAI. The last recorded GitHub activity is dated 2026-09-23, with 0 open issues.

Are there alternatives to locus?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy locus to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: SylphxAI/locus
[![Featured on ClaudeWave](https://claudewave.com/api/badge/sylphxai-locus)](https://claudewave.com/repo/sylphxai-locus)
<a href="https://claudewave.com/repo/sylphxai-locus"><img src="https://claudewave.com/api/badge/sylphxai-locus" alt="Featured on ClaudeWave: SylphxAI/locus" width="320" height="64" /></a>

More MCP Servers

locus alternatives