mcp-local-rag
io.github.shinpr/mcp-local-rag · version 0.23.2
Community listing. Not installed or verified by cosmic-mcp. Read the source and its permissions before you run it.
Easy-to-setup local RAG server with minimal configuration
https://github.com/shinpr/mcp-local-ragQuick facts
- Listing: Community
- Published Nov 4, 22:42 UTC
- Transport: stdio
- Package: npm
mcp-local-rag0.23.2 - Listed by cosmic-mcp: Nov 9, 04:27 UTC
Details
- Repository: https://github.com/shinpr/mcp-local-rag
- npm: https://www.npmjs.com/package/mcp-local-rag
- Needs settings:
BASE_DIRBASE_DIRSIGNORE_PATHSDB_PATHCACHE_DIRHF_ENDPOINTMODEL_NAMEMAX_FILE_SIZERAG_MAX_DISTANCERAG_GROUPINGRAG_MAX_FILESCHUNK_MIN_LENGTHSTORE_IMAGESEMBED_TITLE_PREFIXEMBED_HEADING_PREFIXRAG_DEVICERAG_DTYPERAG_HYBRID_WEIGHTRAG_RERANK_CMDRAG_RERANK_TIMEOUT_MS
Setup snippets
Generated from the registry entry. cosmic-mcp has not run or reviewed this server; values in angle brackets are yours to fill in.
Run it locally (npm)
npx -y '[email protected]'Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"mcp-local-rag": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"BASE_DIR": "<your base dir>",
"BASE_DIRS": "<your base dirs>",
"CACHE_DIR": "<your cache dir>",
"CHUNK_MIN_LENGTH": "<your chunk min length>",
"DB_PATH": "<your db path>",
"EMBED_HEADING_PREFIX": "<your embed heading prefix>",
"EMBED_TITLE_PREFIX": "<your embed title prefix>",
"HF_ENDPOINT": "<your hf endpoint>",
"IGNORE_PATHS": "<your ignore paths>",
"MAX_FILE_SIZE": "<your max file size>",
"MODEL_NAME": "<your model name>",
"RAG_DEVICE": "<your rag device>",
"RAG_DTYPE": "<your rag dtype>",
"RAG_GROUPING": "<your rag grouping>",
"RAG_HYBRID_WEIGHT": "<your rag hybrid weight>",
"RAG_MAX_DISTANCE": "<your rag max distance>",
"RAG_MAX_FILES": "<your rag max files>",
"RAG_RERANK_CMD": "<your rag rerank cmd>",
"RAG_RERANK_TIMEOUT_MS": "<your rag rerank timeout ms>",
"STORE_IMAGES": "<your store images>"
}
}
}
}Claude Code
claude mcp add 'mcp-local-rag' -- npx -y '[email protected]'Cursor (.cursor/mcp.json)
{
"mcpServers": {
"mcp-local-rag": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"BASE_DIR": "<your base dir>",
"BASE_DIRS": "<your base dirs>",
"CACHE_DIR": "<your cache dir>",
"CHUNK_MIN_LENGTH": "<your chunk min length>",
"DB_PATH": "<your db path>",
"EMBED_HEADING_PREFIX": "<your embed heading prefix>",
"EMBED_TITLE_PREFIX": "<your embed title prefix>",
"HF_ENDPOINT": "<your hf endpoint>",
"IGNORE_PATHS": "<your ignore paths>",
"MAX_FILE_SIZE": "<your max file size>",
"MODEL_NAME": "<your model name>",
"RAG_DEVICE": "<your rag device>",
"RAG_DTYPE": "<your rag dtype>",
"RAG_GROUPING": "<your rag grouping>",
"RAG_HYBRID_WEIGHT": "<your rag hybrid weight>",
"RAG_MAX_DISTANCE": "<your rag max distance>",
"RAG_MAX_FILES": "<your rag max files>",
"RAG_RERANK_CMD": "<your rag rerank cmd>",
"RAG_RERANK_TIMEOUT_MS": "<your rag rerank timeout ms>",
"STORE_IMAGES": "<your store images>"
}
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"mcp-local-rag": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"BASE_DIR": "<your base dir>",
"BASE_DIRS": "<your base dirs>",
"CACHE_DIR": "<your cache dir>",
"CHUNK_MIN_LENGTH": "<your chunk min length>",
"DB_PATH": "<your db path>",
"EMBED_HEADING_PREFIX": "<your embed heading prefix>",
"EMBED_TITLE_PREFIX": "<your embed title prefix>",
"HF_ENDPOINT": "<your hf endpoint>",
"IGNORE_PATHS": "<your ignore paths>",
"MAX_FILE_SIZE": "<your max file size>",
"MODEL_NAME": "<your model name>",
"RAG_DEVICE": "<your rag device>",
"RAG_DTYPE": "<your rag dtype>",
"RAG_GROUPING": "<your rag grouping>",
"RAG_HYBRID_WEIGHT": "<your rag hybrid weight>",
"RAG_MAX_DISTANCE": "<your rag max distance>",
"RAG_MAX_FILES": "<your rag max files>",
"RAG_RERANK_CMD": "<your rag rerank cmd>",
"RAG_RERANK_TIMEOUT_MS": "<your rag rerank timeout ms>",
"STORE_IMAGES": "<your store images>"
},
"type": "stdio"
}
}
}Related servers
- 0Latency Memory
Persistent memory layer for AI agents. Sub-100ms recall, semantic search, knowledge graphs. - A Christmas Carol Verified domain
Semantic search through Dickens' A Christmas Carol by meaning, theme, or character. - AI Readiness Kit
Generate 18 AI readiness files (llms.txt, ai.txt, RAG indexes, schema) for any website. - AI SENSE Free Public Tools Verified domain
82 public tools: agent workflows, audio data transfer, semantic search, queues and webhooks. - AI 與科技名詞白話解釋 Verified domain
AI 與科技名詞白話解釋:MCP、RAG、AI 代理人等名詞的白話定義。台灣繁體中文 MCP 工具。 - Ace Memory
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.