Lightweight MCP server for LSP code intelligence β symbol lookup, refs, types, diagnostics.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
UserService.authenticate even when it is re-exported, overloaded, or buried in a large file β not just wherever the name appears as text.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.
npm install -g typescript-language-server typescript. See Installing language servers for Python, Go, and Rust.cwd to your project's absolute path.UserService is defined and list all references." If it calls the locate and refs tools, you are set.Requirements: Node.js 22+. Language servers on your PATH for the languages you use.
Your agent host spawns Locus automatically β you never run serve by hand during normal use.
Create or edit .cursor/mcp.json in your project (or global Cursor MCP settings):
Add to ~/.codex/config.toml (global) or .codex/config.toml (project):
For a project-scoped config, you can use cwd = "." instead.
Add to Claude Code MCP settings:
More detail (local dev, troubleshooting): docs/usage.md
Paste these into your agent after Locus is configured:
UserService is defined. Use Locus locate, not grep."parseConfig, use Locus to list every file that calls it."response.data have in src/api/handler.ts? Use Locus hover."status β are the language servers ready?"rename previews impact; your agent applies the actual edits.| Tool | What it does |
|---|---|
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 |
rename | Preview a rename (dry-run; apply via your agent) |
| Guide | Description |
|---|---|
| Usage guide | Step-by-step setup, workflows, troubleshooting |
| Getting started | First-time setup β no LSP knowledge required |
| FAQ | Do I need to be a programmer? What's MCP? |
| Who is Locus for? | Fit, scope, and when to pick alternatives |
| Comparison | Locus vs Serena, bridges, and grep |
| Tools reference | All six MCP tools with examples |
| Configuration | locus.toml, locus.json, language servers |
| Website | Lightweight positioning and quick overview |
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/locus-4)<a href="https://allmcps.com/mcp/locus-4"><img src="https://allmcps.com/api/badge/locus-4?style=directory" alt="Locus on AllMCPs" /></a>