mcp-local-rag
Local MCP server for RAG over PDFs, DOCX, images, and plaintext files.
Requirements
For more complex PDFs and image files, the following environment variables can be provided:
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT; requiresmcp-local-rag[azure].AZURE_DOCUMENT_INTELLIGENCE_KEY; when omitted,DefaultAzureCredentialis used. Requiresmcp-local-rag[azure].GEMINI_API_KEYMCP_LOCAL_RAG_GEMINI_MODEL(default:gemini-3-pro-preview)
Image files require either Gemini or Azure DI for extraction. See docs/configuration.md for details.
Data Storage
By default, the server stores data in:
- Windows:
%LOCALAPPDATA%\mcp-local-rag\ - macOS:
~/Library/Application Support/mcp-local-rag/ - Linux:
$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 embeddings
AI 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).
Usage
VS Code
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"
]
}
}
}
Metadata
Release files for mcp-local-rag 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_local_rag-0.4.1.tar.gz | 33.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_local_rag-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.8 kB
Release files / mcp_local_rag-0.4.1.tar.gz
| Download URL | mcp_local_rag-0.4.1.tar.gz |
|---|---|
| Size | 33.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27919ed369b08831a5c572354c768106a4222705d0486438533af86dea3b601d
|
|
BLAKE2b-256 checksum How to use checksums |
b935972631aabcd19b2f4e39dae459cb7508e4525f5c4f96064e6db133d4a23b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / mcp_local_rag-0.4.1-py3-none-any.whl
| Download URL | mcp_local_rag-0.4.1-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d9213a2e985b6af5d7caa439be21c2144dd3fd87b93a364fac76a0c1e88d651
|
|
BLAKE2b-256 checksum How to use checksums |
880461bf2e3e76a732531017af359ec0271290328ed1a9c923421d47a34f86e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency log