技能潮 SkillTide 提交收录
官方说明10 个来源MCP 服务8 天前
shinpr/mcp-local-rag

shinpr/mcp-local-rag

📇 🏠 - Local document search: semantic search over PDF, DOCX, TXT and Markdown files with LanceDB vector…
在 GitHub 查看 ↗直链 · 无中转页
官方说明📇 🏠 - Local document search: semantic search over PDF, DOCX, TXT and Markdown files with LanceDB vector storage and local embeddings.
配置模板(请按你的客户端调整)
claude mcp add mcp-local-rag -- npx -y mcp-local-rag
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
415 ★ · shinpr/mcp-local-rag · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 10 个来源列出
评分构成
综合分 1,003 · 415 ★ · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 shinpr/mcp-local-rag;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

MCP Local RAG

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

English |
简体中文 |
Deutsch |
Español |
Português (Brasil) |
Français
Search private documents from an MCP client or the terminal without sending them to an
embedding API.
mcp-local-rag indexes PDF, DOCX, Markdown, and text files on your machine. Search combines
semantic similarity with keyword matching, so queries can match both intent and exact technical
terms such as API names, class names, and error codes. Results include source passages and,
where available, headings, line numbers, or page numbers so you can check and cite the original
document.
No API key, Docker, Python, or external database is required. After the initial model download,
text ingestion and search work offline.
Quick Start
Requirements
- Node.js 22 or later
- Internet access on first use to download the npm package and embedding model
- A directory containing the documents you want to search
Set BASE_DIR to that directory. It is also the security boundary for file operations. Replace
/absolute/path/to/your/documents below with the directory's absolute path.
Use one of the examples below, or register npx -y mcp-local-rag and set BASE_DIR using your
client's MCP configuration format.
Set DB_PATH and CACHE_DIR to absolute paths as well. Relative paths resolve from the
server's working directory, so starting the server from different projects creates a separate
index and model cache in each.
Claude Code
Run this command:
Codex
Add to ~/.codex/config.toml:
OpenCode
Add to ~/.config/opencode/opencode.json (or opencode.jsonc):
Cursor
Add to ~/.cursor/mcp.json:
Restart the client, then ask it to build the index:
The first sync downloads the default embedding model (about 90 MB) and may take 1–2 minutes
before ingestion starts. Later runs use the local cache.
Once the sync completes:
CLI Quick Start
To use the CLI without an MCP client:
The CLI uses the current directory as its document root by default. Run both commands from the
same directory so they use the same default index, or set BASE_DIR and DB_PATH explicitly.
Supported Content
| Input | How to ingest |
|---|---|
| PDF, DOCX, TXT, Markdown | File ingestion or directory sync |
| HTML already fetched by the client | ingest_data |
| Plain text or Markdown held in memory | ingest_data with a stable source identifier |
HTML fetching is not built into the server. An MCP client can fetch a page and pass its HTML to
ingest_data.
Excel, PowerPoint, standalone images, and source-code file extensions are not supported by file
ingestion. PDFs can optionally use a local vision model to describe figures, but this is not
OCR or image search.
Using the Index
Sync after adding, editing, or removing documents. For searches and follow-up reading, ask your
MCP client:
You can also ingest a single file or HTML already fetched by the client. To refresh an existing
entry, ingest the document again using the same path or source identifier. sync skips unchanged
files. MCP file paths must be absolute and inside a configured document root.
PDF section headings may be inaccurate. Check the original page when you need the exact heading.
MCP Tools
| Tool | Purpose |
|---|---|
| sync_start | Reconcile the index with all configured roots or one path |
| sync_status | Poll a running sync job |
| ingest_file | Ingest or replace one file |
| ingest_data | Ingest text, Markdown, or HTML already held by the client |
| query_documents | Search with semantic matching and keyword boost |
| read_chunk_neighbors | Read surrounding chunks from a search result |
| list_files | Show supported files and their ingestion state |
| delete_file | Delete an indexed file or an ingest_data item |
| status | Show index and search status |
CLI
Use the CLI to update the index, narrow searches, or remove indexed content:
ingest imports the selected files; sync also removes entries for deleted files and skips
unchanged files. Use --scope to restrict search results to a path prefix, repeating it to
include multiple prefixes.
Global options such as --db-path, --cache-dir, and --model-name go before the subcommand.
来源
awesome · https://github.com/shinpr/mcp-local-rag
按领域浏览
MCP 服务
Traction
415 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引