MarshalOSS
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MarshalOSS
Defense-discovery ingest + hybrid search + MCP stack.
Docling turns case files into text (PDF/OCR, Office, email, images, audio/video ASR).
MarshalOSS stores Bates/path metadata, chunks + embeddings, serves Tailscale file URLs, and exposes tools to Claude Desktop / other MCP clients.
Human review (browse, keyword, stars/tags) is the Datashare plane in review/. It is not a full LLM judge that re-OCRs failed pages with GPT/Claude vision.
What it does
Capability | Status |
Multi-format ingest via Docling | Yes |
Bates labels from path/filename regex | Yes |
SQLite FTS5 keyword search | Yes |
Semantic / hybrid search (RRF fuse) | Yes (Voyage or offline hash) |
MCP tools for agents ( | Yes |
Case file browser + open/download URLs | Yes |
Dedup skip by content hash | Yes |
Human review (browse / keyword / tags) | Datashare sidecar — review/, docs/DUAL_STACK.md |
PST / Cellebrite UFDR workers | Not in v1 — docs/EXTENSIONS.md |
AI OCR escalation on low confidence / garbage text | Yes (OpenAI or Anthropic vision) |
Ingest pipeline
Walk case root for allowed extensions
Skip unchanged files (
sha256+status=ready) and oversized filesExtract Bates from relative path
Docling
DocumentConverter→HybridChunker(page/heading provenance when available)Embed chunk texts → store in SQLite (
files,chunks,embeddings,chunks_fts)
Search modes
keyword— FTS5semantic— cosine over stored embeddingshybrid(default) — Reciprocal Rank Fusion of both
MCP tools
Tool | Purpose |
| Case selection |
| Directory listing with Bates + URLs |
| hybrid / keyword / semantic hits + snippets + |
| Retrieve top hybrid chunks as RAG context (client LLM answers) |
| Tailscale links |
ask does not call an LLM inside MarshalOSS — Claude (or another MCP host) reasons over the returned context.
Related MCP server: enterprise-knowledge-integrator
AI / API dependencies
APIs
Dependency | Role | Required? |
| Voyage embeddings ( | Recommended for semantic search. Without it → local hash embedder (weak). |
| Vision LLM OCR when quality gates fire | Recommended if you want AI OCR escalation. Without either key, escalation is skipped (Docling text kept). |
export VOYAGE_API_KEY="…"
export OPENAI_API_KEY="…" # preferred default for AI OCR (gpt-4o-mini)
# or
export ANTHROPIC_API_KEY="…" # claude-haiku by default
# optional overrides
export MARSHALOSS_EMBED_BACKEND=voyage
export MARSHALOSS_OCR_ESCALATE=true
export MARSHALOSS_OCR_ESCALATE_PROVIDER=auto # auto | openai | anthropic
export MARSHALOSS_OCR_ESCALATE_OPENAI_MODEL=gpt-4o-mini
export MARSHALOSS_OCR_ESCALATE_MAX_PAGES=25Keys are also pulled from ~/.marshal/env.sh when unset.
Local (always)
Dependency | Role |
Docling ( | First-pass parse/OCR/ASR (local models; may download weights) |
pypdfium2 + Pillow | Render PDF/image pages for AI OCR |
Python 3.12+, uv | Runtime |
Not used for extraction by default
API | Used? |
OpenAI / Anthropic chat for RAG answers | No inside MarshalOSS — Claude Desktop (MCP client) reasons over |
Whisper cloud / Google Vision / Azure DI | No |
AI OCR escalation (quality gates)
First pass is always Docling. Then MarshalOSS scores the result and may escalate only suspicious pages/files to a vision model.
What triggers escalation
Signal | Example |
Docling grades |
|
Sparse text | Near-empty extract; very low chars/page or chars/MB on a large scan |
Garbage OCR | Replacement chars ( |
Token salad | High ratio of symbol-only / consonant-hash tokens |
Low letter density | Extract that barely looks like language |
Docling hard-fail | PDF/image → try whole-doc AI OCR when Docling throws |
Fair Docling grade alone with otherwise healthy text does not escalate.
Escalation behavior
Score Docling text + confidence (
quality.py)If flagged and an API key exists → render bad pages (or whole doc if globally sparse) to PNG
Vision OCR (
gpt-4o-minior Claude Haiku by default)Replace overlapping page chunks (or full doc) and embed the new text
Store audit JSON on
files.meta(quality_score,reasons,escalated,ai_ocr_pages, …)
Disable: MARSHALOSS_OCR_ESCALATE=false.
Cost control: MARSHALOSS_OCR_ESCALATE_MAX_PAGES (default 25).
Supported file types (default)
.pdf .docx .doc .pptx .ppt .xlsx .xls .csv .txt .md
.html .htm .eml .msg
.png .jpg .jpeg .tif .tiff .bmp .webp
.mp3 .wav .m4a .aac .ogg .flac
.mp4 .mov .avi .mkv .webmOverride with MARSHALOSS_INGEST_EXTENSIONS. Default max file size: 500 MB (MARSHALOSS_MAX_FILE_BYTES).
Not in v1: PST/OST explosion, Cellebrite/UFDR — design notes in docs/EXTENSIONS.md.
Architecture
Case folder on disk
│
▼
Docling extract ──► chunks (+ pages/headings when available)
│
▼
Embedder (Voyage or hash)
│
▼
SQLite (~/.marshaloss/marshal_oss.db)
│
├── FTS5 keyword
├── vector cosine
└── hybrid RRF
│
├── REST /api/search /api/files/list /browser /files/…
└── MCP /mcp (streamable HTTP)Data dir default: ~/.marshaloss/ (does not share the old ~/.marshal-lite DB — re-ingest after rename, or point MARSHALOSS_DB_PATH / copy the DB).
Quick start
export PATH="$HOME/.local/bin:$PATH"
cd ~/Projects/MarshalOSS
# Voyage key (recommended)
# source ~/.marshal/env.sh
# export VOYAGE_API_KEY=…
uv sync
uv run marshaloss ingest "/path/to/case/root" \
--slug washington-jersey-city \
--name "Washington v. Jersey City" \
--limit 5
export MARSHALOSS_PUBLIC_BASE="http://$(tailscale ip -4):7340"
uv run marshaloss serveSurface | URL |
Home |
|
Browser |
|
Health |
|
MCP |
|
CLI search:
uv run marshaloss search "bodycam booking" --mode hybrid --top-k 8Claude Desktop (mcp-remote)
"marshaloss": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://<TAILSCALE_IP>:7340/mcp",
"--allow-http",
"--transport",
"http-only"
]
}Configuration (env)
Prefix: MARSHALOSS_
Variable | Default | Meaning |
|
| SQLite + local data |
|
| Override DB path |
|
| Bind address |
| (set to Tailscale URL) | Links returned to MCP/UI |
|
|
|
|
| Voyage model id |
| — | Also accepts bare |
|
| Enable AI vision OCR on quality fails |
|
|
|
|
| Vision model for OpenAI path |
|
| Vision model for Anthropic path |
|
| Cap pages sent to AI OCR per file |
|
| Escalate when score below this (with reasons) |
| — | Vision OCR credentials |
| (see above) | Comma-separated suffixes |
|
| Skip larger files |
| built-in regex | Override Bates extraction |
Dual stack (optional)
Role | Tool |
Semantic / MCP RAG | MarshalOSS |
Human coding / produce | FreeEed (or other review UI) |
Details: docs/DUAL_STACK.md.
Repo
Private: github.com/adam-elewa/MarshalOSS
MIT-oriented greenfield; Docling/Voyage are third-party — follow their licenses and API terms.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The Needle MCP server enables semantic search on documents stored in files like PDFs, DOCX, and XLSX by connecting AI applications to external data sources. It provides capabilities to create and manage document collections, perform natural language searches on stored content, and retrieve relevant information without requiring exact keyword matches.
Agentic search over your Dewey document collections from any MCP-compatible client.
Search and manage your team's knowledge from MCP clients.
Make your knowledge agent-ready. One MCP endpoint, 5 connectors, 3 search modes.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides hybrid retrieval (dense + BM25 + RRF) with collection-based isolation and document ingestion for private knowledge access via MCP.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to securely search and ingest corporate documents via MCP, offering hybrid retrieval, PII sanitization, role-based access control, and citation validation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to search technical document collections using hybrid BM25 and embedding retrieval, returning cited page-level passages to support grounded, evidence-based answers.MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to search and retrieve approved, role-filtered internal knowledge with PII redaction, citations, content-integrity checks, and tamper-evident audit logging.31MIT