Skip to main content
Glama

turbovec-mcp

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

Related MCP server: Claude Context Local

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

""

prefix for documents (nomic: search_document: )

TURBOVEC_QUERY_PREFIX

""

prefix for queries (nomic: search_query: )

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

Register with an MCP client

opencode (opencode.jsonc):

"mcp": {
  "turbovec": {
    "type": "local",
    "command": ["uvx", "turbovec-mcp"],
    "environment": {
      "TURBOVEC_EMBED_ENDPOINT": "http://127.0.0.1:8081/v1",
      "TURBOVEC_EMBED_MODEL": "nomic-embed-text-v1.5.Q8_0.gguf",
      "TURBOVEC_QUERY_PREFIX": "search_query: ",
      "TURBOVEC_DOC_PREFIX": "search_document: "
    },
    "enabled": true
  }
}

Claude Code:

claude mcp add turbovec -- uvx turbovec-mcp

Tools

  • tv_index(path=".") - (re)build the index for a repo. Run once before searching, and after large changes.

  • tv_search(query, k=10, path=".", compact=False) - semantic search; returns path, line range, score, and (unless compact) the chunk text.

  • tv_status(path=".") - whether a repo is indexed + basic stats.

The index lives in <repo>/.turbovec/ - add it to .gitignore.

License

BSD-3-Clause

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/potatofacee/turbovec-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server