multilingual-rag-mcp
Multilingual RAG MCP server for local document search. Query in one language, find content in another.
Built for the common case where you talk to AI agents in English but your documents are in Russian (or any other language). The multilingual embedding model maps semantically similar concepts across 50+ languages to the same vector space — no translation step needed.
Install
pip from PyPI
pip install multilingual-rag-mcp
One-liner with uvx (no install needed)
uvx --from multilingual-rag-mcp rag-mcp index ./docs/
pip from GitHub (latest)
pip install git+https://github.com/aliaksandr-kazarez/multilingual-rag-mcp.git
Quick start
1. Index your documents
rag-mcp index ~/documents/
2. Add to Claude Code
claude mcp add rag -- uvx --from multilingual-rag-mcp rag-mcp
Set the document paths via env vars:
claude mcp add rag \
-e RAG_DOCS=$HOME/documents \
-- uvx --from multilingual-rag-mcp rag-mcp
If installed locally (pip install), use the simpler form:
claude mcp add rag -e RAG_DOCS=$HOME/documents -- rag-mcp
3. Search
From Claude Code, the search tool handles cross-lingual queries automatically:
- "search for protein recommendations" finds Russian articles about белок
- "найди рецепты" finds recipe content regardless of language
MCP tools
| Tool | Description |
|---|---|
search(query, n=5) |
Semantic search across all indexed documents |
get_document(path) |
Retrieve full document content |
list_documents(filter?) |
List indexed documents, optionally filtered |
reindex() |
Re-index all configured document directories |
stats() |
Index statistics (documents, chunks, categories) |
Configuration
| Env var | Default | Description |
|---|---|---|
RAG_DOCS |
— | Comma-separated paths to document directories |
RAG_DATA |
~/.local/share/rag-mcp/ |
Index storage location |
RAG_MODEL |
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 |
Embedding model (any fastembed-compatible model) |
RAG_CHUNK_SIZE |
1000 |
Maximum chunk size in characters |
RAG_CHUNK_OVERLAP |
200 |
Overlap between chunks |
Supported formats
Markdown (.md), plain text (.txt), PDF (.pdf), JSON (.json), CSV (.csv).
Markdown files with YAML frontmatter have their metadata (title, date, etc.) extracted automatically.
CLI
rag-mcp index <dir> [<dir> ...] Index documents
rag-mcp stats Print index statistics
rag-mcp Start MCP server (stdio)
rag-mcp --help Show help
rag-mcp --version Show version
How it works
- Documents are parsed and split into chunks (markdown-aware: respects headers, code blocks)
- Each chunk is embedded with a multilingual model via fastembed (ONNX, no PyTorch needed)
- Embeddings are stored in ChromaDB (local, file-based)
- Queries are embedded with the same model and matched by cosine similarity
- Cross-lingual retrieval works because the model places semantically similar text from different languages near each other in vector space
License
MIT
Metadata
Release files for multilingual-rag-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multilingual_rag_mcp-0.2.0.tar.gz | 9.7 kB | With provenance | Details for multilingual_rag_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multilingual_rag_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for multilingual_rag_mcp-0.2.0-py3-none-any.whl |
Total release size: 20.3 kB
Release files / multilingual_rag_mcp-0.2.0.tar.gz
| Download URL | multilingual_rag_mcp-0.2.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8861955443875b115f281877a6c90412e524437d78ff0c0d29b2bb877d675b75
|
|
BLAKE2b-256 checksum How to use checksums |
351186e10d6ff8046ef37aebae0bd293b8c3ac756f269f66ce436e706c4a37db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logRelease files / multilingual_rag_mcp-0.2.0-py3-none-any.whl
| Download URL | multilingual_rag_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d7d0352620c7ec095322b943aa906e45f95c8363b4c9716bfbad7cecbef3ad0
|
|
BLAKE2b-256 checksum How to use checksums |
5962af8186e06cb5c6780deb43c6ac3bb102dd34743715c488657d49ef97bd89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logSecurity for multilingual-rag-mcp 0.2.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for multilingual_rag_mcp-0.2.0.tar.gz
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 Aug 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.