허치패드
← MCP

mcp-local-rag

io.github.shinpr/mcp-local-rag

용도 · 방식검색로컬 설치

저장소 별 434개 · 저장소 마지막 갱신 2026-11-13

용도
검색
방식
로컬 설치
저장소 별
434개
저장소 마지막 갱신
2026-11-13
라이선스
MIT
레지스트리 최신판
0.23.3

남이 만든 프로그램입니다. 설치하기 전에 이 저장소의 코드와 요구하는 권한을 확인하세요. 설치 전 안내

소개

설정이 간단한 로컬 RAG 서버입니다.

붙이는 법

  1. 먼저 읽기

    저장소의 코드와 설명을 열어 이 서버가 무엇을 하고 어떤 권한을 달라고 하는지 확인합니다. 저장소 열기 →

  2. 클로드 코드에 붙이기

    로컬 · npm 패키지 mcp-local-rag

    claude mcp add --transport stdio mcp-local-rag -- npx -y mcp-local-rag

    터미널에 붙여 넣습니다. 바로 뒤에 claude mcp list로 연결 상태를 볼 수 있고, 클로드 코드 안에서는 /mcp로 봅니다. 뺄 때는 claude mcp remove mcp-local-rag입니다.

    이 명령은 레지스트리에 적힌 값으로 만든 것이라 낡았을 수 있습니다. 저장소 README의 최신 설치법과 다르면 README가 우선입니다.

  3. 다른 AI 도구에 붙일 때

    위의 주소나 패키지 이름이 그대로 필요합니다. 넣는 화면은 도구마다 달라서, 그 도구의 MCP 설정 문서를 따릅니다.

필요한 설정

레지스트리에 적힌 항목이고, 설명 칸은 레지스트리 원문(영어) 그대로입니다. 값은 그 서비스에서 직접 받아야 하고, 남에게 보이는 곳에 적으면 안 됩니다. 키가 든 서버는 위 명령 그대로(내 컴퓨터에만 저장되는 기본 방식) 붙입니다. --scope project를 붙이면 설정이 프로젝트의 .mcp.json에 써지는데, 클로드 코드 문서는 이 파일을 저장소에 함께 올리라고 안내하니 키를 넣으면 같이 올라갑니다.

이름종류필수설명
BASE_DIR환경변수선택Base directory for document storage (defaults to current working directory). Ignored when BASE_DIRS is set.
BASE_DIRS환경변수선택JSON array of base directories (e.g. '["/a","/b"]'). Takes precedence over BASE_DIR.
IGNORE_PATHS환경변수선택JSON array of glob patterns for files to keep out of the index, each matched against the file's path relative to its root (e.g. '["plugs/**","**/*.draft.md"]').
DB_PATH환경변수선택Path to LanceDB database directory (defaults to ./lancedb/)
CACHE_DIR환경변수선택Directory where Transformers.js models are cached (defaults to ./models/)
HF_ENDPOINT환경변수선택Hugging Face model download endpoint. Set this to a mirror URL when direct downloads are blocked (defaults to https://huggingface.co).
MODEL_NAME환경변수선택Embedding model name (defaults to Xenova/all-MiniLM-L6-v2)
MAX_FILE_SIZE환경변수선택Maximum file size in bytes (defaults to 104857600 / 100MB)
RAG_MAX_DISTANCE환경변수선택Maximum distance threshold for filtering search results. Results with distance greater than this value will be excluded. Lower values mean stricter filtering (e.g., 0.5 for high relevance only)
RAG_GROUPING환경변수선택Grouping mode for quality filtering. 'similar' returns only the most similar group (stops at first distance jump). 'related' includes related groups (stops at second distance jump). Unset means no grouping filter
RAG_MAX_FILES환경변수선택Maximum number of files to keep in search results. Results are filtered to include only chunks from the top N best-scoring files. For example, 1 returns only the single best-matching file's chunks. Unset means no file filtering.
CHUNK_MIN_LENGTH환경변수선택Minimum chunk length in characters (1-10000, defaults to 50). Chunks shorter than this threshold are filtered out during ingestion.
STORE_IMAGES환경변수선택Store supported PDF and DOCX images during ingestion and return them with matched chunks (defaults to false).
EMBED_TITLE_PREFIX환경변수선택Embed each chunk together with its document title, which can help when passages don't restate the topic the title names (defaults to false). After changing it, use a new DB_PATH or delete the index and re-ingest.
EMBED_HEADING_PREFIX환경변수선택Add section headings to chunk embeddings when they fit (defaults to false). Independent of EMBED_TITLE_PREFIX. Re-ingest documents after changing it.
RAG_DEVICE환경변수선택Execution device for the embedder (defaults to cpu). Passed straight to ONNX Runtime; see the Transformers.js device source for the supported backend names. If the requested device fails to initialize, the server throws an error.
RAG_DTYPE환경변수선택Embedding quantization dtype for the embedder (defaults to fp32). Opt-in and pass-through; accepts any dtype the chosen model provides (fp32, fp16, q8, int8, ...). If the model has no variant for the requested dtype, the server throws an error. Changing this changes the embedding space — re-ingest existing data.
RAG_HYBRID_WEIGHT환경변수선택Keyword boost factor for hybrid search (0.0-1.0, defaults to 0.6). 0 means semantic similarity only; higher values increase the keyword-match contribution to the final score.
RAG_RERANK_CMD환경변수선택External reranker command template. Use {query} and {top} for query text and result count; unset disables reranking.
RAG_RERANK_TIMEOUT_MS환경변수선택Time budget per rerank call in milliseconds (100-600000, defaults to 10000). On timeout the spawned command is killed and the pre-rerank ordering is returned.

링크

출처 · MCP 공식 레지스트리 · 별 수 GitHub · 매주 갱신