
Locus
io.github.paladiniPublished by GitHub account paladiniv0.1.5Updated Oct 24, 2026
Lightweight MCP server for LSP code intelligence — symbol lookup, refs, types, diagnostics.
Overview
Locus gives an AI coding agent LSP-based code intelligence: symbol lookup, references, type info, and diagnostics.
- What you can do
- Locus connects an AI coding agent to the same language-server intelligence an IDE uses. It exposes six small tools: locate (find a symbol by name or list symbols in a file), refs (all references or implementations at a position), hover (type information and documentation), diagnostics (file or workspace errors and warnings), status (language-server readiness and missing binaries), and rename (a dry-run preview of a rename). It reads code structure and diagnostics only; the agent's own edit tools still apply changes.
- When to use it
- Use it when your agent already edits files well and you want semantic navigation on top: finding the real definition behind re-exports or overloads, listing callers before a refactor, checking types without guessing, and surfacing compiler or linter errors right after an edit. It is intentionally small and is not a symbolic editor, memory store, or full refactoring toolkit.
- Requirements
- Node.js 22+ and a local install via npx (@paladini/locus-mcp). Language servers must be on your PATH for the languages you use, for example typescript-language-server and typescript for TypeScript/JavaScript. One-time init and check commands run in the project folder, and the MCP config needs the project's absolute path as cwd. Desktop only.
Installation
In SourceWeft
- Open Locus in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Locus
[npm version] [License: MIT] [Node.js] [CI] [Website]
Locus gives your AI coding agent a map of your codebase. Whether you write code yourself or work through Cursor, Codex, or Claude Code, Locus connects your agent to the same go-to-definition and find-references intelligence your IDE uses — through MCP (Model Context Protocol), a standard plug-in layer for AI tools. Configure it once; your agent uses six small tools to find symbols, trace callers, read types, and catch errors before you run tests.
Why you might want this
- Find the real definition — Your agent can locate
UserService.authenticateeven when it is re-exported, overloaded, or buried in a large file — not just wherever the name appears as text. - See who calls what — Before a refactor, list every reference to a function or class so nothing breaks silently.
- Read types and docs — Ask what a variable or parameter actually is, without guessing from variable names.
- Catch errors early — Surface compiler and linter problems right after an edit, instead of waiting for a full test run.
Who this is for
Locus is for AI-first builders: developers, indie hackers, and PMs who work through an agent and want it to understand code structure, not just search strings.
It fits when your agent already edits files well (Cursor's Edit tool, Claude Code, Codex) and you want to add semantic navigation on top — without turning your setup into a second IDE inside MCP.
It is not for people who want symbolic editing, agent memory, or a full refactoring toolkit inside MCP. For that, look at Serena — a broader option that does more inside the protocol. Locus stays intentionally small: six tools, npx install, complements your host.
Get started in 5 minutes
- Install a language server (if you do not have one yet) — for TypeScript/JavaScript:
npm install -g typescript-language-server typescript. See Installing language servers for Python, Go, and Rust. - Run one-time setup in your project folder:
- Add Locus to your agent's MCP config — MCP is how AI hosts call helper tools like Locus; copy a block from Copy-paste configs below and set
cwdto your project's absolute path. - Reload MCP — restart Cursor, reload Codex, or reopen Claude Code so the new server appears.
- Try a prompt — ask your agent: "Use Locus to find where
UserServiceis defined and list all references." If it calls thelocateandrefstools, you are set.
Requirements: Node.js 22+. Language servers on your PATH for the languages you use.
Copy-paste configs
Your agent host spawns Locus automatically — you never run serve by hand during normal use.
Cursor
Create or edit .cursor/mcp.json in your project (or global Cursor MCP settings):
Codex
Add to ~/.codex/config.toml (global) or .codex/config.toml (project):
For a project-scoped config, you can use cwd = "." instead.
Claude Code
Add to Claude Code MCP settings:
More detail (local dev, troubleshooting): docs/usage.md
Example prompts to try
Paste these into your agent after Locus is configured:
- "Find where
UserServiceis defined. Use Locuslocate, not grep." - "Before we rename
parseConfig, use Locus to list every file that calls it." - "What type does
response.datahave insrc/api/handler.ts? Use Locushover." - "After your edits, run Locus diagnostics on the files you changed and fix any errors."
- "Check Locus
status— are the language servers ready?"
What Locus does NOT do
- Edit your code — Your agent's Edit/Write tools still apply changes. Locus only reads structure and diagnostics.
- Replace grep — Grep is still best for log lines, config keys, comments, and plain text search.
- Remember things between sessions — No agent memory store; each session starts fresh.
- Run refactors for you —
renamepreviews impact; your agent applies the actual edits. - Expose every LSP feature — Six focused tools only, not a full IDE protocol passthrough.
- Compete with large toolkits — If you need symbolic body replacement, memory, and 40+ languages in one MCP stack, consider Serena instead.
Tools at a glance
Learn more
License
Source: README.md at commit d515807
Tools
0Version history
1- v0.1.5LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts