Local Vector Search MCP logo

Local Vector Search MCP

Index, search, read, edit, and navigate project Markdown locally through MCP with SQLite lexical, semantic, or hybrid retrieval.

Install Local Vector Search MCP

Run the project’s own setup commands, in order.

Setup steps from the project

Local Vector Search MCP installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    dotnet tool install --global DimonSmart.LocalVectorSearchMcp
    
  2. 2. Check the setup
    dnx DimonSmart.LocalVectorSearchMcp@<version> --yes -- \
      --project-root "$PWD" --embedding-provider none --search-mode lexical --status
    
  3. 3. Add to Codex
    codex mcp add local-vector-search -- dnx DimonSmart.LocalVectorSearchMcp@<version> --yes -- \
      --project-root "$PWD" --embedding-provider none --search-mode lexical --watch-files
    
  4. 4. Add to Claude Code
    claude mcp add --transport stdio local-vector-search -- dnx DimonSmart.LocalVectorSearchMcp@<version> --yes -- \
      --project-root "$PWD" --embedding-provider none --search-mode lexical --watch-files
    
  5. 5. Start the server
    local-vector-search-mcp --project-root "$PWD" \
      --embedding-provider none --search-mode lexical --reindex
    
  6. 6. Add to Codex
    codex mcp add local-vector-search -- \
      local-vector-search-mcp --project-root "$PWD" \
      --embedding-provider none --search-mode lexical --watch-files
    

Overview

Local Vector Search MCP connects MCP clients to a project's local Markdown workspace and a project-specific SQLite index. It provides lexical search with SQLite FTS5, optional semantic search through sqlite-vec and Ollama-compatible embeddings, and hybrid ranking with Reciprocal Rank Fusion. Agents can read focused document sections, make hash-guarded edits, manage files and images, inspect heading outlines, and render Markdown documents as PDF books. Reach for it when an agent needs project-aware documentation retrieval and controlled local changes without a cloud database.

Use cases

  • Search architectural decisions across a Markdown project
  • Read focused documentation sections before changing code
  • Patch Markdown elements with source-revision checks
  • Manage project images without indexing binary assets
  • Render a Markdown document as a PDF book

Key features

  • SQLite FTS5 lexical search with BM25
  • Optional sqlite-vec semantic search
  • Hybrid Reciprocal Rank Fusion ranking
  • Hash-guarded semantic Markdown editing
  • Project-local SQLite indexes
  • MCP stdio transport with image asset tools

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 44d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit6d agoMost recent push to the default branch.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Local Vector Search MCP works

What Local Vector Search MCP does

Local Vector Search MCP turns a Markdown project into a locally searchable and editable knowledge workspace exposed over MCP. Markdown files remain the source of truth, while derived search data is stored in a SQLite database under .local-vector-search-mcp/index.db within the project root.

The server supports exact text retrieval through SQLite FTS5 and BM25. Optional embeddings add semantic search through sqlite-vec, and hybrid mode combines lexical and semantic results with Reciprocal Rank Fusion. Searches can be scoped to paths, allowing agents to focus on a directory or part of a project.

Agents can retrieve focused semantic slices instead of loading complete documents. Editing operations use semantic pointers and source hashes to avoid applying a change to content that changed after it was read. Unrelated document edits do not prevent a targeted patch.

How it works

The server discovers Markdown files under the selected project root, parses them into elements and search chunks, and builds a project-local index. kb_reindex starts or joins one background indexing operation and returns immediately; kb_status reports indexing progress and the last result. The command-line --reindex operation waits for completion.

The normal transport is MCP over stdio. Claude Code and Codex can launch the process directly. ChatGPT can reach the same local process through OpenAI Secure MCP Tunnel, using the tunnel client as a bridge.

File watching can keep the derived index aligned with changes made in editors such as VS Code or Obsidian. Images are handled separately from indexed Markdown and are not added to the search index.

Setup and configuration

Install the .NET tool with .NET 10, then run it from the root of the Markdown project:

bash
dotnet tool install --global DimonSmart.LocalVectorSearchMcp
local-vector-search-mcp --project-root "$PWD" \
  --embedding-provider none --search-mode lexical --reindex

This offline mode uses FTS5 and requires neither an Ollama server nor an API key. The published package can also be run with dnx and the .NET 10 SDK instead of installing a global tool. MCP clients can register the executable with stdio transport and project-specific arguments such as --project-root and --watch-files.

For semantic or hybrid retrieval, run Ollama and install the bge-m3:latest model. The default embedding setup uses an Ollama-compatible local endpoint. Set the embedding provider to none for lexical-only operation.

Markdown and image writes are disabled unless knowledgeBase.allowWrites: true is enabled in YAML. No mandatory YAML configuration or remote database is required.

Tools and capabilities

The server exposes tools for:

  • Checking index state and starting asynchronous reindexing with kb_status and kb_reindex.
  • Searching with kb_search and reading source content with kb_read.
  • Applying semantic patches, section edits, and GFM table changes with kb_patch and kb_edit_table.
  • Creating, moving, deleting, and listing Markdown files.
  • Returning deterministic heading trees through kb_outline.
  • Creating PDF books and downloading permitted workspace files.
  • Saving, listing, loading, deleting, and safely moving PNG, JPEG, WebP, and GIF assets.

Image operations use root-relative paths and save to images/ by default. Asset files are not indexed.

Limitations and notes

The index is derived data: Markdown files remain authoritative. Semantic retrieval depends on a running local embedding service and installed model, while lexical mode works offline. Reindexing through MCP is asynchronous, so callers should inspect kb_status.indexing before relying on a completed rebuild. The server is local and project-scoped, with each project using its own SQLite index.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Local Vector Search MCP

Local Vector Search MCP is an MCP server that connects AI clients to a local Markdown project and its project-specific SQLite index. Its main tools search, read, reindex, patch, and navigate Markdown, while also managing image assets and rendering PDF books. It supports offline lexical retrieval plus optional semantic and hybrid search.

Install it as a .NET global tool with `dotnet tool install --global DimonSmart.LocalVectorSearchMcp` and run it from the Markdown project's root. .NET 10 is required. You can also invoke a published package with `dnx` and the .NET 10 SDK.

Yes, use offline lexical mode with `--embedding-provider none` and `--search-mode lexical`. This uses the SQLite FTS5 index and needs no Ollama server, remote embedding endpoint, or API key. Ollama is needed for the optional embedding-based semantic workflow.

It checks semantic targets against source and element hashes before applying changes. A patch can therefore be rejected when its target changed after reading, while edits elsewhere in the document do not block the targeted operation.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLocal Vector Search MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/local-vector-search-mcp?style=directory)](https://allmcps.com/mcp/local-vector-search-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/local-vector-search-mcp"><img src="https://allmcps.com/api/badge/local-vector-search-mcp?style=directory" alt="Local Vector Search MCP on AllMCPs" /></a>