Skip to main content

Local MCP server for RAG over PDFs, DOCX, and plaintext files.

Project description

mcp-local-rag

Local MCP server for RAG over PDFs, DOCX, and plaintext files.

Requirements

To process scanned PDFs, set the GEMINI_API_KEY environment variable for OCR support. Text-based PDFs, DOCX, and plaintext files work without it.

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:

  • 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"
      ]
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_local_rag-0.1.0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_local_rag-0.1.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_local_rag-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_local_rag-0.1.0.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_local_rag-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94c43f0b9d577be99bf650ea6b016bb0e72649b1472a2c77132ddd29719fc1eb
MD5 1f102f78c59f41a2706acbff474217c9
BLAKE2b-256 fd714e284735817ccd572cc293f9e1aca77fb2c764b8dff0f51650fc2d2be026

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_local_rag-0.1.0.tar.gz:

Publisher: publish.yml on Milliman-CMHH/mcp-local-rag

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_local_rag-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_local_rag-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_local_rag-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4546b2548661cad222e64f1e07276294903705be4720a84cb1fa60e89da9ea83
MD5 81b7d8393c52b12bcabbd1d550d94b80
BLAKE2b-256 b6b164088da7d0d838ed18e16db320476353bdc7c10beb51d51ec025da28dbda

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_local_rag-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Milliman-CMHH/mcp-local-rag

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page