RAG AnythingSAFE
An MCP server for rag-anything (A multi-modal RAG system)
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
An MCP (Model Context Protocol) server that provides comprehensive RAG (Retrieval-Augmented Generation) capabilities for processing and querying directories of documents using the raganything library with full multimodal support.
Features
- End-to-End Document Processing: Complete document parsing with multimodal content extraction
- Multimodal RAG: Support for images, tables, equations, and text processing
- Batch Processing: Process entire directories with multiple file types
- Advanced Querying: Both pure text and multimodal-enhanced queries
- Multiple Query Modes: hybrid, local, global, naive, mix, and bypass modes
- Vision Processing: Advanced image analysis using GPT-4V
- Persistent Storage: RAG instances maintained per directory for efficient querying
Available Tools
process_directory
Process all files in a directory for comprehensive RAG indexing with multimodal support.
Required Parameters:
directory_path: Path to the directory containing files to processapi_key: OpenAI API key for LLM and embedding functions
Optional Parameters:
working_dir: Custom working directory for RAG storagebase_url: OpenAI API base URL (for custom endpoints)file_extensions: List of file extensions to process (default: ['.pdf', '.docx', '.pptx', '.txt', '.md'])recursive: Process subdirectories (default: True)enable_image_processing: Enable image analysis (default: True)enable_table_processing: Enable table extraction (default: True)enable_equation_processing: Enable equation processing (default: True)max_workers: Concurrent processing workers (default: 4)
process_single_document
Process a single document with full multimodal analysis.
Required Parameters:
file_path: Path to the document to processapi_key: OpenAI API key
Optional Parameters:
working_dir: Custom working directory for RAG storagebase_url: OpenAI API base U
c091010be42aOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add rag-anything-mcp --env OPENAI_API_KEY=${OPENAI_API_KEY} -- uvx rag-anything-mcp{
"mcpServers": {
"rag-anything-mcp": {
"command": "uvx",
"args": [
"rag-anything-mcp"
],
"env": {
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
}
}Exposed tools (7)
6 read · 0 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
check_doc_ingested | read | |
clear_all_data | destructive | |
get_workspace_info | read | get_workspace_info |
process_directory | read | |
process_single_document | read | |
query_with_multimodal | read | |
query_workspace | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (1)
clear_all_data
Gates applied: no_behavioural_pass.
c091010be42afull audit observations/trust-audit/mcp-server/jesse-merhi__rag-anything.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | c091010be42a | SAFE | B | 89 | first audit |
Questions
What is the RAG Anything MCP server?
An MCP server for rag-anything (A multi-modal RAG system)
What tools does RAG Anything expose?
7 in total: 6 read-only, 0 that write, and 1 that can delete or overwrite (clear_all_data). Every one is listed on this page with its risk.
Is RAG Anything safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does RAG Anything need?
It reads OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does RAG Anything run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as rag-anything-mcp.
How current is this page?
The grade is for one exact copy of the source (c091010be42a), read on 2026-10-08. The repository is watched and re-audited when it changes.