Turbovec
FreeNot checkedEnables local semantic code search using compressed vectors from turbovec and any OpenAI-compatible embeddings endpoint.
About
Enables local semantic code search using compressed vectors from turbovec and any OpenAI-compatible embeddings endpoint.
README
Local semantic code search over MCP, backed by turbovec (Google's TurboQuant: ~16x vector compression, fast on Apple Silicon). Bring your own OpenAI-compatible embeddings endpoint - nothing leaves your machine.
code -> chunker -> [your embeddings endpoint] -> turbovec index -> search
- embedder: any OpenAI-compatible
/v1/embeddings(a llama.cpp server, etc). Dimension is auto-detected. - store: turbovec
IdMapIndex, persisted per-repo under.turbovec/. - orchestrator: this MCP server (chunk, embed, index, search).
Install / run
uvx turbovec-mcp # run directly, no install (recommended)
# or
pipx install turbovec-mcp
Requires a running embeddings endpoint. Example with llama.cpp:
llama-server -m nomic-embed-text-v1.5.Q8_0.gguf --embedding --pooling mean --port 8081
Configure (environment)
| var | default | meaning |
|---|---|---|
TURBOVEC_EMBED_ENDPOINT |
http://127.0.0.1:8081/v1 |
OpenAI-compatible base URL |
TURBOVEC_EMBED_MODEL |
nomic-embed-text-v1.5.Q8_0.gguf |
model name sent in the request |
TURBOVEC_EMBED_API_KEY |
sk-local |
bearer token (unused locally, must be non-empty) |
TURBOVEC_DOC_PREFIX |
auto | prefix for documents; auto = search_document: when model name contains "nomic", else "" |
TURBOVEC_QUERY_PREFIX |
auto | prefix for queries; auto = search_query: when model name contains "nomic", else "" |
TURBOVEC_BATCH_SIZE |
64 |
embedding inputs per request |
TURBOVEC_TIMEOUT |
120 |
embedding request timeout (seconds) |
TURBOVEC_MAX_EMBED_CHARS |
1800 |
hard char cap per embedded input |
TURBOVEC_BIT_WIDTH |
4 |
turbovec quantization bits (2 or 4) |
TURBOVEC_CHUNK_LINES |
60 |
lines per chunk |
TURBOVEC_CHUNK_OVERLAP |
12 |
overlap between chunks |
TURBOVEC_MAX_FILE_MB |
2 |
skip files larger than this |
TURBOVEC_EXTRA_EXTENSIONS |
"" | comma list of extra extensions to index |
TURBOVEC_EXTRA_SKIP_DIRS |
"" | comma list of extra dirs to skip |
With the default nomic model the prefixes auto-resolve, so a bare setup needs no env exports at all. Set the env vars (or pass another model) only for a non-nomic embedder.
Setup
With the default nomic embedder this is the whole flow - no config editing, no env exports:
# (a) run the embeddings endpoint
llama-server -m nomic-embed-text-v1.5.Q8_0.gguf --embedding --pooling mean --port 8081
# (b) register + seed file selection (writes .mcp.json AND opencode.jsonc)
turbovec-mcp init .
# (c) build the index
turbovec-mcp index .
# (d) restart your agent so it picks up the new MCP server
init registers the turbovec MCP server into both project-local configs
automatically:
<repo>/.mcp.json(Claude Code) - merged in, other servers preserved.<repo>/opencode.jsonc- created if absent, surgically merged if it's plain JSON. Only an existing opencode.jsonc that contains comments is left untouched; in that one caseinitprints a snippet to paste under its"mcp"key. Your global~/.config/opencodeconfig is never touched.
The registered command is the absolute path to the installed turbovec-mcp
(reliable today); once published to PyPI you can use uvx turbovec-mcp instead.
Pass --no-register to seed config.json only and skip writing both config
files.
Chunking
AST-aware via tree-sitter. Each function / class / method that fits the embedder becomes one chunk on clean boundaries; a god-class too large to embed whole is split into its methods; any lines not covered by a definition (imports, top-level code, a giant leaf function) are line-windowed, so coverage is total. Unsupported languages / parse failures fall back to plain line-window chunking - nothing is skipped.
Supported out of the box: Python, JS/TS/TSX, Go, Rust, Java, Kotlin, Scala,
Swift, C/C++, C#, Ruby, PHP, Lua, Perl, R, Julia, Bash, Fortran (f90/f95).
Add more file extensions with TURBOVEC_EXTRA_EXTENSIONS.
Tools
Workflow is two steps: tv_search for terse triage, then tv_fetch to read
the locations you picked.
tv_search(query, k=10, path=".")- semantic search. Terse: each hit isscore+ location (path:start-end) + the chunk's signature line. No source bodies.tv_fetch(locations, path=".")- full source for a list of"path:start-end"locations (the onestv_searchreturned).tv_index(path=".")- (re)build the index for a repo. Run once before searching, and after large changes.tv_status(path=".")- whether a repo is indexed + basic stats.
The index lives in <repo>/.turbovec/ - add it to .gitignore.
File selection
<repo>/.turbovec/config.json is the source of truth for which files get
indexed: its include / exclude glob lists decide everything. Seed it with:
turbovec-mcp init [path] # seed config + register both agents (-f to rewrite)
init does two things:
- Seeds
<repo>/.turbovec/config.json, fillingexcludefrom the default skip dirs plus any nested.gitignores in the tree. - Registers the turbovec MCP server into project-local
<repo>/.mcp.json(Claude Code) and<repo>/opencode.jsonc(opencode). Both preserve any other servers and are idempotent; pass-fto rewrite the entry. The registeredcommandis the absolute path to the installedturbovec-mcp. opencode.jsonc is created if absent and surgically merged if it's plain JSON; an existing comment-bearing opencode.jsonc is left alone and a paste-snippet is printed instead. The global~/.config/opencodeconfig is never touched.
Pass --no-register to seed config.json only and skip writing both config
files.
Edit the globs, then run turbovec-mcp index.
CLI
For testing from the terminal:
turbovec-mcp init [path] # seed config + register .mcp.json + opencode.jsonc; --no-register to skip
turbovec-mcp index <path> # build/rebuild the index
turbovec-mcp status <path>
turbovec-mcp search <path> <query> [-k N] # terse: score path:lines signature
turbovec-mcp fetch <path> <location>... # full source for path:start-end
License
BSD-3-Clause
Installing Turbovec
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/potatofacee/turbovec-mcpFAQ
Is Turbovec MCP free?
Yes, Turbovec MCP is free — one-click install via Unyly at no cost.
Does Turbovec need an API key?
No, Turbovec runs without API keys or environment variables.
Is Turbovec hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Turbovec in Claude Desktop, Claude Code or Cursor?
Open Turbovec on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Turbovec with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
