# Local Vector Search MCP [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/DimonSmart/LocalVectorSearchMcp  
**GitHub Stars:** 0  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/local-vector-search-mcp

## Description
Local Markdown search, navigation and editing via MCP, with optional vector embeddings.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/DimonSmart/LocalVectorSearchMcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
dotnet tool install --global DimonSmart.LocalVectorSearchMcp
```

2. Check the setup:

```sh
dnx DimonSmart.LocalVectorSearchMcp@<version> --yes -- \
  --project-root "$PWD" --embedding-provider none --search-mode lexical --status
```

3. Add to Codex:

```sh
codex mcp add local-vector-search -- dnx DimonSmart.LocalVectorSearchMcp@<version> --yes -- \
  --project-root "$PWD" --embedding-provider none --search-mode lexical --watch-files
```

4. Add to Claude Code:

```sh
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. Start the server:

```sh
local-vector-search-mcp --project-root "$PWD" \
  --embedding-provider none --search-mode lexical --reindex
```

6. Add to Codex:

```sh
codex mcp add local-vector-search -- \
  local-vector-search-mcp --project-root "$PWD" \
  --embedding-provider none --search-mode lexical --watch-files
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/local-vector-search-mcp/readme_

