Skip to main content

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; requires mcp-local-rag[azure].
  • AZURE_DOCUMENT_INTELLIGENCE_KEY; when omitted, DefaultAzureCredential is used. Requires mcp-local-rag[azure].
  • GEMINI_API_KEY
  • MCP_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 documents
  • metadata.db - SQLite database for document/collection metadata
  • qdrant/ - 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)

Source distribution for mcp-local-rag 0.4.1
File Size Uploaded
mcp_local_rag-0.4.1.tar.gz 33.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-local-rag 0.4.1
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page