Nexus-MCP
Local hybrid code search and code graph so coding agents read less to find the right file
- Pricing
- Open source
- Platforms
- CLI, self-hosted, macOS
- Runs
- Locally
- Version
- 2.4.6
- Listing updated
- 2 days ago
About Nexus-MCP
Nexus-MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Nexus-MCP runs on your machine and answers a plain-language question about a codebase with the relevant code, instead of leaving the agent to chain grep and file reads. It combines hybrid search with a code graph, needs no API keys and is MIT licensed. The first run downloads an embedding model, and NEXUS_OFFLINE=1 blocks further downloads.
The project publishes its measurements. On ten open-source repos in ten languages it reports a median of 95% fewer tokens to reach the right file and 9 times faster search than Grep and Read, with the right file first in 67 to 93% of cases against 20 to 50%. In live Claude Code runs on 11 repos, cost per task was lower on 8, with 64 of 66 tasks correct against 61. Several repos show little or no gain, and the site keeps those results visible.
Setup is uvx --python 3.12 nexus-mcp-ci setup, which finds MCP clients, shows each change and asks before writing. An offline eval command lets you measure it on your own code first.
Install
Run in a terminal
claude mcp add nexus-mcp -- uvx nexus-mcp-ciAdd to claude_desktop_config.json
{
"mcpServers": {
"nexus-mcp": {
"command": "uvx",
"args": [
"nexus-mcp-ci"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"nexus-mcp": {
"command": "uvx",
"args": [
"nexus-mcp-ci"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"nexus-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"nexus-mcp-ci"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"nexus-mcp": {
"command": "uvx",
"args": [
"nexus-mcp-ci"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"nexus-mcp": {
"command": "uvx",
"args": [
"nexus-mcp-ci"
]
}
}
}Configuration
NEXUS_STORAGE_DIRFolder for the index, memories and graph (default: .nexus in the project)NEXUS_OFFLINESet to 1 to block the embedding model download after the first run
What it does
- Hybrid code search
- Finds code from a plain-language question rather than a grep tour.
- Code graph
- Adds structural relationships between code elements.
- Published benchmarks
- Per-repo results for tokens, time and cost, including losses.
- Local and keyless
- Runs on your machine with no API keys; MIT licensed.
- Guided setup
- `setup` detects clients and asks before writing config.
- Offline eval
- Measure it on your own repo with no LLM.
Good for
- Cut token use when an agent explores a large repo
- Locate the right file in an unfamiliar codebase
- Benchmark retrieval quality on your own code
- Give Claude Code, Codex or Cursor shared code search
Pricing
Open source
MIT licence, free
Prices change. Check jaggernaut007.github.io before you buy.
Nexus-MCP FAQ
Does it need API keys?
No. It runs locally; the embedding model downloads on first run.
How do I install it?
Run `uvx --python 3.12 nexus-mcp-ci setup` (requires uv).
Where is the index stored?
In `.nexus` inside the project by default, changeable with `NEXUS_STORAGE_DIR`.
Does it always save money?
No. Live runs were cheaper on 8 of 11 repos, with a few roughly flat.
Is Nexus-MCP free?
Yes. Nexus-MCP is open source, so you can use and self-host it for free.
How do I add Nexus-MCP to Claude Code?
Run this command in your terminal: claude mcp add nexus-mcp -- uvx nexus-mcp-ci
What are the best alternatives to Nexus-MCP?
The closest alternatives to Nexus-MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Nexus-MCP

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools