Milliman-CMHH/mcp-local-rag
Local MCP server for RAG over PDFs, DOCX, and plaintext files.
Local MCP server for RAG over PDFs, DOCX, and plaintext files.
For more complex PDFs, the following environment variables can be provided:
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT; requires mcp-local-rag[azure].AZURE_DOCUMENT_INTELLIGENCE_KEY; when omitted, DefaultAzureCredential is used. Requires mcp-local-rag[azure].GEMINI_API_KEYBy default, the server stores data in:
%LOCALAPPDATA%\mcp-local-rag\~/Library/Application Support/mcp-local-rag/$XDG_DATA_HOME/mcp-local-rag/The data directory contains:
markdown/ - Extracted Markdown content of indexed documentsmetadata.db - SQLite database for document/collection metadataqdrant/ - Vector database for embeddingsAI Models are cached in the default HuggingFace cache directory (~/.cache/huggingface/).
To customize the data directory, set the MCP_LOCAL_RAG_DATA_DIR environment variable (a mcp-local-rag/ subfolder is created automatically inside it).
Add to .vscode/mcp.json:
{
"servers": {
"mcp-local-rag": {
"command": "uvx",
"args": [
"--python",
"3.13", // Does not support Python 3.14 yet: https://github.com/microsoft/markitdown/issues/1470
"mcp-local-rag@latest"
]
}
}
}If you run into SSL errors (Zscaler), you can try:
{
"servers": {
"mcp-local-rag": {
"command": "uvx",
"args": [
"--native-tls",
"--python",
"3.13", // Does not support Python 3.14 yet: https://github.com/microsoft/markitdown/issues/1470
"--with",
"pip-system-certs",
"mcp-local-rag@latest"
]
}
}
}Loading reviews...