Zvec MCP Bridge

Zvec MCP Bridge

Indexes project source files into a local Zvec vector database and provides semantic search through MCP tools, enabling natural-language queries over code.

Category
Visit Server

README

Zvec MCP Bridge

This repository contains a local MCP bridge that indexes project source files into a Zvec vector database and exposes semantic search through MCP tools.

What the bridge does

The current implementation is a stdio-based MCP server that:

  • creates or opens a local Zvec collection at .zvec/knowledge.db inside the project root;
  • embeds text chunks with the Hugging Face Transformers feature-extraction pipeline using Xenova/all-MiniLM-L6-v2;
  • walks the project tree once at startup to build the initial index;
  • watches for file add/change/delete events and updates the index automatically;
  • exposes four MCP tools for search, re-indexing, single-file indexing, and status checks.

Requirements

  • Node.js 18 or newer
  • npm dependencies from the project package file
  • a local model download on first use (the bridge uses the Hugging Face Transformers pipeline)

Installation

From the repository root:

npm install

Running the bridge

Run the bridge directly:

PROJECT_ROOT=/absolute/path/to/your/project node zvec-mcp-bridge.js

If PROJECT_ROOT is not provided, the bridge uses the current working directory.

MCP configuration example

This bridge is not tied to Google Antigravity specifically; it works with any MCP-compatible client that can launch a stdio process.

{
  "mcpServers": {
    "zvec-project-knowledge": {
      "command": "node",
      "args": ["/absolute/path/to/zvec-mcp-bridge.js"],
      "env": {
        "PROJECT_ROOT": "/absolute/path/to/your/project"
      }
    }
  }
}

Supported files

The bridge indexes these file extensions:

  • .js, .jsx, .ts, .tsx
  • .kt, .erl, .hrl
  • .py, .go, .java, .cs, .rb, .php
  • .cpp, .c, .h, .hpp, .rs, .swift, .scala

It skips common config and lock files such as package.json, package-lock.json, tsconfig.json, vite.config.*, and similar files. It also ignores generated or dependency-heavy directories like node_modules, .git, dist, build, .cache, .next, and .vscode.

MCP tools

search_project_knowledge

Searches the local Zvec knowledge base for relevant code snippets.

Input:

  • query (required): a natural-language search request
  • exclude_paths (optional): path substrings to exclude from results
  • include_paths (optional): path substrings that must be present in results

Behavior:

  • the bridge creates embeddings for the query;
  • it runs a vector search with topk: 15;
  • results are filtered and re-ranked in JavaScript using keyword and path heuristics;
  • each result includes a short explanation and the matched code chunk.

initialize_project_knowledge

Initializes the knowledge base and indexes the project contents.

Input:

  • force_rebuild (optional): if true, clears the existing index before re-indexing

index_file

Indexes or refreshes a single file immediately.

Input:

  • file_path (required): relative or absolute path to the file

get_knowledge_status

Returns current database status information such as:

  • database path
  • whether the database exists
  • document count
  • initialization state
  • project root

Indexing details

  • text is chunked into roughly 1000-character pieces with a 200-character overlap;
  • the bridge stores each chunk as a document with fields for text_content, file_path, and language;
  • the embedding vector field is named code_embedding.

Example prompt

A useful example prompt for the LLM can be taken from AGENTS.md.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured