Skip to content

mcp-local-rag

Code intelligence for AI coding assistants — AST-level semantic code search with keyword boost. Index your codebase, search by meaning, keep everything local.

build.protocol_tooling.mcp#typescript#mcp#mcp-server#model-context-protocol#rag#vector-search#semantic-search#embeddings#lancedb#transformers

Install mcp-local-rag in your MCP client

mcp-local-rag is a Model Context Protocol server. Add it to your MCP client config once, restart, and the server's tools become available to your AI assistant. The same JSON snippet below works across all four major clients — only the config file path differs.

  1. Locate your client's MCP config file.
    • Cursor: ~/.cursor/mcp.json
    • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
    • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
    • VS Code: Settings → Extensions → MCP
    • Windsurf: Settings → MCP Servers
  2. Add mcp-local-rag to the mcpServers map — paste the snippet below into your config file. If you already have other MCP servers, merge the entry into the existing mcpServers object.
  3. Restart your client so it picks up the new server.
  4. Verify — ask the assistant to list available tools; mcp-local-rag's tools should appear.
{
  "mcpServers": {
    "mcp-local-rag": {
      "command": "npx",
      "args": [
        "-y",
        "@damoqiongqiu/mcp-local-rag"
      ]
    }
  }
}

Install mcp-local-rag in Cursor

Open ~/.cursor/mcp.json in your editor, paste the snippet above into mcpServers, save, and restart Cursor. mcp-local-rag will show up in the assistant's tool list on next launch.

Install mcp-local-rag in Claude Desktop (macOS)

Open ~/Library/Application Support/Claude/claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (macOS). mcp-local-rag will show up in the assistant's tool list on next launch.

Install mcp-local-rag in Claude Desktop (Windows)

Open %APPDATA%\Claude\claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (Windows). mcp-local-rag will show up in the assistant's tool list on next launch.

Install mcp-local-rag in VS Code

Open Settings → Extensions → MCP in your editor, paste the snippet above into mcpServers, save, and restart VS Code. mcp-local-rag will show up in the assistant's tool list on next launch.

npm package: @damoqiongqiu/mcp-local-rag

Transport

mcp-local-rag supports the following MCP transports. Most AI clients use stdio by default for locally-installed servers.

stdio

From the mcp-local-rag README

<p align="center"> <img src="assets/banner.jpg" alt="MCP Local RAG — Search below the surface." width="600" /> </p> # MCP Local RAG [![GitHub stars](https://img.shields.io/github/stars/damoqiongqiu/mcp-local-rag?style=social)](https://github.com/damoqiongqiu/mcp-local-rag) [![npm version](https://img.shields.io/npm/v/@damoqiongqiu/mcp-local-rag.svg)](https://www.npmjs.com/package/@damoqiongqiu/mcp-local-rag) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/badge/TypeScript-6.0-blue.svg?logo=typescript&logoColor=white)](https://www.typescriptlang.org/) [![MCP Registry](https://img.shields.io/badge/MCP-Registry-green.svg)](https://registry.modelcontextprotocol.io/) > 🍴 Forked from [shinpr/m

Other Model Context Protocol servers in the same space as mcp-local-rag. Each one adds different capabilities to your AI assistant — pick based on the data sources or workflows you need.

Browse the full MCP server directory or use Stork's one-line install to let your agent pick the right server automatically.